How can I use the second argument of sift.detectAndCompute() ?
Hi,
I'm using SIFT algorithm for comparing the features between two images. I'm curious to know about the second argument of sift.detectAndCompute() method. I'm using none in my script.
I know the method's syntax
cv2.SIFT.detectAndCompute(image, mask[, descriptors[, useProvidedKeypoints]]) → keypoints, descriptors¶
But I couldnot understand how can I use this "mask"?
A brief Explanation with an example is very helpful for me
In orb ( and C++) you can use mask like this
and then you can call your detector with mask and it will give you sift only inside rect (not in all image) It works with ORB I don't know with SIFT