![]() | 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