Code covered by the BSD License  

Highlights from
TAF,Tamper Assessment Function

image thumbnail

TAF,Tamper Assessment Function

by

 

Tamper Assessment Function

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

% Code Developed BY : Suraj Kamya
% kamyasuraj@yahoo.com

[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