<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>
<div>Hi,</div>
<div><br>
</div>
<div>Thank you for reporting your issue.</div>
<div>It would be great if you could expand the “options” that were used to open the image within the plugin. </div>
<div><br>
</div>
<div>Could you please check the following,</div>
<ol>
<li>open ImageJ. Go to Plugins—>Macro—> Record</li><li>In the Macro Recorder window , please use the drop down menu for “Record” and select “Java” as the option.</li><li>Repeat the Manual workflow described in your post (which opens the file within a fraction of a second).This will record the api method call , in the Recorder window.</li><li>And check if the “options” in your plugin, matches the “options” in the Macro Recorder, for the IJ.Run method.</li></ol>
<div>If they match, there should be no difference in terms of performance in the import call.</div>
<div>Please let us know, if you find otherwise.</div>
<div><br>
</div>
<div>Best,</div>
<div>Balaji</div>
<div>
<div><br>
</div>
<div>
<div style="color: rgb(40, 40, 40);"><span style="background-color: rgb(255, 255, 255);">__________________</span></div>
<div style="color: rgb(40, 40, 40);">
<p style="margin-top: 0px; margin-bottom: 0px;">Mr Balaji Ramalingam</p>
<p style="margin-top: 0px; margin-bottom: 0px;">Software Developer<br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">OME Team</p>
<p style="margin-top: 0px; margin-bottom: 0px;">College of Life Sciences</p>
<p style="margin-top: 0px; margin-bottom: 0px;">University of Dundee</p>
</div>
</div>
</div>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>"Ved P. Sharma" <<a href="mailto:vedsharma@gmail.com">vedsharma@gmail.com</a>><br>
<span style="font-weight:bold">Reply-To: </span>"<a href="mailto:ved.sharma@gmail.com">ved.sharma@gmail.com</a>" <<a href="mailto:ved.sharma@gmail.com">ved.sharma@gmail.com</a>>, OME User Support List <<a href="mailto:ome-users@lists.openmicroscopy.org.uk">ome-users@lists.openmicroscopy.org.uk</a>><br>
<span style="font-weight:bold">Date: </span>Thursday, 25 June 2015 20:11<br>
<span style="font-weight:bold">To: </span>"<a href="mailto:ome-users@lists.openmicroscopy.org.uk">ome-users@lists.openmicroscopy.org.uk</a>" <<a href="mailto:ome-users@lists.openmicroscopy.org.uk">ome-users@lists.openmicroscopy.org.uk</a>><br>
<span style="font-weight:bold">Subject: </span>[ome-users] Running Bio-Formats from a plugin<br>
</div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">
<div>
<div>
<div>Hi,<br>
<br>
</div>
When I run <i>Bio-Formats Importer</i> from ImageJ, it opens an image file of size ~ 20MB within a fraction of a second. When I open the same image file by calling
<i>Bio-Formats Importer</i> from inside a plugin using IJ.run("Bio-Formats Importer", "options"), it takes a long time to open the file (~ 10 sec). It starts with a white background and then after about ~5-10 seconds, the image is displayed. Can anybody tell
me what am I doing wrong when calling BF Importer from inside a plugin?<br>
<br>
<u>System info:</u> I have ImageJ 1.49v running on WIndows 7, 64-bit computer and I have installed bioformats_package.jar (ver 5.1.2) in the plugins folder of ImageJ.
<br>
<br>
</div>
Thanks,<br>
<br>
</div>
Ved<br>
<br>
<font size="2">_________________________________<br>
Ved P. Sharma, PhD<br>
Dept. of Anatomy and Structural Biology <br>
Albert Einstein College of Medicine<br>
Bronx, NY 10461<br>
</font><br>
</div>
</div>
</div>
</span><br>
<span style="font-size:10pt;">The University of Dundee is a registered Scottish Charity, No: SC015096</span>
</body>
</html>