Re: Hyperstack with nz=1 problem

Posted by Fred Damen on
URL: http://imagej.273.s1.nabble.com/Hyperstack-with-nz-1-problem-tp5019980p5020037.html

Greetings,

Why is a grey scale dataset with one slice per volume and many time points not
considered a HyperStack?  Is the code below, from ImagePlus, trying to tell
the difference between an ImagePlus without a ImageStack and an ImageStack
with only one entry; I can see the former being a cause to not be considered a
Hyperstack but not the later.  I am dealing with the later case.

This causes me to not be able to substack my Hyperstack through the GUI.
Although I can do Stacks->Z Project... in the time/frame dimension with
(NZ=1,NT>1).  Is there available tools to do 'T Project...' and 'Plot T-axis
Profile...' without this bug?

Code from ImagePlus:

        /** Returns 'true' if this image is a hyperstack. */
        public boolean isHyperStack() {
                return isDisplayedHyperStack() || (openAsHyperStack&&getNDimensions()>3);
        }

        /** Returns the number of dimensions (2, 3, 4 or 5). */
        public int getNDimensions() {
                int dimensions = 2;
                int[] dim = getDimensions(true);
                if (dim[2]>1) dimensions++;
                if (dim[3]>1) dimensions++;
                if (dim[4]>1) dimensions++;
                return dimensions;
        }

Thanks,

Fred


On Fri, February 2, 2018 10:46 pm, Fred Damen wrote:

> Greetings,
>
> I am using hyperstacks and ran into some issues.
>
> With datasets with multiple slices(NZ>1) and multiple frames (NF>1) everything
> seems normal: image status bar shows z:cz/NZ t:ct/NT, and info page shows
> similar, two scroll bars on bottom, and, Stacks->Tools->Make Substack...
> present the dialog for SubHyperstackMaker.
>
> With datasets with one slice(NZ=1) and multiple frames (NF>1) there are flaws:
> image status bar shows n/N, info page lacks slice/frame also, one scroll bar
> on bottom, and Stacks->Tools->Make Substack... present the dialog for
> SubstackMaker and produces a stack with a 1x1 images.
>
> I suspect that ImagePlus::isHyperStack() is not recognizing single slice
> hyperstack properly.
>
> Thanks,
>
> Fred
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html