資源簡介
復(fù)制粘貼(copy-move)圖像篡改檢測算法matlab實(shí)現(xiàn)
代碼片段和文件信息
%?Target?Recongition
%?This?program?detects?a?target?in?a?given?image?and?focuses?on?it
%?Programmed?By:?Mina?Ayman?Makar
%?On?2/2/2004
%?Part(1)?:?Entering?the?image?for?MATLAB
fprintf(‘\n?This?program?detects?a?target?in?an?image‘)
fprintf(‘\n?Entering?the?image?for?MATLAB...‘)
fprintf(‘\n?Save?the?image?or?its?copy?in?MATLAB?working?Directory‘)
imagname?=?input(‘\n?Enter?the?name?of?the?image?file?(filename.ext)?:?‘‘s‘);
w?=?imread(imagname);
w?=?im2double(w);
sizw?=?size(w);
figure
imshow(w)
title(‘Input?Image‘)
pause(3.5);
close;
fprintf(‘\n?Entering?the?target?image?for?MATLAB...‘)
fprintf(‘\n?Save?the?target?image?or?its?copy?in?MATLAB?working?Directory‘)
tarname?=?input(‘\n?Enter?the?name?of?the?target?image?file?(filename.ext)?:?‘‘s‘);
t?=?imread(tarname);
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件????????2093??2012-02-14?10:39??target.m
評論
共有 條評論