Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

That's pretty easy, just add the following lines to the end of your code:

result = result > 200;          //binarize image
Mat result2;
src.copyTo(result2, result);    //copy using mask

You'll get this in result2:

image description

That's pretty easy, just add the following lines to the end of your code:

result = result (result > 200;   200);        //binarize image
Mat result2;
src.copyTo(result2, result);    //copy using mask

You'll get this in result2:

image description