Code covered by the BSD License  

Highlights from
TAF,Tamper Assessment Function

image thumbnail

TAF,Tamper Assessment Function


Suraj Kamya (view profile)


Tamper Assessment Function

function [T]=TAF(w,wex)
% TAF   = Tamper Assesment function
% w     = Watermark Image
% wex   = Extracted watermark
% T     = TAF result

% Code Developed BY : Suraj Kamya

[r c]=size(w); % Size of wmrk

w=im2bw(w); wex=im2bw(wex); % Binary Conversion

exor=xor(w,wex); % Exclusive or 

T= sum(exor(:)); T=(T*100)/(r*c);  % TAF Computaion

Contact us