资源简介
匹配滤波源码,详情见http://blog.csdn.net/u013288466/article/details/66473284
代码片段和文件信息
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
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 121 2015-02-03 16:24 normalize.m
文件 888 2017-03-03 12:15 MatchFilter.m
文件 3963 2016-10-19 10:54 MatchFilterAndGaussDerKernel.m
文件 2138 2017-03-04 10:45 MatchFilterWithGaussDerivative.m
文件 1800 2015-02-03 16:22 MatchFilterWithGaussDerivativeORSF.m
----------- --------- ---------- ----- ----
8910 5
- 上一篇:最大熵模型
- 下一篇:Matlab实现2048游戏经典
评论
共有 条评论