the cover image, and converted back to two-
dimensional image.
Embedded information in each segment is
recovered by the spectral ratio at the two (key)
frequencies, f1 and f2. That is, the recovered bit rb
in a segment is given by
(1)
1, if 1
(2)
(2)
0, if 2
(1)
Xf
b
Xf
rb
Xf
b
Xf
⎧⎫
>
⎪⎪
⎪⎪
=
⎨⎬
⎪⎪
>
⎪⎪
⎩⎭
(2)
where X(f) is the spectral component of the
embedded and quantized frame at cyclic frequency f,
and b1 and b2 are set empirically. If a segment is
left unembedded for added security or when the data
size is smaller than the available capacity, spectral
levels at the two frequencies are set equal; this
corresponds to a retrieved ‘bit’ of -1.
The key for embedding and retrieval consist of
the indices of the embedded frames and the
corresponding frequency pair used to modify
spectrum. This key, clearly, depends on the cover
image. Both the variability and the presence of
many masked points make it harder for illegal
retrieval and/or tampering of data by an exhaustive
search of possible embedded frequencies.
4 IMPLEMENTATION AND
RESULTS
Results of the two-step image embedding algorithm
using the gray scale cameraman image
(cameraman.tif) available in MATLAB showed that
embedding at a pair of high frequencies, even
though they are not the most commonly occurring
masked frequencies, caused little noticeable
distortion and zero bit error in data recovery
(Gopalan, 2006). Based on these results, the
technique was applied to embedding data in one or
more of the primary colors in a JPEG color image.
This image (kid.jpg) of 289x200x3 pixels was
converted one-dimensional signal in each of the
three colors by appending all the rows of pixel
values together. Using an arbitrary sampling
frequency of 16,000 Hz, the masked frequencies for
each color were obtained. The pair of frequencies,
4875 Hz and 6250 Hz, which were in the masking
set of approximately 30 percent of the segments for
all three colors, resulted in minimal distortion of
embedded image with each of the three colors. For
the size of 289x200 = 57800 values in the one-
dimensional signal, a maximum of 57800/64 = 903
bits can be embedded when all the frames of 64
pixels each are used.
To test the image quality with this full capacity,
(a) all bits of 1, (b) all bits of 0, and (c) a random set
of 903 bits, were used each for the data with the
constants
and
set at a ratio of 1E-5 from the
average power of each segment. The resulting
image for (a) is shown in Figure 1 along with the
original cover image. Using a spectral ratio of b1 =
b2 = 1 in Eq. (2), all the embedded bits were
retrieved correctly from the modified and quantized
image. Perceptibility of embedding, as can be seen
from the figure, appears to be minimal. Same results
in data recovery were observed for the other two
cases as well. Image distortion was more noticeable
for green and red colors relative to modifying blue,
however, due to lower sensitivity of HVS to small
changes in blue than to green or red.
Extending the embedding procedure to more
than one color using the same pair frequencies
showed a slightly noticeable distortion in the image.
Figure 2 depicts the image resulting from modifying
spectrum in the color pair red-blue. (Although, for
simplicity, the same frequency pair has been used in
all the cases, the key can be made stronger with
different frequency pairs for each case.) Visibility
of embedding appeared to be more for green-blue
modification than for red-green; red-blue pair
showed the least distortion in image quality. As
with the single color modification, this is due to the
higher threshold of HVS in perceiving changes in
red and blue. With a total of 2x903 = 1806 bits, the
doubling of payload can be exploited for embedding
data of larger sizes. Considering that the payload is
doubled, the distortion may be tolerable in pictures
such as in a driver license, for example.
Altering the spectrum at the same pair or, at
different pairs, of frequencies at all three colors
tripled the payload at a cost of higher visibility.
Since data recovery caused no bit errors, the
increased payload can be used to strengthen the key
by selecting frames for embedding, which can also
reduce image distortion.
5 CONCLUSION
A method of embedding data on a color image by
converting the image to a one-dimensional signal in
each color, or more than one color, has been
proposed. By altering the one-dimensional spectrum
of each segment of a cover image at two key
frequencies, embedding becomes barely noticeable.
Availability of a choice of frequencies
ICINCO 2006 - ROBOTICS AND AUTOMATION
514