Created
August 28, 2014 08:52
-
-
Save miura/53d119862d9c572ca6fd to your computer and use it in GitHub Desktop.
This file contains 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
//setTool("zoom"); | |
run("Split Channels"); | |
run("Gaussian Blur...", "sigma=1 stack"); | |
//selectWindow("C2-NPC1.tif"); | |
//selectWindow("C1-NPC1.tif"); | |
run("Auto Threshold", "method=Li white stack use_stack_histogram"); | |
run("Open", "stack"); | |
run("Fill Holes", "stack"); | |
run("Duplicate...", "title=C2-NPC1-1.tif duplicate range=1-15"); | |
run("Erode", "stack"); | |
run("Erode", "stack"); | |
run("Erode", "stack"); | |
selectWindow("C2-NPC1.tif"); | |
run("Dilate", "stack"); | |
run("Dilate", "stack"); | |
run("Dilate", "stack"); | |
imageCalculator("Subtract create stack", "C2-NPC1.tif","C2-NPC1-1.tif"); | |
for (i = 0; i < nSlices; i++){ | |
run("Create Selection"); | |
run("Make Inverse"); | |
roiManager("Add"); | |
run("Select None"); | |
run("Next Slice [>]"); | |
} | |
selectWindow("C1-NPC1.tif"); | |
run("Bleach Correction", "correction=[Simple Ratio] background=9"); | |
run("Set Measurements...", "area mean standard min integrated stack redirect=None decimal=5"); | |
run("Clear Results"); | |
roiManager("Select", newArray(0,1,2,3,4,5,6,7,8,9,10,11,12,13)); | |
roiManager("Measure"); | |
//run("Plot Results", "plot=[Imported Data] x-values=Slice y-values=Mean style=Line color=Red gridlines gridlines labels labels major major"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment