igamm

correction

out = igamm(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 = igamm(im, 'sRGB') is a gamma decoded version of im using the sRGB decoding function (JPEG images sRGB encoded).

Notes

See also

iread, colorspace


Machine Vision Toolbox for MATLAB © 1990-2014 Peter Corke.