Skip to content
Snippets Groups Projects
Commit f0fc2219 authored by Eric Wait's avatar Eric Wait
Browse files

Deal with original microscope files that do not have position data.

parent 3c244016
Branches
No related tags found
No related merge requests found
...@@ -40,6 +40,7 @@ for series=0:bfReader.getSeriesCount()-1 ...@@ -40,6 +40,7 @@ for series=0:bfReader.getSeriesCount()-1
imageData.PixelPhysicalSize = [xPixelPhysicalSize, yPixelPhysicalSize, zPixelPhysicalSize]; imageData.PixelPhysicalSize = [xPixelPhysicalSize, yPixelPhysicalSize, zPixelPhysicalSize];
try
if (~isempty(omeMetadata.getPlanePositionX(series,0))) if (~isempty(omeMetadata.getPlanePositionX(series,0)))
positionType = omeMetadata.getPlanePositionX(series,0).unit.getSymbol(); positionType = omeMetadata.getPlanePositionX(series,0).unit.getSymbol();
if (strcmp(positionType,'reference frame')) if (strcmp(positionType,'reference frame'))
...@@ -61,6 +62,9 @@ for series=0:bfReader.getSeriesCount()-1 ...@@ -61,6 +62,9 @@ for series=0:bfReader.getSeriesCount()-1
else else
imageData.Position = [0,0,0]; imageData.Position = [0,0,0];
end end
catch err
imageData.Position = [0,0,0];
end
imageData.ChannelNames = cell(imageData.NumberOfChannels,1); imageData.ChannelNames = cell(imageData.NumberOfChannels,1);
for c=1:imageData.NumberOfChannels for c=1:imageData.NumberOfChannels
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment