All Downloads are FREE. Search and download functionalities are using the official Maven repository.

macros.MeasureStack.txt Maven / Gradle / Ivy

Go to download

ImageJ is an open source Java image processing program inspired by NIH Image for the Macintosh.

There is a newer version: 1.54m
Show newest version
// 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