Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Your gray image and saturated image are the same.

Mat saturedImage=grayImage;

This does not copy the image. saturatedImage points to the same data.

Mat saturatedImage;   
grayImage.copyTo(saturatedImage)

This should work if Im not mistaken