资源简介
基于matlab的块匹配算法,++++++++++++++++++++++++++++++++++++
代码片段和文件信息
%MAD算法
[FileName2PathName2] = uigetfile(‘fish1.gif‘);
pic= imread(FileName2);
[FileNamePathName] = uigetfile(‘fish2.gif‘);
moban=imread(FileName);
pic=im2double(pic);
moban=im2double(moban);
subplot(221);
imshow(pic);
subplot(222);
imshow(moban);
pic1=pic;
[MN]=size(pic);
[mn]=size(moban);
d=zeros(M-mN-n);
tic;
for x=1:M-m
for y=1:
评论
共有 条评论