![]() ![]() For each pixel in the original image, the gradient map encodes a vector that indicates the direction and rate of fastest ascent in luminance. Compute a gradient map from the grayscale image.Convert the original channel to grayscale. ![]() I don't remember how the original code worked, but here's one way to implement such an algorithm: Warp sharp is the name of an algorithm that I originally found coded as a filter for an image editing application called "The GIMP." It's based on the idea that if you can identify the edges in an image, you can warp the image to shrink the edges and thus make them appear sharper. Only works when enlarging a video, and requires a lot of CPU power. The algorithm's output has proven interesting enough that I made a VirtualDub video filter out of it: It's a hybrid warpsharp+resize algorithm that attempts to make edges as crisp as possible. In an earlier blog entry on video shaders I introduced an algorithm called warpedge as an example. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |