Created
April 28, 2017 09:23
-
-
Save tarokiritani/733594ba395b01de64e9c8262980a792 to your computer and use it in GitHub Desktop.
imagej macro that preprocesses confocal image stack for cell counting
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
run("Bandpass Filter...", "filter_large=100 filter_small=5.1 suppress=None tolerance=5 autoscale process"); | |
for(i=1;i<nSlices + 1;i++){ | |
setSlice(i); | |
getStatistics(area, mean, min, max, std, histogram); | |
setThreshold(mean + 2 * std, 255); | |
run("Make Binary", "slice"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment