我想SurfFeatureDetector
用来检测指定图片区域的关键点:
- Train_pic & Source_pic
- 使用 检测 Train_pic keypoint_1
SurfFeatureDetector
。 SurfFeatureDetector
使用指定区域检测 Source_pic keypoint_2 。- 计算和匹配。
OpenCVSurfFeatureDetector
如下。
void FeatureDetector::detect(const Mat& image, vector<KeyPoint>& keypoints, const Mat& mask=Mat())
mask -- 指定在哪里查找关键点的掩码(可选)。必须是感兴趣区域中具有非零值的 char 矩阵。
任何人都可以帮助解释如何mask=Mat()
为 Source_pic 创建?
谢谢杰