Skip to content
Snippets Groups Projects
Commit 2b0a4beb authored by ac_22's avatar ac_22
Browse files

autoParam - updated optimizeSegParams

parent 48611b66
No related branches found
No related tags found
No related merge requests found
...@@ -17,6 +17,16 @@ sz(2)=temp; ...@@ -17,6 +17,16 @@ sz(2)=temp;
sz(4)=length(channels); sz(4)=length(channels);
sz(5)=length(time); sz(5)=length(time);
targetFile=strrep(strDB,'.LEVER','.h5'); targetFile=strrep(strDB,'.LEVER','.h5');
if ~exist(targetFile,'file')
% try CONSTANTS.imageDir folder
[~,dsName,~]=fileparts(targetFile);
targetFile=fullfile(CONSTANTS.imageData.imageDir,[dsName '.h5']);
if ~exist(targetFile,'file')
fprintf(2,'leversc.loadImage :: file not found %s\n',[dsName '.h5']);
im=[];
return;
end
end
im=h5read(targetFile,'/Images/Original',[1,1,1,channels(1),time(1)],sz); im=h5read(targetFile,'/Images/Original',[1,1,1,channels(1),time(1)],sz);
im=mat2gray(im); im=mat2gray(im);
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment