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

Don't try to read metadata, it might not exist

parent d8536444
Branches
No related tags found
No related merge requests found
function InitializeMipFigure(im, imD, metadataPath, prompt) function InitializeMipFigure(im, imD)
%InitializeMipFigure( metadataPath, prompt) %InitializeMipFigure( metadataPath, prompt)
global MipFigureHandle MipAxesHandle MipPrevRectangleHandle MipDragRectangleHandle MipTextHandle MipDragLineHandle MipFullIm global MipFigureHandle MipAxesHandle MipPrevRectangleHandle MipDragRectangleHandle MipTextHandle MipDragLineHandle MipFullIm
...@@ -10,7 +10,7 @@ if (~exist('imD','var') || isempty(imD)) ...@@ -10,7 +10,7 @@ if (~exist('imD','var') || isempty(imD))
if (~exist('metadataPath','var') || isempty(metadataPat)) if (~exist('metadataPath','var') || isempty(metadataPat))
error('No image or metadata to read!'); error('No image or metadata to read!');
end end
imD = MicroscopeData.ReadMetadata(metadataPath,prompt); %imD = MicroscopeData.ReadMetadata(metadataPath,prompt);
end end
[~, imInfo] = MicroscopeData.GetImageClass(imD); [~, imInfo] = MicroscopeData.GetImageClass(imD);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment