Login  Register

API way to do deinterleave?

Posted by Aryeh Weiss on Sep 12, 2018; 12:26pm
URL: http://imagej.273.s1.nabble.com/API-way-to-do-deinterleave-tp5021169.html

I need to deinterleave a stack, and this is how I currently do it.

IJ.run(imp ,"Properties...", "channels=1 slices=1
frames="+str(timePoints)+" unit=pixel pixel_width=1.0000
pixel_height=1.0000 voxel_depth=1.0000")

and this works fine. However, when IJ.run() commands open up window, I
need to get a handle on those windows, and this requires knowing the
names or id's of the windows that were opened. This is ok, but awkward,
especially when more than one image windows is generated. Also, it means
that the images are displayed, which is not always needed or desirable.

In this case, I deinterleave nine fields,so it is awkward. So I close
all image windows before deinterleaving, and then grab the entire image
list and create a list of ImagPlus objects.

Is there a stack deinterleave method (similar to reduce() and some other
stack methods), that can be called and will return a list of the
deinterleaved images.

I can duplicate, reduce(), remove an image and repeat, but I am hoping
that I do not have to reinvent it.

tnx in advance
--aryeh

--
Aryeh Weiss
Faculty of Engineering
Bar Ilan University
Ramat Gan 52900 Israel

Ph:  972-3-5317638
FAX: 972-3-7384051


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