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...