System information (version)
- OpenCV => 4.5.4
- Operating System / Platform => Ubuntu 18.04.3 LT
- Compiler =>gcc
Detailed description
I test sift by asift.cpp ,it runs normally.
then i add mask regin, I found mask regin still have keypoints although less than before。In my opinion,mask area should not have keypoints。Is there any bug in sift code?
Steps to reproduce
- the demo.txt is from asift.cpp, only add mask region and imwrite。
- I compare two different mask region,

the keypoints in zero mask area is less then non-zero area,mean the mask woks but not work correctly

Issue submission checklist
System information (version)
Detailed description
I test sift by asift.cpp ,it runs normally.
then i add mask regin, I found mask regin still have keypoints although less than before。In my opinion,mask area should not have keypoints。Is there any bug in sift code?
Steps to reproduce
the keypoints in zero mask area is less then non-zero area,mean the mask woks but not work correctly
Issue submission checklist
forum.opencv.org, Stack Overflow, etc and have not found solution