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 , 14 years ago | |
---|---|
File size: 298 bytes |
Rev | Line | |
---|---|---|
[37] | 1 | function 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 | ||
7 | I=double(imread(file))/256 ; | |
8 | ||
9 | if(size(I,3) > 1) | |
10 | I = rgb2gray( I ) ; | |
11 | end |
Note: See TracBrowser
for help on using the repository browser.