source:
proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/vlutil/toolbox/imsc.m
Last change on this file was 37, checked in by , 14 years ago | |
---|---|
File size: 279 bytes |
Line | |
---|---|
1 | function J=imsc(I) |
2 | % IMSC Scale image |
3 | % J=IMSC(I) scales the ranges of the gray-scale or color image I |
4 | % to fit in the interval [0,1]. |
5 | % |
6 | % IMSC works only on floating point images. |
7 | |
8 | if(~isfloat(I)) |
9 | error('I must be float') ; |
10 | end |
11 | |
12 | J = I - min(I(:)) ; |
13 | J = J / max(J(:)) ; |
Note: See TracBrowser
for help on using the repository browser.