Local linear contrast ehnhancement


This applies linear contrast adjustment to the center pixel of a ROI that sweeps over the image. The ROI is the local range for the contrast adjustment. The ROI has a minimum and a maximum radius. This range prevents crisp edged circles from being drawn around high frequency high contrast spots. Set them equal to draw these lines.

The macro does run slow. This is in large part due to being a macro, not compiled Java. But it's also inefficient. If the getRawStatistics(nPixels, mean, min, max, std, histogram) didn't calculate the std and histogram for every ROI, this macro would run a lot faster.


Example results:

min1max5_a02 20X_100ms




And a few of them merged together