Changeset 1033 for trunk/src/set_grid.m
- Timestamp:
- Apr 30, 2018, 8:01:35 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/set_grid.m
r1027 r1033 241 241 end 242 242 [FileInfo,VideoObject]=get_file_info(GUI.ImageA); 243 switch FileInfo.FileType 244 case {'image','multimage','video','mmreader'}% case of input image or movie OK 245 otherwise 246 msgbox_uvmat('ERROR',['error: ' GUI.ImageA ' is not an image type recognized by Matlab ']) 247 return 248 end 243 if ~strcmp(FileInfo.FieldType,'image');% =1 for images 244 msgbox_uvmat('ERROR',['error: ' GUI.ImageA ' is not an image type recognized by Matlab ']) 245 return 246 end 247 249 248 [RootPath,SubDir,RootFile,tild,tild,tild,tild,FileExt]=fileparts_uvmat(GUI.ImageA); 250 249 … … 336 335 ImageB=fullfile(PathName,FileName); 337 336 [FileInfo,tild,VideoObject]=get_file_info(ImageB); 338 switch FileInfo.FileType 339 case {'image','multimage','video','mmreader'}% case of input image or movie OK 340 set(handles.ImageB,'String',ImageB) 341 otherwise 342 msgbox_uvmat('ERROR',['error: ' imageB ' is not an image type recognized by Matlab ']) 337 if ~strcmp(FileInfo.FieldType,'image');% =1 for images 338 msgbox_uvmat('ERROR',['error: ' imageB ' is not an image type recognised by Matlab ']) 343 339 return 344 340 end
Note: See TracChangeset
for help on using the changeset viewer.