Have a gradient map of a gray scale image and want to recover the original gray scale image.
Have a gradient map of a gray scale image and want to recover the original gray scale image.
I am actually not convinced that you can do this ... by calculating image gradients you are removing so much information, that your reconstruction will not be amazing. But you might want to take a look at the Hoggles project. They seem to do what you need.