M-File Help: igamma View code for igamma

igamma

correction

out = igamma(im, gamma) is a gamma corrected version of the image im. All pixels are raised to the power gamma. Gamma encoding can be performed with gamma > 1 and decoding with gamma < 1.

out = igamma(im, 'sRGB') is a gamma decoded version of im using the sRGB decoding function (JPEG images sRGB encoded).

Notes

See also

iread, colorspace


 

© 1990-2012 Peter Corke.