macros.MeasureStack.txt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ij Show documentation
Show all versions of ij Show documentation
ImageJ is an open source Java image processing program inspired by NIH Image for the Macintosh.
// This macro runs "Measure" on a all the slices in a stack. With a
// hyperstack, it runs "Measure" in a user-selected (c,t,z) order.
// Unchecking "Channels", "Slices" or "Frames" will select the
// current channel, slice or frame while running "Measure".
//
// Ved P. Sharma, March 21, 2012
// Albert Einstein College of Medicine, New York
saveSettings;
setOption("Stack position", true);
if (!Stack.isHyperstack) {
getVoxelSize(width, height, depth, unit);
for (n=1; n<=nSlices; n++) {
setSlice(n);
run("Measure");
}
if (unit!="pixels") {
depths = newArray(Table.size);
for (i=0; i
© 2015 - 2024 Weber Informatics LLC | Privacy Policy