I have an image
Mat image; //(size: 300x300)
And I have a roi:
Rect ROI(50,50,100,100); //(start from 50,50 and has size 100x100)
I would like to create a mask so keypoints inside of this roi don't get extracted.
//> create mask with 0s inside the ROI and 1s outside
OrbFeatureDetector.detect(image,kps,mask);
Which would be a good way to create this mask?