Adaptive methods for image contrast stretching?


I have an image with small repeating structures, which need to be stretched in the same range(0-1).

My intuition is to partition the image to many small tiles, and apply contrast linear stretching for each tile, but would like to hear more options, particularly established or published methods.

I tried Adaptive Histogram Equalization, but it seems not suited for my problems. Since the intensity of these structures encodes phase continuously, they has to maintain their relative value, so i am thinking a contrast stretching method maybe more appropriate.



This is not a Julia solution, but I find the local contrast module in Darktable excellent for this kind of work (and many other modules, too, explore its docs and see video tutorials on the net).

Once you figure out the parameters you prefer, you can batch process images from the command line (there is also LUA scripting).

1 Like