using ij.plugin.HyperStackConverter("stacktohs")

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

using ij.plugin.HyperStackConverter("stacktohs")

ericbarnhill
I'm a little confused as to how I implement the HyperStackConverter  
object. I see in the API that the method

public void run(java.lang.String arg)

is passed an arg from IJ_Props.txt and I see that the arg I want is

hyperstacks02="Stack to Hyperstack...",  
ij.plugin.HyperStackConverter("stacktohs")

But I don't understand:

-- how do I pass the other parameters I need, such as ZTC order,  
slices, frames?

-- how to access the created hyperstack when the method is void?

Thanks,
Eric

---
Eric Barnhill
Clinical Research Imaging Centre
The University of Edinburgh

--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: using ij.plugin.HyperStackConverter("stacktohs")

Rasband, Wayne (NIH/NIMH) [E]
On Jul 29, 2013, at 7:08 AM, Eric Barnhill wrote:

> I'm a little confused as to how I implement the HyperStackConverter object. I see in the API that the method
>
> public void run(java.lang.String arg)
>
> is passed an arg from IJ_Props.txt and I see that the arg I want is
>
> hyperstacks02="Stack to Hyperstack...", ij.plugin.HyperStackConverter("stacktohs")
>
> But I don't understand:
>
> -- how do I pass the other parameters I need, such as ZTC order, slices, frames?
>
> -- how to access the created hyperstack when the method is void?

The ImageJ 1.48b daily build adds a recordable HyperStackConverter.toHyperStack() method you can use. Here is a JavaScript example created by using the Image>Hyperstacks>Stack to Hyperstack command with the recorder running:

  imp = IJ.createImage("Untitled", "8-bit black", 500, 500, 60);
  imp2 = HyperStackConverter.toHyperStack(imp, 3, 4, 5, "default", "Composite");
  imp2.show();

-wayne

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