title: how to modify values of Mat according to some condition in opencv?
body: <p>In Matlab <code>a(a&gt;50)=0</code> can replace all elements of <code>a</code> that are greater than 50 to 0. I want to do same thing with Mat in <a href="https://www.mathworks.com/matlabcentral/fileexchange/47953-computer-vision-toolbox-opencv-interface" rel="nofollow noreferrer">OpenCV</a>. How to do it?</p>