single paged image but stacked or not?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

single paged image but stacked or not?

Md Tamjidul Hoque
Dear All

        is it possible to check whether a single paged/sliced image is
   
    case (a) a single-image or
    case (b) a single-paged/sliced stack?

For the following line of codes:
====================
ImagePlus imp = new ImagePlus(my_file_names.get(i));
ImageStack stack = imp.getStack();
*
* "stack.getSize()" will return 1 for both the (a) and (b) cases.

Also, I am assuming that  .getStack() is not creating a stack as I could
not
 add a result-page if it was originally case (a).

I think I have to create stack actually for case (a) - for that I need
to detect
and distinguish the cases.

Thanks
Tamjid