// ImageJ 1.48q3 // could be done with square or circular ROI macro "local linear contrast enhance [q] " { t = getTitle(); b = bitDepth(); w = getWidth(); h = getHeight(); image = newArray(w *h); rmin = 31; rmax = 63 ; setBatchMode(true); run("Duplicate...", "title=[tempabcdef]"); // to make batchmode work faster temp = getImageID(); for (y=0; y