Download cG 2012 Suchithra Gopalakrishnan
Transcript
image. A.2.4 Saturation Saturation can be used to produce a monochrome image or an image with vivid colors. When saturation is set to 0, we get a monochrome image. A high saturation value will produce an image with vivid colors. Saturation is a matrix operation. A sample saturation matrix looks like: R .299 + .701K .587(1 − K) .114(1 − K) R G0 = .299(1 − K) .587 + .413K .114(1 − K) G 0 B .299(1 − K) .587(1 − K) .114 + .886K B 0 where R’, G’ and B’ are the modified (saturated) RGB coordinates, and R, G, B are the original (non-saturated) RGB coordinates. K is the saturation factor. If K is 0, the output image will be a monochrome image. If K is 1, there will be no change to the original image. If K is greater than 1, then the output image will be saturated. K less than 0 will yield an image in which the colors are inverted. Figure A.3 illustrates the effect of different values for the saturation factor on the original image. A.2.5 Gamma The human vision system has a non-uniform perceptual response to intensity. Hence, gamma correction is needed so that the human eye perceives intensities as intended [21]. Gamma correction controls the overall brightness of an image. As a result, the gamma value can really change the appearance of an image. This is illustrated in Figure A.4. Gamma can be useful in emphasizing the dark or light regions in an 79