blob detect
斑点检测斑点:与周围区域存在颜色差异或灰度差异的区域斑点检测的主要思路是检测出图像中比周围像素灰度大或者比周围区域灰度值小的区域 1.基于求导的微分方法 2.基于局部极值的分水岭算法,基于此OPENCV中提供simpleBlobDetector特征检测器
#include<iostream>
#include<vector>
#include<opencv2\opencv.hpp>
using namespace cv;
int main() {
Mat im = imread("D:/learn/jiaopan/source/images/opencv3/blob.jpg",IMREAD_GRAYSCALE);
imshow("im", im);
Ptr<SimpleBlobDetector> detector = SimpleBlobDetector::create();
std::vector<KeyPoint> keypoints;
d
2018-07-12
opencv3
opencv samples