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

Posted by Jacqueline Ross on
URL: http://imagej.273.s1.nabble.com/Using-the-Bioformats-importer-to-open-ims-files-in-a-macro-tp5021199p5021249.html

Hi Rocco,
Thank you so much for that code. It looks like just what I need. I am on leave at present but will try it out as soon as I return.
Cheers,
Jacqui
________________________________________
From: ImageJ Interest Group [[hidden email]] on behalf of Rocco D'Antuono [[hidden email]]
Sent: 22 September 2018 04:40
To: [hidden email]
Subject: Re: Using the Bioformats importer to open .ims files in a macro

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

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