Local linear contrast ehnhancement

local_contrast_adjust_v100_with_random_fluctuating_radius.txt

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.

Original:

Example results:

min1max5_a02 20X_100ms

min5max7_a02_20X_100ms

min11max21_a02_20X_100ms

min31max63_a02_20X_100ms

And a few of them merged together