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

Don't look for an imageDir if the image was not loaded from one.

parent 91c4eb87
No related branches found
No related tags found
No related merge requests found
...@@ -147,7 +147,7 @@ function [varargout] = Open( im, imData, imagePath, mesagePkgStr ) ...@@ -147,7 +147,7 @@ function [varargout] = Open( im, imData, imagePath, mesagePkgStr )
end end
function loadTransFunc(imData,im) function loadTransFunc(imData,im)
if (exist(fullfile(imData.imageDir,[imData.DatasetName,'_transfer','.json']),'file')) if (isfield(imData,'imageDir') && exist(fullfile(imData.imageDir,[imData.DatasetName,'_transfer','.json']),'file'))
D3d.LoadTransferFunction(fullfile(imData.imageDir,[imData.DatasetName,'_transfer','.json'])); D3d.LoadTransferFunction(fullfile(imData.imageDir,[imData.DatasetName,'_transfer','.json']));
else else
D3d.UI.AutoTransferFunction(im); D3d.UI.AutoTransferFunction(im);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment