📄 main.m
字号:
% main file
close all
clear all
% read Template image
im1=imread('face_eye.jpg');
%im1=imread('S.bmp');
%im1=imread('image1.jpg');
% read Traget Image
im2=imread('ey_1.jpg');
%im2=imread('image2.jpg');
% apply templete matching using power of the image
%result1=tmp(im1,im2);
%figure,
%subplot(2,2,1),imshow(im1);title('Template');
%subplot(2,2,2),imshow(im2);title('Target');
%subplot(2,2,3),imshow(result1);title('Matching Result using tmp');
% apply templete matching using DC components of the image
result2=tmc(im1,im2);
figure,
subplot(2,2,1),imshow(im1);title('Template');
subplot(2,2,2),imshow(im2);title('Target');
subplot(2,2,3),imshow(result2);title('Matching Result using template matching');
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -