Quantcast
Channel: OpenCV Q&A Forum - Latest question feed
Viewing all articles
Browse latest Browse all 19555

convert the RGB image to a grayscale representation of its redness

$
0
0
Hi mate , I need RGB-->Grayscale_redness image that is to convert the more a pixel appears as red in the RGB image, the brighter it will be in the converted image.More specifically, it performs an RGB to L*a*b* color space conversion, then maps a range of a* values to grayscale values, such that white is assigned to the highest a* value resulting from the conversion, and black is assigned to a positive a* value determined by an algorithm parameter. How can I do ? Use Imgproc.cvtColor ( scr, dst , RGB2Lab ) or use Imgrpc.cvtColor( scr , dst , RGB2Gray ) and equalizeHist( scr, dst ) ? help me Please ? Thanks .

Viewing all articles
Browse latest Browse all 19555

Trending Articles