资源简介
博文https://blog.csdn.net/piaoxuezhong/article/details/78213672#comments中,匹配滤波算法的测试用例。
代码片段和文件信息
function [image2MatchFilterKernel] = MatchFilter(image1sigmayLength direction_number)
% sample:
% sigma=[2.^(1/2) 2 2*2.^(1/2) 4];
% yLength=9;
% direction_number=12;
% for a=sigma
% [MF~] = MatchFilter(img a yLengthdirection_number);
% MF(mask==0) = 0;
% MF = normalize(double(MF));
% % Adding to features
% features = cat(3 features MF);
% end
[a b] = size(image1);
image1 = double(image1);
MatchFilter_image=zeros(abdirection_number);
for i = 1:direction_number
MatchFilterKernel = MatchFilterAndGaussDerKernel(sigmayLength pi/direction_number*(i-1)0);
MatchFilter_image(::i) = conv2(image1MatchFilterKernel‘same‘);
% [xy]=meshgrid(1:171:17);
% mesh(xyMatchFilterKernel);
end
image2 = max(MatchFilter_image[]3);
image2 = uint8(image2);
end
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2138 2017-03-04 10:45 MatchFilterWithGaussDerivative.m
文件 1800 2015-02-03 16:22 MatchFilterWithGaussDerivativeORSF.m
文件 121 2015-02-03 16:24 normalize.m
文件 888 2017-03-03 12:15 MatchFilter.m
文件 3963 2017-10-13 15:26 MatchFilterAndGaussDerKernel.m
文件 573 2018-09-17 14:12 MatchFilterTest.m
----------- --------- ---------- ----- ----
9483 6
评论
共有 条评论