I need a grayscale image from something like the following PM code:
G = min (B, I(C) )
where B is a grayscale image and C is a color image with pixel intensities I(C). But both images are built in the code above this point, so I(C) does not seem to work, so I substituted C[0]+C[1]+C[2] (as in a uniform RGBWS). But I still get G as a color image. If there is no way to make the rhs recognized as grayscale inputs, is there a way to take the RGB version of G and make a grayscale image from that?
Thanks much,
Alex
G = min (B, I(C) )
where B is a grayscale image and C is a color image with pixel intensities I(C). But both images are built in the code above this point, so I(C) does not seem to work, so I substituted C[0]+C[1]+C[2] (as in a uniform RGBWS). But I still get G as a color image. If there is no way to make the rhs recognized as grayscale inputs, is there a way to take the RGB version of G and make a grayscale image from that?
Thanks much,
Alex