<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hi Eric,
<div class=""><br class="">
</div>
<div class="">Thank you very much for providing the detailed report and sample file.</div>
<div class="">I have been able to reproduce the issue exactly as described and have been able to do some further debugging on the problem.</div>
<div class="">This is a bug in the Bio-Formats OIRReader and I have opened a Trello card on the Bio-Formats inbox with details to track the issue: <a href="https://trello.com/c/D6wZog99/252-oir-duplicate-planes" class="">https://trello.com/c/D6wZog99/252-oir-duplicate-planes</a></div>
<div class=""><br class="">
</div>
<div class="">With Thanks,</div>
<div class="">David Gault</div>
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On 22 Jun 2018, at 18:25, Eric Kercher <<a href="mailto:kercher.e@husky.neu.edu" class="">kercher.e@husky.neu.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">
<div class="gmail_default" style="font-family:"trebuchet ms",sans-serif">I'm trying to load some lambda scans taken with an Olympus microscope (.oir file) and ran into a potential bug.</div>
<div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><br class="">
</div>
<div class="gmail_default" style="font-family:"trebuchet ms",sans-serif">Bio-formats recognizes the correct number of channels, but loads the first channel of the image for each subsequent plane. This occurs in both imageJ and Matlab. In Matlab, I traced the
 issue to line 78 in the bfGetPlane.m file:</div>
<div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><br class="">
</div>
<div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><span class=""></span>
<div style="margin: 0px; font-weight: normal; font-size: 11px; line-height: normal; font-family: 'Courier New';" class="">
plane = r.openBytes(<span class="gmail-m_-9120028544603819777gmail-s1" style="color:rgb(4,51,255)">...</span></div>
<div style="margin: 0px; font-weight: normal; font-size: 11px; line-height: normal; font-family: 'Courier New';" class="">
<span class="gmail-m_-9120028544603819777gmail-Apple-converted-space">    </span>
ip.Results.iPlane - 1, ip.Results.x - 1, ip.Results.y - 1, <span class="gmail-m_-9120028544603819777gmail-s1" style="color:rgb(4,51,255)">
...</span></div>
<div style="margin: 0px; font-weight: normal; font-size: 11px; line-height: normal; font-family: 'Courier New';" class="">
<span class="gmail-m_-9120028544603819777gmail-Apple-converted-space">    </span>
ip.Results.width, ip.Results.height);</div>
<div style="margin: 0px; font-weight: normal; font-size: 12px; line-height: normal; font-family: 'Courier New'; min-height: 14px;" class="">
<br class="">
</div>
r.openBytes loads identical vectors for 'plane' through each iteration of the loop in bfopen.m. </div>
<div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><br class="">
</div>
<div class="gmail_default" style="font-family:"trebuchet ms",sans-serif">I've reproduced this problem using the BF matlab toolbox and imageJ plugins on both windows (Windows server 2016) and Mac (macOS High Sierra 10.13.5); each system has the latest versions
 of BF (5.8.2) and Java (10.0.1). </div>
<div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><br class="">
</div>
<div class="gmail_default" style="font-family:"trebuchet ms",sans-serif">This script reproduces the bug:</div>
<div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><br class="">
</div>
<div class="gmail_default"><font face="trebuchet ms, sans-serif" class=""><span class=""></span></font>
<div style="font-family: 'Courier New'; margin: 0px; font-weight: normal; font-size: 11px; line-height: normal; color: rgb(37, 153, 45);" class="">
% Read data</div>
<div style="font-family: 'Courier New'; margin: 0px; font-weight: normal; font-size: 11px; line-height: normal; color: rgb(178, 69, 243);" class="">
<span class="gmail-s1" style="">impath = </span>'path/to/lambda/scan.oir'<span class="gmail-s1" style="">;</span></div>
<div style="font-family: 'Courier New'; margin: 0px; font-weight: normal; font-size: 11px; line-height: normal;" class="">
data = bfOpen3DVolume(impath);</div>
<div style="font-family: 'Courier New'; margin: 0px; font-weight: normal; font-size: 11px; line-height: normal;" class="">
im = data{1,1}{1,1};</div>
<div style="font-family: 'Courier New'; margin: 0px; font-weight: normal; font-size: 11px; line-height: normal; color: rgb(37, 153, 45);" class="">
% Compare channels</div>
<div style="margin: 0px; line-height: normal;" class=""><font face="Courier New" class=""><span style="font-size:11px" class="">isequal(im(:,:,1), im(:,:,2))</span></font><br class="">
</div>
<div style="margin: 0px; line-height: normal;" class=""><font face="Courier New" class=""><span style="font-size:11px" class="">plot(squeeze(mean(mean(im))));</span><br class="">
</font></div>
<div style="font-family: 'Courier New'; margin: 0px; font-weight: normal; font-size: 11px; line-height: normal;" class="">
<br class="">
</div>
</div>
<div class="gmail_default" style="font-family:"trebuchet ms",sans-serif">isequal returns true for any 2 channels you pick; the plot displays the full z-axis profile which is a flat line. In ImageJ, Image>Stacks>Plot Z-axis Profile also produces the same flat
 line. I also tried loading the image using each stack configuration option (XYCTZ, XYZCT, etc...) with no luck.</div>
<div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><br class="">
</div>
<div class="gmail_default" style="font-family:"trebuchet ms",sans-serif">The OlympusViewer plugin for ImageJ (not the BF one) loads the lambda scans correctly on the Mac & Windows systems described above. I also downloaded the three z-stacks from the OME repository
 and those load correctly as well. I searched through the metadata (comparing z-scan and lambda-scan) but found nothing out of the ordinary; so I don't know if its an issue with my data files or if its an actual bug.  </div>
<div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><br class="">
</div>
<div class="gmail_default" style="font-family:"trebuchet ms",sans-serif">I've uploaded a sample .oir lambda scan file (<span style="color:rgb(85,85,85);font-family:Arial,Verdana,Lucida,Helvetica,sans-serif;text-align:left;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline" class="">exampleLambdaScan_AF546soln.oir)</span>
 for reproduction through the OME QA uploader. In the meantime, please let me know if I missed anything. Thank you and happy to provide more information as needed.</div>
<div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><br class="">
</div>
<div class="gmail_default" style="font-family:"trebuchet ms",sans-serif">Regards,</div>
<div class="gmail_default" style="font-family:"trebuchet ms",sans-serif">Eric Kercher </div>
</div>
_______________________________________________<br class="">
ome-users mailing list<br class="">
<a href="mailto:ome-users@lists.openmicroscopy.org.uk" class="">ome-users@lists.openmicroscopy.org.uk</a><br class="">
http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
<br>
<span style="font-size:10pt;">The University of Dundee is a registered Scottish Charity, No: SC015096</span>
</body>
</html>