Re: Using the Bioformats importer to open .ims files in a macro

Posted by Rocco D'Antuono on
URL: http://imagej.273.s1.nabble.com/Using-the-Bioformats-importer-to-open-ims-files-in-a-macro-tp5021199p5021219.html

Hi Jacqueline, this code opens the second series in your file (tested at
least in ".lif" file).
Obviously you can change the value of "series_number" to select other images
in the list.
Best,
Rocco

---------------------------------------------------
/pathToFile = File.openDialog("Choose a file");
print(pathToFile);
series_number=2;
run("Bio-Formats Importer", "open=["+pathToFile+"] color_mode=Default
rois_import=[ROI manager] view=Hyperstack stack_order=XYCZT
series_"+series_number+"");/
---------------------------------------------------



-----
Senior Microscopist
Crick Advanced Light Microscopy facility (CALM)
The Francis Crick Institute
1 Midland Road, NW1 1AT, London (UK)
--
Sent from: http://imagej.1557.x6.nabble.com/

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Senior Microscopist
Crick Advanced Light Microscopy facility (CALM)
The Francis Crick Institute
1 Midland Road, NW1 1AT, London (UK)
https://roccodant.github.io/