Task #12569 (closed)
BUG: ND2 files - x,y position of the different multi points returned in the wrong order
Reported by: | bramalingam | Owned by: | mlinkert |
---|---|---|---|
Priority: | minor | Milestone: | 5.1.1 |
Component: | Bio-Formats | Version: | 5.0.4 |
Keywords: | ND2Reader, our-fault | Cc: | enno.oldewurtel@… |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | 0.0d |
Sprint: | n.a. |
Description
QA 9529,
nd2 with 80 multipoints, 2 time-points and 3 channels.
When trying to retrieve the x,y position of the different multipoints, the locations are returned in the wrong order and some are missing.
Depending on how many time-points other nd2 had, the return pattern of locations seemed to differ. For only one time-point the correct locations are returned in the right order with bioformats version 5.0.4
Script used for checking,
clear all;close all;
r = bfGetReader('/Volumes/ome/apache_repo/9529/PositionInfo_z1_c3_t2_multipoints80.nd2');
metadata = r.getMetadataStore();
zSection =0;
for channel = 0:2
for time = 0:1
figure;
planeIndex = loci.formats.FormatTools?.getIndex(r, zSection, channel, time);
% planeIndex=0;
for positionIndex=1:80
xPosition(positionIndex) = double(metadata.getPlanePositionX(positionIndex-1, planeIndex));
yPosition(positionIndex) = double(metadata.getPlanePositionY(positionIndex-1, planeIndex));
disp(positionIndex)
hold on;
if time>0
plot(xPosition,yPosition,'r*-');
else
plot(xPosition,yPosition,'b*-');
end
end
title(num2str(channel)?)
end
end
Change History (5)
comment:1 Changed 10 years ago by mlinkert
- Owner changed from mlinert to mlinkert
comment:2 Changed 10 years ago by mlinkert
- Keywords ND2Reader our-fault added
comment:3 Changed 9 years ago by mlinkert
- Milestone changed from Unscheduled to 5.1.1
comment:4 Changed 9 years ago by mlinkert
- Resolution set to fixed
- Status changed from new to closed
Should be fixed with: https://github.com/openmicroscopy/bioformats/pull/1717
comment:5 Changed 9 years ago by Melissa Linkert <melissa@…>
- Remaining Time set to 0
(In [fa3a13bc8785bf07e9cf9d2837dcd00ebc30fe94/bioformats.git] on branch develop) ND2: fix indexing of plane positions
Fixes #12569.
Moving to 5.1.1 for triage.