Thanks a lot Melissa, this was very helpful and works perfectly as described.<div>Sincerely,</div><div>Jerome</div><div><br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div>
> I'm using the following to open lif files:<br>
><br>
>    ImagePlus[] bfi = BF.openImagePlus(path);<br>
><br>
> with a known path.<br>
><br>
> Is there a way to force the "bio-formats import" dialog or at least the<br>
> "bio-formats series options" dialog to show, so that the user can select<br>
> which serie to open from the lif file ?<br>
> I've set the windowless options to false for the lif format in the "LOCI<br>
> Plugins Configuration" dialog and theses dialogs are always shown when I<br>
> use the "Bio-Formats Importer" command, but not when used from<br>
> BF.openImagePlus.<br>
<br>
</div>Something like this should work:<br>
<br>
// --<br>
ImporterOptions options = new ImporterOptions();<br>
options.setId(path);<br>
ImportProcess process = new ImportProcess(options);<br>
new ImporterPrompter(process);<br>
process.execute();<br>
options = process.getOptions();<br>
ImagePlus[] imps = BF.openImagePlus(options);<br>
// --<br>
<br>
Regards,<br>
-Melissa<br>
<div><div><br>
On Mon, Apr 22, 2013 at 05:25:58PM +0200, Jerome Mutterer wrote:<br>
> Dear all,<br>
><br>
> The link "Using Bio-Formats Guide" on the<br>
> <a href="http://loci.wisc.edu/bio-formats/bio-formats-java-library" target="_blank">http://loci.wisc.edu/bio-formats/bio-formats-java-library</a> LOCI page is<br>
> broken.<br>
> The best match I've found is now:<br>
> <a href="http://www.openmicroscopy.org/site/support/bio-formats/developers/using-bioformats.html" target="_blank">http://www.openmicroscopy.org/site/support/bio-formats/developers/using-bioformats.html</a><br>
><br>
> ------------------------<br>
><br>
> I'm using the following to open lif files:<br>
><br>
>    ImagePlus[] bfi = BF.openImagePlus(path);<br>
><br>
> with a known path.<br>
><br>
> Is there a way to force the "bio-formats import" dialog or at least the<br>
> "bio-formats series options" dialog to show, so that the user can select<br>
> which serie to open from the lif file ?<br>
> I've set the windowless options to false for the lif format in the "LOCI<br>
> Plugins Configuration" dialog and theses dialogs are always shown when I<br>
> use the "Bio-Formats Importer" command, but not when used from<br>
> BF.openImagePlus.<br>
><br>
> Thanks for any feedback.<br>
><br>
> Jerome<br>
<br>
</div></div>> _______________________________________________<br>
> ome-users mailing list<br>
> <a href="mailto:ome-users@lists.openmicroscopy.org.uk" target="_blank">ome-users@lists.openmicroscopy.org.uk</a><br>
> <a href="http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users" target="_blank">http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users</a><br>
<br>
_______________________________________________<br>
ome-users mailing list<br>
<a href="mailto:ome-users@lists.openmicroscopy.org.uk" target="_blank">ome-users@lists.openmicroscopy.org.uk</a><br>
<a href="http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users" target="_blank">http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users</a><br>
</blockquote></div><br></div>