Ask Your Question

Revision history [back]

You can use operator < and setTo method :

Mat mask=density<thresold;
mMask.setTo(0,mask);