detectorhr.m
来自「图像对齐(inage registration)工具箱」· M 代码 · 共 25 行
M
25 行
function [IMP_POINTS,RESULT]=detectorHR(IMAGE, sg, n, halfSurSize,typ)
% detects significant points using the Harris' method
% [IMP_POINTS,RESULT]=detectorHR(IMAGE, r, n, halfSurSize)
%
% IMP_POINTS: 0-1-array which indicates the found (important) points (1)
% RESULT: original image overlayed with the important points
% IMAGE: the image to be processed
% sg: size (1,1). Standard deviation of the gaussian window of the operator.
% if omitted, sg = 1.
% n: number of important points
% halfSurSize: half of the size of the surroundings of a maximum where no other
% maximum should be found
% typ: determines the way how the corners are found
[q1,q2,q3]=interest(IMAGE,sg);
switch typ
case 1, IMP_POINTS=choseImpPointsWithoutZeros(IMAGE,q1,n,halfSurSize);
case 2, IMP_POINTS=choseImpPointsWithoutZeros(IMAGE,q1.*q2,n,halfSurSize);
otherwise, IMP_POINTS=choseImpPointsWithoutZeros(IMAGE,q3,n,halfSurSize);
end;
RESULT=IMAGE+200*IMP_POINTS;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?