M-File Help: istretch | View code for istretch |
Image normalization
out = istretch(im, options) is a normalized image in which all pixel values lie in the range 0 to 1. That is, a linear mapping where the minimum value of im is mapped to 0 and the maximum value of im is mapped to 1.
'max', M | Pixels are mapped to the range 0 to M |
'range', R | R(1) is mapped to zero, R(2) is mapped to 1 (or max value). |
© 1990-2012 Peter Corke.