I need to generate a grayscale map that describes the direction in which all areas of contrast in a bitmap image flow. Basically the bitmap image needs to be analyzed and where there is an area of contrast, it needs to be followed. Then the direction information needs to be transformed into shades of gray. Where the angle of the direction is 0 degrees, the color will be black, getting brighter until at 360 degrees it will be white. The first attached image is a simulation of how the map for a sphere is supposed to look after processing. The sphere in the left is the original bitmap image, the one in the right is the simulation. The second attached image shows how this kind of map can be obtained in Filter Forge, but it generates noise (look at the edge).
I need this for a lot of images, so the solution will have to allow batch processing (so that I don't load each image individually). I don't care what programming language this is done in. It can also be a series of steps done in any already available programs (Illustrator, Flash, Corel Draw, Filter Forge, etc).
Additional Project Description:
02/27/2013 at 15:55 EST
When you bid, please include a detailed explanation that uses common terms, about the processes by which your code or method will generate the map. Thank you.