Posted by
Michael Schmid on
URL: http://imagej.273.s1.nabble.com/API-call-for-hyperstack-to-stack-tp5023716p5023717.html
Hi Aryeh,
the ImageJ command finder (ctrl-L) tells you that the call to the class is
ij.plugin.HyperStackConverter("hstostack")
[you may have to enlarge the width of the 'Class' column to see it fully]
In the HyperStackConverter source code you will see that with
arg="hstostack", it calls the convertHSToStack(imp) method (line 289).
This method is not public, however.
Anyhow, the IJ.run method accepts an optional argument specifying the
input ImagePlus, so I see nothing bad in using
IJ.run(imp, Hyperstack to Stack")
Michael
________________________________________________________________
On 16.07.20 12:15, Aryeh Weiss wrote:
> The HyperStackConverter doc says that it
> Implements the "Stack to HyperStack", "RGB to HyperStack" and
> "HyperStack to Stack" commands.
>
> However, while I see three toHyperStack() methods, I do not see any
> toStack method, and I want to do Hypertack to Stack.
> I can do it with IJ.run, but I an trying to replace IJ.run calls in my
> code.
>
> In the source
>
https://imagej.nih.gov/ij/source/ij/plugin/HyperStackConverter.java> I see code to do hyperstack to stack (covertHSToStack), but I do not
> know how to use it.
>
> What am I missing?
>
> Thanks in advance
> --aryeh
>
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html