Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 2017-01-11 04:24:36 -0500

Nbb gravatar image

How to subtract a constant from a 3 channel mat ?

I have a Mat CV_8UC3. I want to let the new value be

Mat = 255 - Mat;

but the results are blue.

How to subtract a constant from a 3 channel mat ?

I have a Mat CV_8UC3. I want to let the new value be

Mat = 255 - Mat;

but the results are blue.blue. How do let every element be 255 - element ?