I wrote a script that uses
Image_Expression_Parser to process several stacks at once.
After completing the computation, I need to convert the result back into a 32-bit stack (I wish I have time someday to learn
ImgLib2, but up to now, I’m happy with IJ1 stacks).
So I’m using:
ImagePlus resultImp = net.imglib2.img.display.imagej.ImageJFunctions.wrapFloat(result, “epsEq”)
result, obtained from the
Image_Expression_Parser, representing a 120x60x30 stack (for example).
What I get is a virtual stack 120x60 with 30 channels, instead of a single channel, 30 images stack.
What did I miss? How can I specify the output format ?
Thank you for your help, and sorry if this was already asked.