我正在使用 OPENCV 3.2 并且正在处理二进制图像。这是我正在处理的图像。
我正在尝试去除除手部区域以外的所有东西(有凸面缺陷)。我尝试了斑点检测来检测斑点(手除外),但它没有显示任何东西。关于我应该如何进行的任何建议?斑点检测的示例代码是:
Mat im; //has the above shown binary image
Ptr<SimpleBlobDetector> detector = SimpleBlobDetector::create();
vector<KeyPoint> keypoints;
detector->detect(skin_binary1, keypoints);
Mat im_with_keypoints;
drawKeypoints(im, keypoints, im_with_keypoints, Scalar(0, 0, 255), DrawMatchesFlags::DRAW_RICH_KEYPOINTS);
// Show blobs
imshow("keypoints", im_with_keypoints);`