color_balance - increases or decreases the brightness of RGB color channels in the image independently
Calling Sequence:
img = color_balance(im,red,green,blue)
Parmeters:
im: matrix of an input image
red: set contribution to R channel
green: set contribution to G channel
blue: set contribution to B channel
img: output image matrix
Description:
some colors can be highlighted, while other are suppressed or remain untouched.Color balance may be quite handful, e.g., when viewing an image on a display with different color calibration than the calibration of the device the image was acquired with. Another field of usage is art photography and video processing, as different colors possess the ability to evoke specific emotions.
Example:
im = imread("lena.png");
img = color_balance(im,255,0,0);