Skip to content

Commit

Permalink
Update Code21.ijm
Browse files Browse the repository at this point in the history
missing semicolon added; shape option added in set measurements line.
  • Loading branch information
miura committed Aug 28, 2013
1 parent 618a0e0 commit 5d9291f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions code/Code21.ijm
@@ -1,5 +1,6 @@
// Code 21
var G_Ddir = "D:\\_Kota\\CMCI\\course_macro\\"
var G_Ddir = "D:\\_Kota\\CMCI\\course_macro\\"; //Windows path
//var G_Ddir = "/Users/Kota/CMCI/course_macro/"; //OSX path

macro "Set Directory to save Results" {
G_Ddir = getDirectory("Choose Destination Directory");
Expand All @@ -13,9 +14,9 @@ macro "auto save results" {
}
setThreshold(lower, 255);
img_title = getTitle();
run("Set Measurements...", "area mean centroid circularity slice limit redirect=None decimal=2");
run("Set Measurements...", "area mean centroid shape circularity slice limit redirect=None decimal=2");
run("Analyze Particles...", "size=10-Infinity circularity=0.50-1.00 show=Outlines display exclude clear stack");
dest_filename = img_title+"_measure.xls";
fullpath = G_Ddir + dest_filename;
saveAs("Measurements", fullpath);
}
}

0 comments on commit 5d9291f

Please sign in to comment.