Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

ok, i looked it up, KeyPointsFilter::runByPixelsMask is uesd in the SIFT code, and it only checks a +-0.5 pixel border around the keypoint.

ok, i looked it up, KeyPointsFilter::runByPixelsMask is uesd used in the SIFT code, and it only checks a +-0.5 pixel border around the keypoint.keypoint. so you could try the following:

given you have existing keypoints from FAST...:

Mat mask(image.size(), CV_8U, Scalar(0));

for (size_t i=0; i<keypoints.size(); i++) {
    circle(mask, keypoints[i].pt, 1, Scalar(255), -1); // a small filled circle
}

ok, i looked it up, KeyPointsFilter::runByPixelsMask is used in the SIFT code, and it only checks a +-0.5 pixel border around the keypoint. so you could try the following:

given you have existing keypoints from FAST...:

Mat mask(image.size(), CV_8U, Scalar(0));

for (size_t i=0; i<keypoints.size(); i++) {
    circle(mask, keypoints[i].pt, 1, Scalar(255), -1); // a small white filled circle
}