📄 detectorhr.m
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -