source: trunk/src/read_image.m @ 453

Last change on this file since 453 was 453, checked in by sommeria, 9 years ago

series adapted to BATCH mode. Tests still needed.

File size: 396 bytes
Line 
1%--read images or video objects
2function A=read_image(FileName,FileType,VideoObject,num)
3%------------------------------------------------------------------------
4%num is the view number needed for an avi movie
5switch FileType
6    case {'video','mmreader'}
7        A=read(VideoObject,num);
8    case 'multimage'
9        A=imread(FileName,num);
10    case 'image'   
11        A=imread(FileName);
12end
Note: See TracBrowser for help on using the repository browser.