main.m

来自「Template matching code using cross co re」· M 代码 · 共 26 行

M
26
字号
% main file 

close all
clear all


% read Template image

im1=imread('image2.jpg');

% read Target Image

im2=imread('image1.jpg');

% apply templete matching using DC components of the image
result2=tmc(im1,im2);
%result3=tmp(im3,im2);

figure,
subplot(3,2,1),imshow(im1);title('Template');
% subplot(2,2,2),imshow(im2);title('Target');
subplot(3,2,2),imshow(result2);title('Matching Result using tmp');



⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?