source: trunk/src/read_image.m @ 458

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

series adapted to BATCH mode. Tests still needed.

File size: 396 bytes
1%--read images or video objects
2function A=read_image(FileName,FileType,VideoObject,num)
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);
Note: See TracBrowser for help on using the repository browser.