paint - redistribute each color channel of an image
Calling Sequence:
img = paint(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:
This function redistributes the rate of the three color channel in an image.First,we get a variable "gray" as we do in function "col2gray".Then recompute each color channel like this: new_red=(red.*gray)/255;
Example:
im = imread("lena.png");
img = paint(im,255,0,0);