Detection of Forgeries in Digital Color Image
Detection of Forgeries in Digital Color Image
Detection of Forgeries in Digital Color Image
=
=
otherwise
y x ifS y x S
y x R
r y x
, 0
) , ( ), , (
) , (
,
~
(1)
=
=
otherwise
y x ifS y x S
y x G
g
y x
, 0
) , ( ), , (
) , (
,
~
(2)
=
=
otherwise
y x ifS y x S
y x B
b y x
, 0
) , ( ), , (
) , (
,
~
, (3)
where (x,y) span an integer lattice. A complete
color image, with channels R(x,y), G(x,y), and B(x,y)
needs to be estimated. These channels take on the
non-zero values of ) , (
~
y x R , ) , (
~
y x G and
) , (
~
y x B and replace the zeros with estimates from
neighboring samples. The estimation of the missing
color samples is referred to as CFA interpolation or
demosaicking. We will briefly describe two CFA
interpolation techniques for the Bayer array that are
used in our studies.
Bilinear Interpolation
Bicubic Interpolation
The simplest methods for demosaicking are
kernel-based interpolation methods that act on each
channel independently. These methods can be
efficiently implemented as linear filtering operations
on each color channel:
= =
=
N
N v
r
N
N u
v y u x R v u h y x R ) , ( ) , ( ) , (
~
(4)
= =
=
N
N v
g
N
N u
v y u x G v u h y x G ) , ( ) , ( ) , (
~
(5)
= =
=
N
N v
b
N
N u
v y u x B v u h y x B ) , ( ) , ( ) , (
~
(6)
World Journal of Science and Technology | www.worldjournalofscience.com | 2011 | 1(8): 32-36
where ) , (
~
y x R , ) , (
~
y x G and
) , (
~
y x B are defined in Equations (1)-(3), and hr(.),
hg(.), hb(.) are linear filters of size (2N + 1) x (2N + 1).
Different forms of interpolation (bilinear and
bicubic) differ in the form of the interpolation fillter
used. For the Bayer array, the bilinear and bicubic
filters for the red and blue channels are separable
[5,6].
Bilinear Interpolation
The 1-D Bilinear Interpolation filter is given by:
] 2 / 1 1 2 / 1 [ =
l
h (7)
and its 2-D filter is given by
l
T
l
h h . The bilinear filters
for the green channel, take the form:
(
(
(
=
0 1 0
1 4 1
0 1 0
4
1
l
h
(8)
Bicubic Interpolation
The 1-D Bicubic Interpolation filter is given by:
] 16 / 1 0 16 / 9 1 16 / 9 0 16 / 1 [ =
c
h (9)
and its 2-D filter is given by
c
T
c
h h . The bicubic filters
for the green channel, take the form:
(
(
(
(
(
(
(
(
(
=
0 0 0 1 0 0 0
0 0 9 0 9 0 0
0 9 0 81 0 9 0
1 0 81 256 81 0 1
0 9 0 81 0 9 0
0 0 9 0 9 0 0
0 0 0 1 0 0 0
4
1
c
h
(10)
Proposed Method
In this section, we present two techniques in the
frequency domain.
Forgery detection using DFT followed by High
Pass Filtering
Whenever an image undergoes forgery, the
spectra of the image get periodically repeated. In
order to retain only the original spectra and remove all
the other copies of it, the image is low pass filtered. If
a resampled portion is pasted on another image there
is an inconsistency in the high frequency content of
the over all image. The high pass filtering will bring
out the differences. A straight-forward technique to
illustrate this is to compute the 8 x 8 block DFT of the
entire image, retain only a few high frequency
coefficients, and then reconstruct back the image.
The 2D DFT for 8x8 block is given by,
v j
i j
u j
e e j i p v u F
4
7
0
7
0
4
) , ( ) , (
= =
= (11)
The presence of high frequencies are clearly
made out in the regions that have undergone
forgeries, compared to the non-resampled regions in
the image.
Forgery detection using DCT followed by High
Pass Filtering
The image is divided into 8x8 image
subblocks and DCT is applied, instead of FT, for each
subblock individually. Hence, we simplify the general
2D-DCT in terms of 8x8 sizes. The equation for 2D
8x8 DCT is given as:
4
C(u)C(v)
v) F(u, =
)
16
1)v (2j
cos(
7
0 i
7
0 j
)
16
1)u (2i
j)cos( p(i,
+
=
=
+
(12)
where
p(i,j) = pixel level at the location (i,j)
F(u,v) = DCT coefficient at the frequency indices (u,v)
The 2D ideal High Pass Filter is defined as,
>
=
cutoff v u F
cutoff v u F
v u H
) , ( , 1
) , ( , 0
) , ( (13)
The magnitude of the DFT and DCT clearly
marks out the alien portion, which has been pasted
on it.
Simulations and Results
We have considered an 256 x 256 color
image for testing. Shown in Fig.2 (i) is a RGB forged
color image and (ii)is only red matrix forged color
image, both using the bilinear interpolation, (iii) is a
RGB forged color image and (iv)is only red matrix
forged color image, both using the bicubic
interpolation. The stool in the forged image is cropped
World Journal of Science and Technology | www.worldjournalofscience.com | 2011 | 1(8): 32-36
from another image and resampled by a factor of 3
and then pasted to the original image. We present the
results of applying the techniques presented in
section IV on this image.
Fig 2. (i) Forged color image (RGB),
(ii)Forged color image(Red) with bilinear
interpolation, (iii) Forged color
image(RGB) and (iv)Forged color
image(Red) with bicubic interpolation
With Bilinear interpolation, Fig.3 shows the
results of applying DFT and DCT magnitude on each
8x8 block on the entire color image, follwed by high
pass filtering. We notice that forged color images
shows the presence of high frequency components at
the forged portions.
Bilinear HPF
DFT
DCT
Fig 3. Results of (i)applying 8x8 block
DFT and DCT and (ii) followed by HPF
With Bicubic Interpolation, Fig.4 shows the
results of applying DFT and DCT magnitude on each
8x8 block of the entire image and (ii) show the results
with HPF. It can be noticed that the forged portions
gets highlighted.
Bicubic HPF
DFT
DCT
Fig 4. Results of (i)applying 8x8 block
DFT and DCTand (ii) followed by HPF
Fig5, shows the results of Bilinear and
Bicubic Interpolation on the forged image in Fig.2(ii).
It can be visually noticed that Red channel which is
retained, is marked with application of DFT and DCT.
The HPF is same for both the interpolation
algorithms.
Bilinear Interpolation Bicubic Interpolation
HPF
DFT
DCT
Fig 5. Results of applying 8x8 block DFT
and DCT followed by HPF on the forged
color images
Conclusion
The passive digital image forgery detection,
aims at verifying the authenticity of digital images
without any digital signature on the original images.
Most of the digital cameras employ a single sensor
with a color filter array (CFA), in order to obtain a
World Journal of Science and Technology | www.worldjournalofscience.com | 2011 | 1(8): 32-36
three channel color image, the missing samples are
interpolated. The specific correlations are introduced
by interpolation that are destroyed when tampering
with an image. Therefore, the presence or lack of
correlations produced by CFA interpolation can be
used to authenticate an image, or detect it as a
forgery.
We have shown, for two different CFA
interpolation algorithms and have presented two
techniques to detect inconsistencies in images. The
forged images are created by applying geometric
transformations that introduces resampling in forged
portions. The presence of high frequency will
distinguish the regions that have undergone
resampling. It can be noticed that the results for
Bilinear and Bicubic interpolation holds the same.
In comparison with EM algorithm, we
describe a simpler and faster method to detect the
resamples by directly taking the magnitude of the
DFT and DCT of the 8x8 block of the entire images,
by skipping the step of estimating the probability map.
It is based on the fact that the dynamic range of
frequencies is more in the forged image due to
resampling than in the original image. The images are
scaled for clear view. It can be visually observed that
with the DFT, better results are obtained in
comparison with DCT. The weakness of our methods
is that it is applicable only for images with almost
plain background. This method may be employed in
security check points wherein fast response is
essential. Results are presented for variety of forgery
images.
References
1. Rafael C. Gonzalez, Richard E. Woods,Digital
Image Processing, 2nd ed., Pearson Education
(Singapore) Pte. Ltd.
2. Uday Kumar. S and Vijaya. C, Digital Signal
Processing, Elite Publishers.
3. Alin C. Popescu and H. Farid,(2005).
Exposing digital forgeries by detecting traces of
re-sampling, IEEE Transactions on Signal
Processing, 53(2):758767.
4. Prasad and K. R. Ramakrishnan, (2006). On
resampling detection and its application to image
tampering, in Proc. IEEE International
Conference on Multimedia and Exposition, pages
13251328, Toronto, Canada.
5. A. Popescu and H. Farid,(2005).Exposing
digital forgeries in color filter array interpolated
images, IEEE Transactions on Signal
Processing, 53(10):39483959.
6. Babak Mahdian and Stanislav Saic. Blind
methods for detecting image fakery
7. Anil K. Jain, Fundamentals of Digital Image
Processing.
8. S.V.Narasimhan, S. Veena, (2008). Signal
Processing, Principles and Implementation,
Revised Edition.
9. P.P.Vaidyanathan, Multirate Systems and Filter
Banks, Prentice Hall, Inc.