• 沒有找到結果。

Embedding of any type of data in images based on a human visual model and multiple-based number conversion

N/A
N/A
Protected

Academic year: 2021

Share "Embedding of any type of data in images based on a human visual model and multiple-based number conversion"

Copied!
7
0
0

加載中.... (立即查看全文)

全文

(1)

Embedding of any type of data in images based on a human

visual model and multiple-based number conversion

q

Da-Chun Wu

1

, Wen-Hsiang Tsai

*

Department of Computer and Information Science, National Chiao Tung University, 1001 Ta Hsueh Road, Hsinchu 300, Taiwan, ROC Received 5 February 1999; received in revised form 4 August 1999

Abstract

A novel approach to embedding any type of digital data into a cover image is proposed, which utilizes a human visual model to guarantee that the modi®cation of the cover image is imperceptible. A quantized contrast function based on the model is constructed ®rst. The gray values of each 3  3 sub-image of the cover image are used to compute, using the function, a range of gray levels with the same contrast as that of the central pixel of the sub-image. The embedding process proceeds by replacing the gray value of the central pixel by one of the values in the range. This guarantees that the changes be imperceptible. The data to be embedded is treated as a binary stream and is partitioned into a number of sub-streams. A multiple-base number conversion mechanism is used to convert each sub-stream of data into values which are then embedded in the central pixels of sub-images. The embedded data can be extracted out from the resulting stego-image without referencing the original image. Experimental results show that the proposed method is feasible. Ó 1999 Published by Elsevier Science B.V. All rights reserved.

Keywords: Data embedding; Cover image; Stego-image; Quantizer; Human visual system; Multiple-based number conversion

1. Introduction

Digitizing information such as text, image, audio and video is popular today. Digital media can be modi®ed and reproduced easily. Several interesting applications about digital media have been

ex-plored, such as digital watermarking, tamper-proo®ng, security message delivering, annotation embedding, etc. These applications can be achieved by embedding information into digital media im-perceptibly. The amount of information which need be embedded and the requirement of robustness vary with applications.

Data embedding in images is an application that hides secret messages in digital images. The message may be any type of bit stream data, such as text, image, voice, etc. Some terms about information hiding from P®tzmann (1996) are followed in this study: an image that holds a secret message is called a cover image, and the output of the hiding process, which includes the secret message, is called a stego-image.

qThis work is supported partially by National Science

Council, R.O.C. under Grant No. NSC88-2213-E009-057.

*Corresponding author. Tel.: 572-0631; fax:

+886-3-572-7382.

E-mail addresses: [email protected] (D.-C. Wu), whtsai@cis. nctu.edu.tw (W.-H. Tsai)

1Also at: Department of Information Management, Ming

Chuan University, Taipei, Taiwan 111, ROC.

0167-8655/99/$ - see front matter Ó 1999 Published by Elsevier Science B.V. All rights reserved. PII: S 0 1 6 7 - 8 6 5 5 ( 9 9 ) 0 0 1 1 8 - X

(2)

Many techniques about data embedding in im-ages have been proposed. Some of the techniques are based on modifying the least signi®cant bits (LSBs) of the pixels of the cover image (Turner, 1989; Walton, 1995). Bender et al. (1997) proposed a patchwork method for embedding information by adding or subtracting a value to or from the gray values of pixels. The texture block coding method (Bender et al., 1996) and the fractal-based steganography method (Davern and Scott, 1996) embed information by modifying small regions of images. Image hiding can also be applied in fre-quency or other transform domains, such as the method which uses randomly sequenced pulse po-sition modulated codes (Koch and Zhao, 1995), the wavelet-based embedding methods (Ohnishi and Matsui, 1996; Chae and Manjunath, 1998), the se-cure spread spectrum method (Cox et al., 1997), and the DCT-based embedding methods (Hsu and Wu, 1998; Barni et al., 1998). Recently, a number of methods exploit the human visual system (HVS) to guarantee that the modi®cation made to the cover image is imperceptible. These methods are based on spatial or frequency masking (Girod, 1989; Legge and Foley, 1990).

Three recent HVS-based researches have been conducted by Podilchuk and Zeng (1998), Swanson et al. (1998) and Delaigle et al. (1998). These methods are robust but need more complex com-putations than those of LSB methods. In our pre-vious work (Wu and Tsai, 1998), we proposed an embedding method, which exploits the gray value di€erences between a cover image and a lossily compressed version of the cover image. The method needs the information of the original image to ex-tract out the hidden data from the stego-image.

In this paper, we propose a novel, easy and e-cient method to embed data of any type in gray-valued images. The method is designed in such a way that it can recover embedded data from the stego-image without referencing the original image. The method is designed to exploit a large amount of space in an image for embedding information. The embedding method can be used to deliver secret messages, embed annotations, or prevent tamper-ing. The method is not robust and is not suitable for the applications that need high robustness, such as watermarking. The method is based on a human

visual model which is a modi®ed version of that proposed by Kuo and Chen (1996). The original model was used to remove the non-sensitive infor-mation in the process of image compression (Kuo and Chen, 1998). In our method, the modi®ed model is used to construct quantized contrast functions for 3  3 sub-images. The quantized functions provide a set of visual thresholds. We use these visual thresholds to embed secret data in the central pixels of the 3  3 sub-images of the cover image. Since the method can obtain visual thresh-olds directly from the gray-valued domain, the computation is simpler than those of HVS-based methods which are performed in other transform domains. A pseudo-random number generator may be used to achieve cryptography, and so can pre-vent tampering access to the embedded data from illicit users. Moreover, a multiple-based number conversion which was proposed by the authors (Wu and Tsai, 1998) is used to convert the secret bit stream into values to be embedded in the chosen pixels of the cover image.

The remainder of this paper is organized as fol-lows. The adopted human visual model is discussed in Section 2. The proposed data embedding method is presented in Section 3. The process for extracting the embedding data is described in Section 4. In Section 5, several experimental results are illustrat-ed. Finally, concluding remarks are stated in Sec-tion 6.

2. Human visual model

The human visual model proposed in (Kuo and Chen, 1996) considers Weber's law (Stockham, 1972; Netravali and Haskell, 1998). It was improved in their subsequent research (Kuo and Chen, 1998) by adding some considerations about visual mask-ing e€ect and Mach band e€ect (Netravali and Haskell, 1998). These studies model the contrast function by Weber's law in the gray-valued domain to consider the sensitivity of the human eye to a luminance under a background. Let x be a gray value of a stimulus area which ranges from 0 to 255, and l be the mean of the background gray values under the stimulus. In (Kuo and Chen, 1996), the contrast function C…x† was modeled from the

(3)

combination of the conditions of the bright back-ground and the dark backback-ground as follows.

For the bright background …l P 128†, C…x† ˆ ln‰c1…cLÿ x†=…cL…127:5 ÿ …x ÿ c1†††Š when 0 6 x 6 128; ln‰…x ÿ c1†…x ÿ cH†=…c1…255 ÿ cH††Š when 128 6 x 6 255; 8 > > < > > : …1† where c1ˆ 127:5=2; cHˆ …128 ÿ 255eÿk†=…1ÿ eÿk†; cL ˆ 128=…1 ÿ eÿk†, and k is de®ned as k ˆ 2:5=

…1 ‡ e…255ÿl†=55†. Similarly, for the dark background

…l < 128†, C…x† ˆ ln‰c1cL=…127:5 ÿ …x ÿ c1††…cLÿ x†Š when 0 6 x 6 128; ln‰…255 ÿ cH†…x ÿ c1†=…c1…x ÿ cH††Š when 128 6 x 6 255; 8 > > < > > : …2† where c1ˆ 127:5=2; cHˆ …255 ÿ 128ek†=…1 ÿ ek†;

cL ˆ ÿ128ek=…1 ÿ ek†, and k is de®ned as

k ˆ 2:5=…1 ‡ el=25†.

In (Kuo and Chen, 1996), a set of visual thresholds was used to quantize the contrast func-tion values into n levels uniformly to form a quantized contrast function. An illustration of a quantized contrast function is shown in Fig. 1. Each quantization level expresses a set of gray values with the same sensitivity to the human eye under a spe-ci®c background.

Firstly, we build up 256 possible contrast func-tions for each background luminance. For every

possible background gray value b, where b ˆ 0; 1; . . . ; 255, a contrast function Cbis obtained

by gathering all function values Cb…x† from Eqs. (1)

and (2), where x is in the range from 0 to 255, re-spectively. In our proposed method, we use a visual model which represents the visual sensitivity of a 3  3 image. The model categorizes by experiments 3  3 images into n classes according to the stan-dard deviation of the gray values of all pixels in each 3  3 image except the central pixel. The classes are categorized from smooth to edged. We quantize Cb uniformly to get a quantized contrast

function Qc

b for each class c by using di€erent

numbers of quantization levels, say lc, where

c ˆ 1; 2; . . . ; n, respectively. For example, in our experiments, the image is categorized into four classes, and 32, 24, 16 and 12 levels are used. Larger numbers of quantization levels are used in the class of smooth images while smaller numbers of quan-tization levels are used in the class of edged images. The above calculations are o€-line, i.e., they are constructed before the embedding steps begin and can be used for embedding any cover image. 3. Proposed data embedding

In our proposed embedding method, the central pixel of every 3  3 sub-image in the cover image is used for embedding information. Fig. 2 shows the way to select the central pixels from a cover image. About one fourth of the pixels in a cover image can be used for embedding information by the selection strategy. The eight pixels which surround a central pixel are considered as the background of the cen-tral pixel in our proposed method. Each sub-image is categorized into one of the n classes, say into class c, by calculating the standard deviation of the gray values of the eight surrounding pixels. Then, we use the mean of the gray values of the eight pixels as the background luminance b to ®nd the function value Qc

b…g† from the quantized contrast function Qcb,

where g is the gray value of the central pixel. A range …gmin; gmax† de®ned by two extreme visual

thresholds gminand gmax thus can be obtained from

Qc

bwhere gmin and gmax are the smallest and largest

values, respectively. The function value Qc b…g0† of

any gray value g0in the range is the same as that of

Fig. 1. Contrast function resulting from the condition that the gray value mean of the background is 60 and corresponding quantized contrast function for 16 quantization levels.

(4)

Qc

b…g†. That is, any gray value in the range has the

same sensitivity as the gray value of the central pixel under the same background. So, if we substitute the gray value of the central pixel with any value in the range de®ned by the thresholds, the modi®cation will be imperceptible. It means that we can embed a value which ranges from gminto gmaxinto the central

pixel. Since each central pixel of the 3  3 sub-im-age in the cover imsub-im-age has two distinct visual thresholds, the magnitude of information which can be hidden in each central pixel varies with the range de®ned by the two thresholds, i.e., varies with the value of gmaxÿ gmin‡ 1. On the other hand, the

secret data can be treated as a long bit stream. We randomly partition it into several variable-sized, say m-bit, sub-streams for easy embedding. Then, each sub-stream is embedded into the cover image se-quentially. More speci®cally, suppose we want to embed an m-bit sub-stream of a secret bit stream. We collect n central pixels in the cover image ®rst. For each central pixel pi, let its gray value be giand

visual thresholds be gmin

i and gimax, where

i ˆ 1; 2; . . . ; n. The visual thresholds can be utilized to embed totallyQniˆ1…gmax

i ÿ gimin‡ 1† di€erent

in-formation into the central pixels. So, we can embed the m-bit sub- stream into these n central pixels if the condition 2m6Qn

iˆ1…gmaxi ÿ gmini ‡ 1† is met.

We use a multiple-based number conversion method which was proposed by the authors (Wu

and Tsai, 1998) to convert the value of the m-bit sub-stream into a value to be embedded in the chosen central pixels. The m-bit bit stream is treated as an unsigned binary number, which is then con-verted into an n-digit multiple-based number with a form of dn…bn†dnÿ1…bnÿ1†. . . d1…b1†, where base biˆ

gmax

i ÿ gmini ‡ 1, for i ˆ 1; 2; . . . ; n. The coecients

d1; d2; . . . ; dn can be computed as the remainders of

iterative integer divisions of the value of the m-bit bit stream by b1; b2; . . . ; bn progressively. Then we

embed the digit di of the multiple-based number

into each central pixel piby replacing its gray value

giwith the new value of gimin‡ difor i ˆ 1; 2; . . . ; n.

Since the new gray value is in the range de®ned by the visual thresholds, the modi®cation is imper-ceptible.

To achieve cryptography, a pseudo-random mechanism is used also in some of the embedding steps, namely, in the selection of the sizes and bits which compose the m-bit sub-stream of the secret bit stream, and in the way of choosing 3  3 images from the cover image where the secret sub-stream is embedded. Moreover, the mechanism is also used for encrypting the secret data. In our ex-periments, a sequence of random bit values of 0 and 1 is generated for each m-bit bit stream conduct a bit-wise exclusive-or operation to the m-bit bit stream before the multiple-based number conver-sion. Without using the seeds of the pseudo-random schemes, the embedded data cannot be recon-structed correctly. This can avoid easy illicit ex-traction of the embedded data from a stego-image. 4. Recovering embedded data from stego-images

The secret data extraction process is accom-plished by using the stego-image only. The seeds which were used by the pseudo-random mechanism in the embedding steps must be provided for correct reconstruction of the secret data. We recover each m-bit bit stream of the secret data from the stego-image and combine the bit streams to reconstruct the entire embedded data. For each m-bit bit stream, we ®rst collect n central pixels from the 3  3 sub-images in the stego-image with the same sequences as in the embedding process, and then obtain the visual thresholds of the central pixel of

Fig. 2. Illustration of the central pixels in 3  3 sub-images, which are used for embedding information. Dotted boxes indi-cate the eight surrounding pixels of the central pixels.

(5)

each sub-image from the speci®c quantized contrast function. For central pixel piwith gray value gi, let

its visual threshold be gmin

i and gmaxi , where

i ˆ 1; 2; . . . ; n, and n is the minimum value that satis®es the condition 2m6Qn

iˆ1…gmaxi ÿ gimin‡ 1†.

Since the surrounding pixels remain unchanged during the process of embedding data, the visual thresholds of the central pixel under the background are the same as those obtained in the embedding step. After collecting n central pixels, the embedded value di in the central pixel pi is computed by

diˆ giÿ gmini . We then group the resulting

embed-ded values into an n-digit multiple-based number

with a form of dn…bn†dnÿ1…bnÿ1†. . . d1…b1†, where base

biˆ gimaxÿ gmini ‡ 1, for i ˆ 1; 2; . . . ; n, and convert

the number into an m-bit binary bit stream. 5. Experimental results

Four cover images as shown in Fig. 3, each with size 512  512, were used in our experiments, and a ®le (21 953 bytes) which consists of the text of this paper were used as the secret data. In the experi-ments, we classi®ed the 3  3 images into four classes which are categorized further from smooth

(6)

to edged. The criteria which were used to classify the classes and select the number of the quantiza-tion levels are shown in the following:

The number of quantized levels ˆ 32 when r 6 2:4; 24 when 2:4 < r 6 3:6; 16 when 3:6 < r 6 4:8; 12 when 4:8 < r; 8 > > < > > : …3†

where r is the standard deviation of the gray value of the surrounding pixels of a 3  3 sub-image. The stego-images resulting from embedding

the secret data by randomly walking through the selected central pixels in the cover image are shown in Fig. 4. The results show that the proposed hiding method can embed data without noticeable images.

6. Concluding remarks

A novel, easy and ecient method for embed-ding any form of digital data into a gray-valued image by using a human visual model in the gray-valued domain has been proposed. Quantized

(7)

trast functions which provide visual thresholds for the central pixels of 3  3 sub-images were con-structed for use in the embedding process. The proposed method is computationally simpler than many HVS-based embedding methods in the steps of embedding and recovering data. A bit stream was embedded into a group of pixels by a multiple-based number conversion method and pseudo ran-dom mechanisms are applied in the embedding steps to achieve cryptography. The method pro-vides a way for embedding any form of data in gray-valued images imperceptively. Good experi-mental results show the feasibility of the proposed method.

References

Barni, M., Bartolini, F., Cappellini, V., Piva, A., 1998. A DCT-domain system for robust image watermarking. Signal Processing 66, 357±372.

Bender, W., Gruhl, D., Morimoto, N., Lu, A., 1996. Techniques for data hiding. IBM System Journal 35 (3/4), 313±336. Bender, W., Morimoto, N., Gruhl, D., 1997. Method and

apparatus for data hiding in images. US Patent No. 5689587. Cox, I.J., Kilian, J., Leighton, F.T., Shamoon, T., 1997. Secure spread spectrum watermarking for multimedia. IEEE Trans-actions on Image Processing 6, 1673±1687.

Chae, J.J., Manjunath, B.S., 1998. A robust embedded data from wavelet coecients. In: Proc. SPIE EI'98, Storage and Retrieval for Image and Video Database VI, Vol. 3312, pp. 308±317.

Davern, P., Scott, M., 1996. Fractal based image steganography. In: First International Workshop Information Hiding. Lec-ture Notes in Computer Science, Vol. 1174, Springer, Berlin, pp. 279±294.

Delaigle, J.F., Vleeschouwer, C.D., Macq, B., 1998. Watermark-ing algorithm based on a human visual model. Signal Processing 66, 319±335.

Girod, B., 1989. The information theoretical signi®cance of spatial and temporal masking in video signals. In: Proc. SPIE Human Vision, Visual Processing, and Digital Display, Vol. 1077, pp. 178±187.

Hsu, C.T., Wu, J.L., 1998. DCT-Based watermarking for video. IEEE Transaction on Consumer Electronics 44, 206±216. Koch, E., Zhao, J., 1995. Towards robust and hidden image

copyright labeling. In: Proc. IEEE Nonlinear Signal and Image Processing Workshop, Thessaloniki, Greece, pp. 452± 455.

Kuo, C.H., Chen, C.H., 1996. A prequantizer with the human visual e€ect for the DPCM. Signal Processing: Image Communication 8, 433±442.

Kuo, C.H., Chen, C.F., 1998. A vector quantizer scheme using prequantizers of human visual e€ects. Signal Processing: Image Communication 12, 13±21.

Legge, G., Foley, J., 1990. Contrast masking in human vision. J. Opt. Soc. Amer. 70, 1458±1471.

Netravali, A.N., Haskell, B.G., 1998. Digital Picture Represen-tation and Compression. Plenum Press, New York, pp. 245± 299.

Ohnishi, J., Matsui, K., 1996. Embedding a seal into a picture under orthogonal wavelet transform. In: Proceedings of Multimedia'96, Piscataway, NJ. IEEE Press, pp. 514±521. P®tzmann, B., 1996. Information hiding terminology. In:

Pro-ceedings of the First International Workshop Information Hiding. Lecture Notes in Computer Science, Vol. 1174, Springer, Berlin, pp. 347±349.

Podilchuk, C.I., Zeng, W., 1998. Image-adaptive watermarking using visual models. IEEE Journal of Selected Areas Com-munication 16, 525±539.

Stockham Jr. T.G., 1972. Image processing in the context of a visual model. Proceedings of the IEEE 60, 828±842. Swanson, M.D., Zin, B., Tew®k, A.H., 1998. Multiresolution

scene-based video watermarking using perceptual models. IEEE J. Selected Areas Communication 16, 540±550. Turner, L.F., 1989. Digital data security system. Patent IPN, WO

89/08915.

Walton, S., 1995. Image authentication for a slippery new age. Dr. Dobb's Journal: Software Tools for the Professional Programmer 20, 18±26.

Wu, D.C., Tsai, W.H., 1998. Data hiding in images via multiple-based number conversion and lossy compression. IEEE Transactions on Consumer Electronics 44, 1406±1412.

數據

Fig. 1. Contrast function resulting from the condition that the gray value mean of the background is 60 and corresponding quantized contrast function for 16 quantization levels.
Fig. 2. Illustration of the central pixels in 3  3 sub-images, which are used for embedding information
Fig. 3. Cover images used in experiments with size 512  512: (a) Jet, (b) Baboon, (c) Lena, (d) Peppers.
Fig. 4. Resulting stego-images after embedding a ®le consisting of the text of this paper.

參考文獻

相關文件

• Learn the mapping between input data and the corresponding points the low dimensional manifold using mixture of factor analyzers. • Learn a dynamical model based on the points on

The angle descriptor is proposed as the exterior feature of 3D model by using the angle information on the surface of the 3D model.. First, a 3D model is represented

The phrase-based vector space model for automatic retrieval of free-text medical documents, Data &amp; Knowledge Engineering, 61, 76-92,.. Pedersen, and Chen F., “A

A digital color image which contains guide-tile and non-guide-tile areas is used as the input of the proposed system.. In RGB model, color images are very sensitive

The study was based on the ECSI model by Martensen et al., (2000), combined with customer inertia as a mediator in the hope of establishing a customer satisfaction model so as

D.Wilcox, “A hidden Markov model framework for video segmentation using audio and image features,” in Proceedings of the 1998 IEEE Internation Conference on Acoustics, Speech,

The effect of gender on motivation and student achievement in digital game-based learning: A case study of a contented-based classroom. Using game-based learning to

Furthermore, given a set of nets in a bus on routing grids with obstacles, and the length constraints for all the nets in the bus, based on this proposed longest path generation,