source:
proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/vlutil/toolbox/imsc.m
@
37
Last change on this file since 37 was 37, checked in by , 14 years ago | |
---|---|
File size: 279 bytes |
Rev | Line | |
---|---|---|
[37] | 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.