【发布时间】:2019-03-13 21:18:29
【问题描述】:
我想删除线条和关键点。
除了drawMatches 之外还有其他功能吗?或者我可以让drawMatches 中的线条和关键点不可见吗?
Mat img_matches;
drawMatches( img_object, keypoints_object, img_scene, keypoints_scene,
good_matches, img_matches, Scalar::all(-1), Scalar::all(-1),
std::vector<char>(), DrawMatchesFlags::NOT_DRAW_SINGLE_POINTS );
【问题讨论】:
-
如果你不想抽签,为什么还要打电话给
drawMatches? -
@Miki 对于 img_matches。我使用线功能绘制绿线。线(img_matches,scene_corners[0] + Point2f(img_object.cols,0),scene_corners[1] + Point2f(img_object.cols,0),标量(0,255,0),4);