// 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