Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

can anyone demo me how to do a tamper localization?

Asked by shaira ain

shaira ain (view profile)

on 28 Nov 2013
Latest activity Answered by Youssef KHMOU

Youssef KHMOU (view profile)

on 28 Nov 2013

thank you..

0 Comments

shaira ain

shaira ain (view profile)

2 Answers

Answer by Image Analyst

Image Analyst (view profile)

on 28 Nov 2013
Accepted answer

What if you simply subtract the image known to be legitimate from the one suspected of being tampered with? (Be sure to cast both to double before subtracting.)

0 Comments

Image Analyst

Image Analyst (view profile)

Answer by Youssef KHMOU

Youssef KHMOU (view profile)

on 28 Nov 2013

hi, That is new field to me, let us try to apply what @Image Analyst described as an example :

X=im2double(imread('circuit.tif'));
T=X;T(200:210,150:170)=T(200:210,150:170)+1.2*randn(size(T(200:210,150:170)));
D=abs(T-X);
subplot(1,3,1), imshow(X), title(' original');
subplot(1,3,2), imshow(T), title(' tampered');
subplot(1,3,3), imshow(D), title(' localization')

0 Comments

Youssef  KHMOU

Youssef KHMOU (view profile)

Contact us