Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

you can use bitwise_not or the even shorter ~ operator:

Mat inverted = ~mat;