Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

keep values in a specific range in a mat using opencv

I have a matrix which has values between 100 to 900. I want to just keep values between 300 to 400 and make zero rest of them. I could not find any thresholding function which keep values between a Range. Does Opencv have any function to do that?

Thanks in advance...

click to hide/show revision 2
retagged

updated 2014-02-21 03:59:32 -0600

berak gravatar image

keep values in a specific range in a mat using opencv

I have a matrix which has values between 100 to 900. I want to just keep values between 300 to 400 and make zero rest of them. I could not find any thresholding function which keep values between a Range. Does Opencv have any function to do that?

Thanks in advance...