source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/vlutil/toolbox/imreadgray.m @ 37

Last change on this file since 37 was 37, checked in by (none), 14 years ago

Added original make3d

File size: 298 bytes
Line 
1function I = imreadgray(file)
2% IMREADGRAY  Reads an image as gray-scale
3%   I=IMREADGRAY(FILE) reads the image FILE and converts the result to
4%   a gray scale image (in double format normalized with range in
5%   [0,1]).
6
7I=double(imread(file))/256 ;
8
9if(size(I,3) > 1)
10  I = rgb2gray( I ) ;
11end
Note: See TracBrowser for help on using the repository browser.