Login  Register

Re: question on opening Leica .lif file

Posted by Lai Ding on Dec 17, 2014; 5:13pm
URL: http://imagej.273.s1.nabble.com/question-on-opening-Leica-lif-file-tp5010987p5010990.html

Thanks Curtis.

This is  exactly what I need.

Best
Lai

-----Original Message-----
From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Curtis Rueden
Sent: Wednesday, December 17, 2014 11:41 AM
To: [hidden email]
Subject: Re: question on opening Leica .lif file

Hi Lai,

> Is there a simple way or macro function to know the number of dataset
> in a .lif file without opening all of them?

Here's a macro:

run("Bio-Formats Macro Extensions");
file = File.openDialog("Choose a file"); Ext.setId(file); Ext.getSeriesCount(seriesCount); showMessage("Dataset has " + seriesCount + " images");

Regards,
Curtis


On Wed, Dec 17, 2014 at 9:41 AM, Lai Ding <[hidden email]> wrote:

>
> Hi,
>
>   I have a question regarding LOCI open Leica .lif file.
>
>   Is there a simple way or macro function to know the number of
> dataset in a .lif file without opening all of them?
>
>   I have some very large .lif file, I would like to open each
> individual dataset (labeled "series_x" ) in .lif file and save it as
> Tiff format.  I like to write a macro to do this task, but need to
> know the total number of dataset for the "for" loop.
>
>  currently  I just open them all, and get the number from "nImages",
> however sometimes the .lif is so big, that the RAM is not enough to
> handle the file.
>
>  Thanks
> Lai
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

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

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