Matlab-vision包学习-Feature Detection,Extraction and Matching-MSER特征提取

来源:互联网 发布:ubuntu chrome 闪烁 编辑:程序博客网 时间:2024/05/29 17:13

这一篇介绍MESR特征提取函数。

函数/Functions

函数名称:detectMSERFeatures

功能:利用MSER算法(Maximally Stable Extremal Regions)算法提取区域特征

语法:regions = detectMSERFeatures(I);

            regions = detectMSERFeatures(I,Name,Value); 

其中,I为2-D灰度图像,regions为返回的MSER检测算法检测到的特征区域,Name必须为用单引号对包含的如下字符串名称,Vaule为对应Name的值

Name&Value参数NameValue'ThresholdDelta'默认值2,范围为(0,100],表示灰度阈值的步长,减小时能够获得更多的区域特征,典型值为0.8-4’RegionAreaRange'默认值为[30,14000],区域中包含像素点的个数的上下门限'MaxAreaVariation'默认值为0.25,表示在不同阈值情况下最大区域变化范围,较大的值能够获得更多的区域特征,但是鲁棒性较弱,典型值为0.1-1.0‘ROI'默认值[1,1,size(I,1),size(I,2)],表示提取特征的图像区域范围

举例:

close all clear all; clcI = imread('cameraman.tif'); regions = detectMSERFeatures(I); figure;imshow(I); hold on; plot(regions,'showPixelList',true,'showEllipses',false); figure;imshow(I); hold on; plot(regions); 



0 0
原创粉丝点击