Opencv中的MSER特征

/*
 *@function MSER_Detect.cpp
 *@brief MSER特征检测
 *@author ltc
 *@date 19:49 Friday,December 4th,2015
*/

#include
#include
#include
#include
#include

using namespace std;
using namespace cv;

int main(int argc,char* argv[])
{
	Mat image;
	image=imread("lena.bmp",IMREAD_COLOR);

	if(image.empty())
	{
		cerr<<"Failure in loading image"< keyPoint;
	MserFeatureDetector mserDetector;
	mserDetector.detect(grayImage,keyPoint);
	drawKeypoints(grayImage,keyPoint,image,Scalar::all(-1),1);

	vector> regions;
	MSER mser;
	mser(grayImage,regions,Mat());

	for(int i=0;i

实验结果:

Opencv中的MSER特征_第1张图片

你可能感兴趣的:(计算机视觉,Opencv)