Changeset 784 for trunk/src/read_field.m
- Timestamp:
- Jun 7, 2014, 6:17:53 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/read_field.m
r782 r784 14 14 %INPUT 15 15 % FileName: name of the input file 16 % FileType: type of file, as determined by the function get_file_ type.m16 % FileType: type of file, as determined by the function get_file_info.m 17 17 % ParamIn: movie object or Matlab structure of input parameters 18 18 % .FieldName: name (char string) of the input field (for Civx data) … … 213 213 A=permute(A,[3 2 1]); 214 214 case 'multimage' 215 warning 'off'215 % warning 'off' 216 216 A=imread(FileName,num); 217 217 case 'image' 218 218 A=imread(FileName); 219 end 220 if ~isempty(errormsg) 221 errormsg=[FileType ' input: ' errormsg];222 return219 case 'rdvision' 220 [A,timestamps]=binread_rdv(FileName,num); 221 otherwise 222 errormsg=[ FileType ': invalid input file type for uvmat']; 223 223 end 224 224 225 225 %% case of image 226 226 if ~isempty(A) 227 if strcmp(FileType,'rdvision') 228 Field.Time=timestamps; 229 end 227 230 if isstruct(ParamOut) 228 231 ParamOut.FieldName='image'; … … 268 271 Field.A=A; 269 272 Field.CoordUnit='pixel'; %used for mouse_motion 270 end 271 272 273 273 274 end 275 276 277
Note: See TracChangeset
for help on using the changeset viewer.