void filterByPixelsMask( std::vector<Ipoint>& keypoints, const cv::Mat& mask ) { if( mask.empty() ) return; keypoints.erase(std::remove_if(keypoints.begin(), keypoints.end(), MaskPredicate(mask)), keypoints.end()); }
void FeatureDetector::removeInvalidPoints(const Mat& mask, vector<KeyPoint>& keypoints) { if (mask.empty()) { return; } keypoints.erase(remove_if(keypoints.begin(), keypoints.end(), MaskPredicate(mask)), keypoints.end()); };
void KeyPointsFilter::runByPixelsMask( std::vector<KeyPoint>& keypoints, const Mat& mask ) { CV_INSTRUMENT_REGION(); if( mask.empty() ) return; keypoints.erase(std::remove_if(keypoints.begin(), keypoints.end(), MaskPredicate(mask)), keypoints.end()); }