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 (none), 14 years ago

Added original make3d

File size: 279 bytes
Line 
1function 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
8if(~isfloat(I))
9  error('I must be float') ;
10end
11
12J = I - min(I(:)) ;
13J = J / max(J(:)) ;
Note: See TracBrowser for help on using the repository browser.