资源简介
SUSAN 角点检测 matlab代码.
主代码是testSusan.m.
若读入图像格式不对,请自行修改

代码片段和文件信息
function [ map r c ] = susanCorner( img )
%SUSAN Corner detection using SUSAN method.
% [R C] = SUSAN(IMG) Rows and columns of corner points are returned.
% Edward @ THUEE xjed09@gmail.com
maskSz = [7 7];
fun = @(img) susanFun(img);
map = nlfilter(imgmaskSzfun);
[r c] = find(map);
end
function res = susanFun(img)
% SUSANFUN Determine if the center of the image patch IMG
% is corner(res = 1) or not(res = 0)
mask = [...
0 0 1 1 1 0 0
0 1 1 1 1 1 0
1 1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1
0 1 1 1 1 1 0
0 0 1 1 1 0 0];
% uses 2 thresholds to distinguish corners from edges
thGeo = (nnz(mask)-1)*.2;
thGeo1 = (nnz(mask)-1)*.4;
thGeo2 = (nnz(mask)-1)*.4;
thT = .07;
thT1 = .04;
sz = size(img1);
usan = ones(sz)*img(round(sz/2)round(sz/2));
similar = (abs(usan-img) similar = similar.*mask;
res = sum(similar(:));
if res < thGeo
dark = nnz((img-usan<-thT1).*mask);
bright = nnz((img-usan>thT1).*mask);
res = min(darkbright)thGeo2;
else
res = 0;
end
end
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1066 2014-02-12 13:27 susanCorner.m
文件 162 2014-12-17 21:11 testSusan.m
文件 46216 2014-02-12 13:27 corner2.gif
文件 1306 2014-02-12 13:27 license.txt
----------- --------- ---------- ----- ----
48750 4
- 上一篇:rs编译码程序MATLAB
- 下一篇:ExOR算法 的 matlab 实现
相关资源
- matlab编写的susan算法程序
- 基于harris算法的角点检测matlab原代码
- Harris角点检测matlab实现
- 基于角点检测的图像匹配
- harris角点检测并精确到亚像素级
- Matlab棋盘格角点检测算法
- fast角点检测算法for matlab
- 基于MATLAB的Harris角点检测并精确到亚
- FAST角点检测算法MATLAB程序
- 亚像素harris角点检测
- harris角点检测代码
- 基于角点匹配的susan角点检测算法
- Harris角点检测拼接包含ransac灰度图像
- 利用matlab实现图像的角点检测
- 利用DOG算子实现图像特征提取中的角
- css算法 角点检测 matlab
- 用matlab实现角点检测源代码
- forstner角点检测
- susan算法matlab
- ACSS角点检测程序
- SUSAN算法的MATLAB实现
- MATLAB实现Harris角点检测与图像配准
- SUSAN边缘检测的实现代码MATLAB
- susan算子matlab代码实现
- susancorners
- RANSAC-match 可以在harris角点检测和ncc粗
- corner 角点检测的程序
- match_version_1.3 该程序主要功能是实现
- imageMosaic 基于Harris角点检测的图像拼
- harris-match harris角点检测
评论
共有 条评论