资源简介
常见的几种角点检测程序,有harris 以及harris laplace
代码片段和文件信息
function [rowcolmax_local] = findLocalMaximum(valradius)
% Determine the local maximum of a given value
%
% Author :: Vincent Garcia
% Date :: 09/02/2007
%
% INPUT
% =====
% val : the NxM matrix containing values
% radius : the radius of the neighborhood
%
% OUTPUT
% ======
% row : the row position of the local maxima
% col : the column position of the local maxima
% max_local : the NxM matrix containing values of val on unique local maximum
%
% EXAMPLE
% =======
% [lcm] = findLocalMaximum(imgradius);
% FIND LOCAL MAXIMA BY DILATION (FAST) /!\ NON UNIQUE /!\
% mask = fspecial(‘disk‘radius)>0;
% val2 = imdilate(valmask);
% index = val==val2;
% [rowcol] = find(index==1);
% max_local = zeros(size(val));
% max_local(index) = val(index);
% FIND UNIQUE LOCAL MAXIMA USING FILTERING (FAST)
mask = fspecial(‘disk‘radius)>0;
nb = sum(mask(:));
highest = ordfilt2(val nb mask);
second_highest = ordfilt2(val nb-1 mask);
index = highest==val & highest~=second_highest;
max_local = zeros(size(val));
max_local(index) = val(index);
[rowcol] = find(index==1);
% FIND UNIQUE LOCAL MAXIMA (FAST)
% val_height = size(val1);
% val_width = size(val2);
% max_local = zeros(val_heightval_width);
% val_enlarge = zeros(val_height+2*radiusval_width+2*radius);
% val_mask = zeros(val_height+2*radiusval_width+2*radius);
% val_enlarge( (1:val_height)+radius (1:val_width)+radius ) = val;
% val_mask( (1:val_height)+radius (1:val_width)+radius ) = 1;
% mask = fspecial(‘disk‘radius)>0;
% row = zeros(val_height*val_width1);
% col = zeros(val_height*val_width1);
% index = 0;
% for l = 1:val_height
% for c = 1:val_width
% val_ref = val(lc);
% neigh_val = val_enlarge(l:l+2*radiusc:c+2*radius);
% neigh_mask = val_mask( l:l+2*radiusc:c+2*radius).*mask;
% neigh_sort = sort(neigh_val(neigh_mask==1));
% if val_ref==neigh_sort(end) && val_ref>neigh_sort(end-1)
% index = index+1;
% row(index1) = l;
% col(index1) = c;
% max_local(lc) = val_ref;
% end
% end
% end
% row(index+1:end:) = [];
% col(index+1:end:) = [];
end
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 170474 2007-08-01 13:21 harris-laplace\keypointExtraction\door.jpg
文件 2563 2007-12-07 10:25 harris-laplace\keypointExtraction\findLocalMaximum.m
文件 1133 2007-12-07 10:28 harris-laplace\keypointExtraction\kp_gilles.m
文件 2033 2007-12-07 10:27 harris-laplace\keypointExtraction\kp_harris.m
文件 2046 2008-06-21 08:42 harris-laplace\keypointExtraction\kp_harris2.m
文件 3512 2007-12-07 10:38 harris-laplace\keypointExtraction\kp_harrislaplace.m
文件 1962 2007-12-07 10:10 harris-laplace\keypointExtraction\kp_log.m
文件 631 2007-12-07 10:19 harris-laplace\keypointExtraction\kp_susan.m
文件 106 2008-06-21 08:26 harris-laplace\keypointExtraction\mul-harris.asv
文件 18357 2007-08-03 12:53 harris-laplace\keypointExtraction\patrol.jpg
文件 1969 2007-12-06 09:45 harris-laplace\keypointExtraction\README.txt
文件 696 2008-06-21 09:00 harris-laplace\keypointExtraction\shiyan.m
文件 139536 2007-08-01 07:15 harris-laplace\keypointExtraction\sunflower.jpg
文件 40960 2006-09-23 16:22 harris-laplace\keypointExtraction\susan.dll
文件 2113 2006-09-23 17:16 harris-laplace\keypointExtraction\susan.m
文件 1400 2008-06-21 08:36 harris-laplace\keypointExtraction\test.asv
文件 28769 2008-06-21 10:34 harris-laplace\keypointExtraction\test.jpg
文件 1412 2008-06-21 10:33 harris-laplace\keypointExtraction\test.m
文件 65551 2006-12-14 15:46 harris-laplace\keypointExtraction\test.pgm
文件 4991999 2012-05-20 22:13 harris-laplace\A Performance Evaluation of Local Desc
目录 0 2012-05-21 22:37 harris-laplace\keypointExtraction
目录 0 2012-05-21 22:37 harris-laplace
----------- --------- ---------- ----- ----
5477222 22
相关资源
- verilog 编写fft
- 出租车计费器的FPGA实现
- YUV转RGB 的verilog代码
- 折中与优化——Tradeoffs and Optimizatio
- Quartus 13.1安装及第一个Verilog程序仿真
- 用Verilog编写的贪吃蛇游戏
- 基于verilog的CPU
- nrf24l01 verilog发送程序
- RS编解码VERILOG实现
- Verilog电子表编程
- verilog hdl synthesis a practical primer.pdf 中
- EDAverilog课程设计报告
- EDA四人抢答器Verilog编程
- Visual Prolog 初学者指南中文版)
- Design Compiler入门教程
- LDPC的Verilog程序源代码
- 浮点运算器 Verilog
- 基于MIPS指令集的32位CPU设计与Verilog语
- VS2015编译的log4cpp动态库
- AB LogixStudio5000 SFC和ST手册
- Visual Attribute Transfer through Deep Image A
- sd卡读写verilog
- NCO程序Verilog
- Quartus和Modelsim中仿真ROM所需文件和
- anylogic行人库中文说明文档
- VERILOG 制作的FIR滤波器
- LDPC码verilog HDL 实现
- verilog编写的数字时钟、万年历、闹钟
- Low Power Methodology Manual for Soc Design.pd
- 最全的飞歌导航开机LOGO修改.zip
评论
共有 条评论