I have a cv :: Mat file with vec3b values. These values are the colors of the image. I would like to change some colors in this image.
I know the setTo () function for normal manipulation of matrices, but how to use it for my Mat file?
I tried something like this:
image = image.setto(Vec3b(0,0,0), image == Vec3b(255,0,0))
thanks!
source
share