• 沒有找到結果。

Self-Embedding Fragile Watermarking with Restoration Capability Based on Adaptive Bit Allocation Mechanism

N/A
N/A
Protected

Academic year: 2021

Share "Self-Embedding Fragile Watermarking with Restoration Capability Based on Adaptive Bit Allocation Mechanism"

Copied!
14
0
0

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

全文

(1)

Self-embedding fragile watermarking with restoration capability based on adaptive bit allocation mechanism

Chuan Qin a,b , Chin-Chen Chang b,c, n , Pei-Yu Chen d

a

School of Optical-Electrical and Computer Engineering, University of Shanghai for Science and Technology, Shanghai 200093, China

b

Department of Information Engineering and Computer Science, Feng Chia University, Taichung 40724, Taiwan

c

Department of Biomedical Imaging and Radiological Science, China Medical University, Taichung 40402, Taiwan

d

Department of Computer Science and Information Engineering, National Chung Cheng University, Chiayi 62102, Taiwan

a r t i c l e i n f o

Article history:

Received 4 July 2011 Received in revised form 25 September 2011 Accepted 12 November 2011 Available online 19 November 2011 Keywords:

Fragile watermarking Self-embedding Content restoration Bit allocation

Nonsubsampled contourlet

a b s t r a c t

In this paper, we propose a novel fragile watermarking scheme with content restoration capability. Authentication-bits are produced using the image hashing method with a folding operation. The low-frequency component of the nonsubsampled contourlet transform (NSCT) coefficients is used to encode the restoration-bits for each block by the adaptive bit allocation mechanism. During the bit allocation, all the blocks are categorized into different types according to their degree of smoothness, and, complex blocks, which are deemed to have higher priority than smooth blocks, are allocated more bits. Two algorithms are utilized to adjust the block classification and the binary representations in order to guarantee that the numbers of the self-embedding authentication-bits and restoration-bits are exactly suitable for 1-LSB embedding capacity. On the receiver side, the extracted authentication-bits and the decoded restoration-bits are used to localize and restore the tampered blocks, respectively.

Due to the low embedding volume, the visual quality of the watermarked image is satisfactory. Experimental results also show that the proposed scheme provides high restoration quality.

& 2011 Elsevier B.V. All rights reserved.

1. Introduction

With the rapid development of networking and multi- media technologies, copyright protection for digital products becomes more and more important. Digital watermarking is one the information hiding technique [1–4] and it can be used as an effective tool for protecting digital contents, which has aroused significant interest among researchers [5]. Digital images are the most widely used, digital informa- tion medium in our Internet environment, attracting more

research attention than any other digital medium. Currently, academic research efforts are focused mainly on three categories of digital image watermarking, i.e., robust water- marking, fragile watermarking, and semi-fragile watermark- ing. For robust watermarking, the watermark embedded in the cover image can be detected and identified, even if the watermarked image undergoes allowable and malicious attacks [6–9]. Therefore, this robustness can be used for ownership verification. Fragile watermarking is intended for checking the integrity and authenticity of digital images [10–14], but an embedded watermark is easily destroyed if the watermarked image undergoes any slight alteration. The robustness characteristic of semi-fragile watermarking is between that of robust watermarking and fragile water- marking [15–18]. The embedded watermark of the semi- fragile watermarking scheme is robust to the content-pre- serving manipulations, such as JPEG compression and Contents lists available at SciVerse ScienceDirect

journal homepage: www.elsevier.com/locate/sigpro

Signal Processing

0165-1684/$ - see front matter & 2011 Elsevier B.V. All rights reserved.

doi:10.1016/j.sigpro.2011.11.013

n

Corresponding author at: Department of Information Engineering and Computer Science, Feng Chia University, 100 Wenhwa Road, Taichung 40724, Taiwan. Tel.: þ 886 4 24517250x3790;

fax: þ 886 4 27066495.

E-mail addresses: [email protected] (C. Qin), [email protected]

(C.-C. Chang), [email protected] (P.-Y. Chen).

(2)

Gaussian low-pass filtering, but fragile to malicious attacks, such as cropping and content replacement. Our main focus is on fragile image watermarking.

Earlier research work on the fragile watermarking included attempts to design schemes for localizing the modified or tampered image regions, and many schemes usually divided a host image into small blocks and embedded the watermark into each block [10–12]. The embedded watermark is often a hash of the principal content about each cover image block. If an attacker tampers with the watermarked image, the image content and the extracted watermark corresponding to the tam- pered blocks cannot be matched so that the tampered blocks are detected and localized. The fragile watermark- ing method in [13] also was based on this block-wise technique, but it aimed at the image in JPEG format as the cover image and two bits were embedded into discrete cosine transform (DCT) coefficients of each 8  8 block using the reversible data hiding technique. In addition to the localization of tampered blocks, this method can recover the intact region without any error.

Recently, researchers have proposed some fragile water- marking methods to enhance those developed by earlier researchers, managing to restore the tampered regions after the tampering localization [19–25]. These kinds of methods often embed a compressed code of image con- tent into the cover image. Once the watermarked image is tampered, this compressed code can be decompressed and used for content restoration. Since this compressed code is a compact representation of the cover image itself, these kinds of methods also are called self-embedding methods.

Fridrich et al. proposed two fragile watermarking approaches with recovery capability [19]. In the first method, the DCT coefficients of each 8  8 block were quantized into 64 or 128 bits, which were used to replace the least significant bits (LSBs) of another block. In the second method, a low color depth version of the cover image generated by reducing the gray levels was cyclic- shifted and embedded into the pixel differences. After detecting the locations of the malicious modifications, the quantized DCT coefficients and the low color depth data extracted from the reserved regions can be exploited to recover the principal content of tampered regions. Instead of embedding the frequency coefficients, Yang et al.

created an index table of the cover image via vector quantization (VQ) and embedded the VQ indices of all of the blocks together with authentication-bits generated by [10] into the cover image [20]. If the image is tampered, the index table can be extracted and used to restore the tampered regions, but the quality of the recovered image using this method is not high enough. In [22], a tailor- made watermark consisting of reference-bits and check- bits was embedded into the cover image using a rever- sible data hiding method. On the receiver side, the extracted and calculated check-bits can be compared to identify the tampered image blocks. The original image was reconstructed exactly using the reliable reference- bits extracted from other blocks. If the tampered area is not too extensive, this method can restore the cover image information with no errors, but the visual quality

of the watermarked image of this method is relatively low. A reference-sharing mechanism for self-embedding fragile watermarking was proposed in [23]. The embedded watermark in this method was a reference derived from the original principal content in different regions and shared by these regions for content restora- tion. After detecting the tampered blocks, both reference data and the original content in the intact area were used to restore the tampered area. This method can restore the five most significant bits (MSBs) accurately, if the tamper- ing rate is below 24%. Qian et al. managed to reduce the amount of the embedded data while maintaining good recovery quality [24]. A fast image inpainting technique was used in this method to restore the smooth blocks for decreasing the embedded data.

In this work, we propose a fragile watermarking scheme based on the nonsubsampled contourlet trans- form (NSCT) using an adaptive bit allocation mechanism.

The proposed scheme utilizes two kinds of binary infor- mation, i.e., authentication-bits and restoration-bits, to authenticate integrity and restore content, respectively.

The authentication-bits are generated using the image hashing strategy to localize the alterations [26,27]. The restoration-bits are produced by encoding the NSCT coefficients of the cover image. As we know, a good transform can capture the essence of an image with few basis elements. Due to the redundancy of the basis functions, the NSCT transform is more efficient in captur- ing and representing the image features than other trans- forms that use non-redundant basis functions, such as DCT. Therefore, we utilize the NSCT to represent the cover image and encode its coefficients for the restoration-bits.

The NSCT construction consists of two parts, i.e., the nonsubsampled pyramid filter bank (NSPFB) and the nonsubsampled directional filter bank (NSDFB). The details concerning the implementation of NSCT can be found in [28,29].

Obviously, more restoration-bits will produce better reconstructed quality, but they could cause more serious damage to the cover image since more payloads are embedded. In order to balance the visual quality after embedding and the restoration capability, we encode the NSCT coefficients of the image blocks into restoration-bits with the dynamic lengths based on their degree of smoothness. By our adaptive bit allocation mechanism, the complex blocks are allocated more bits, while the smooth blocks are allocated fewer bits, and the same sized images have an equal volume of restoration-bits.

The watermark consisting of authentication-bits and restoration-bits is only embedded into the 1-LSB plane of the cover image. Because modifications to the cover are small, the visual quality of watermarked image is satis- factory. On the receiver side, the tampered blocks can be detected accurately and restored with high quality after the watermark is extracted.

The rest of the paper is organized as follows. Section 2

describes the watermark self-embedding procedure of the

proposed scheme. Section 3 presents the procedure of

tampering localization and content restoration. Experi-

mental results and analysis are given in Section 4, and

Section 5 concludes the paper.

(3)

2. Watermark self-embedding procedure

The proposed scheme can localize and restore the tampered regions of the watermarked image by self- embedding the authentication-bits and the restoration- bits into the 1-LSB plane of the cover image. The authen- tication-bits for each cover image block are obtained by one image hashing algorithm that is integrated with a folding operation. The restoration-bits are generated by encoding the NSCT coefficients of the cover image.

We use a bit allocation mechanism to adaptively repre- sent the principle content of the image blocks with different types into a fixed length for 1-LSB embedding.

The framework of the watermark self-embedding proce- dure is shown in Fig. 1.

2.1. Authentication-bits generation

First, the cover image I is divided into n  n non- overlapped blocks B 1 , B 2 , y, B k , and the 1-LSB plane of each block is set to zero, where k is the number of total divided blocks. Then, we utilize the image hashing algo- rithm to calculate m-bits hash value for each image block.

Image hashing can represent the image content in com- pact form, and visually different images have distinct hash values. In our research, we adopt an image hashing algorithm based on the DCT transform [27], and denote the DCT coefficients matrix of each block B i as C i , where i¼1, 2,y, k. The size of C i is also n  n. To calculate the hash value of B i , m low-pass, filtered, random masks, i.e., M 1 , M 2 , y, M m , with the size of n  n are generated using a secret key. Therefore, the m-bits hash value h i, 1 , h i, 2 , y, h i, m for B i can be produced by Eq. (1). Note that the DC coefficient of C i should be excluded in the summation for the performance of the image hashing algorithm.

Any malicious tampering with the block may result in a

serious change of the corresponding hash value

h i,j ¼

1, if X n

x ¼ 1

X n

y ¼ 1

C i ðx,yÞUM j ðx,yÞ Z 0 i ¼ 1,2,. . .,k

0, if X n

x ¼ 1

X n

y ¼ 1

C i ðx,yÞUM j ðx,yÞ o0 j ¼ 1,2,. . .,m : 8 >

> >

> >

<

> >

> >

> :

ð1Þ Inspired by the work of [13], we do not use the hash values directly as authentication-bits. Before embedding, the hash bits are folded in order to decrease the volume of the embedded data for the cover image. We generalize the folding method in [13] by randomly grouping the total m  k bits of the hash values into a  k subsets, S 1 , S 2 , y, S a k , using the secret key. Therefore, each subset contains m/ a bits. After computing the modulo-2 sum of the m/ a

bits in each subset, a  k bits are obtained for all k blocks that are used as the final authentication-bits. The volume of hash bits is reduced significantly by this folding way.

Fig. 2 gives an example of the generation of the authenti- cation-bits, in which the number of blocks k is equal to 4, and the length m of the hash value for each block is equal to 6.

The value of a is set to 3 in this example. Therefore, after randomly grouping and the calculation of the modulo-2 sum, 12 authentication-bits are generated, which amounts to far less volume than the volume of the original hash bits. During the authentication procedure, these authentication-bits are used to judge the integrity of the blocks by a voting-based strategy, which is described in detailed in the next section.

2.2. Restoration-bits generation

We utilize the NSCT to decompose each cover image block into pre-determined levels. One low-frequency component and several high-frequency components with different directions are obtained for each block. Fig. 3(a)

Authentication Bits

t×t block division

Hash Calculation

NSCT Transform

Coefficients Encoding

Adaptive Bit Allocation Cover

Image

Restoration Bits

1-LSB Embedding n×n block

division Watermarked

Image Folding

Operation

Fig. 1. Framework of the watermark self-embedding procedure.

Hash bits of 4 blocks

Subsets

Authentication-bits

0 1 0 1 1 1 1 1 0 0 1 0 1 0 1 1 0 1 0 1 1 0 1 0

1 1 1 0 1 1 0 1 1 0 1 0 1 0 0 1 0 1 0 0 1 0 1 1

0 1 0 1 1 1 1 1 1 0 1 0

Fig. 2. Illustration of the generation of authentication-bits.

(4)

gives an illustration of the NSCT. The filter bank in NSCT structure splits the 2-D frequency plane in the subbands shown in Fig. 3(b). The structures of NSPFB and NSDFB provide the multi-scale property and the directionality, respectively [28].

Different from the discrete wavelet transform (DWT), the decomposed components of NSCT all have the same size as the cover image blocks, which ensure the syn- chronization between the spatial domain and the fre- quency domain. This characteristic is very suitable for content restoration, because less image content is lost and no interpolation is needed. The high-frequency compo- nents consist mainly of noise, textures, and other details, while the low-frequency component reflects the principle structure and content of the image block. Therefore, we only use the low-frequency component of the NSCT decomposition results to generate the restoration-bits.

The low-frequency component becomes smoother as the decomposition levels increase, and clearly, fewer bits are required to represent the smoother low-frequency com- ponent, which might also affect the restoration quality.

Consequently, we can set the appropriate decomposition levels according to the requirement.

We denote the NSCT low-frequency components for the image blocks as U i , where i¼1, 2, y, r. The block size for NSCT decomposition is t  t, which should not be smaller than 32 due to the property of NSCT and might not be equal to n  n for the calculation of authentication-

bits. For simplicity, suppose that t is divisible by n and that r is the number of all the blocks sized t  t. In order to further decrease the volume of the embedded bits, we conduct the DCT transform to U i , and then, for each U i , the first b percentage of the DCT coefficients in the zigzag scanning order are used for encoding the restoration-bits. The first one of these  b U t 2 

coefficients is the DC value that reflects the information of mean illumination, which belongs to [0, t  2 8 1]. Thus, 8þ log 2 t bits are needed to represent the first coefficient losslessly. We group the rest  b U t 2 

1 coefficients into 8þ log 2 t sets, i.e., C j , where j ¼1, 2, y, 8þlog 2 t, accord- ing to the quota of bits needed for their binary represen- tations. This indicates that the coefficients grouped in the set C j all need j bits to represent. Therefore, the quota of bits for losslessly representing the  b U t 2 

coefficients of each U i is:

W i ¼ 8 þ log 2 t þ 8 þ log X

2

t

j ¼ 1

Q i,j U j, i ¼ 1,2,. . .,r, ð2Þ

where Q i,j denotes the number of coefficients in the set C j

of U i , and it should satisfy X

8 þ log

2

t

j ¼ 1

Q i,j   b U t 2 

1, for 8i 2 f1,2,. . .,rg: ð3Þ

2.3. Adaptive bit allocation mechanism

To allocate the bits quota to restoration-bits more efficiently, we divide all r blocks U i sized t  t, into four types, T 1 , T 2 , T 3 , and T 4 , according to their values of W i , where i¼1, 2,y, r. We assign two additional bits of {00, 01, 10, 11} to each t  t block to indicate the type of {T 1 , T 2 , T 3 , T 4 } to which the block belongs. Because the bits of the type indicator are important in the decoding of restora- tion-bits, we duplicate the 2-bits of the type indicator into 4-bits to achieve decoding stability. We also use

log 2  b U t 2 

 1 

 

bits to represent the number of the coefficients in set C j , i.e., Q i,j , where j¼1, 2,y, 8þlog 2 t, for each t  t block U i . In the procedure of authentication- bits generation described in Section 2.1, a -bits are pro- duced for each n  n block. Therefore, the average spare bits quota for the restoration-bits in the 1-LSB plane of each t  t block is

g ¼ t 2  a Uðt=nÞ 2  log 2  b U t 2 

 1 

 

Uð8 þlog 2 tÞ4 ð4Þ The process of classifying all r blocks U i , where i¼1, 2, y , r, is assisted by setting three parameters, i.e., L 1 , L 2 , and L 3 , where L 1 oL 2 oL 3

U i ) T 1 if 8þ log 2 t oW i rL 1

U i ) T 2 if L 1 oW i rL 2

U i ) T 3 if L 2 oW i rL 3

U i ) T 4 if W i 4 L 3

i ¼ 1,2,. . .,r, ð5Þ

where ) is the operation of classifying U i into one of the four types, i.e., T 1 , T 2 , T 3 , or T 4 , and L 3 is equal to g . Obviously, the blocks classified in T i must be more complex than the blocks in T i  1 , where i¼2, 3, 4. We denote the numbers of the blocks in the four types after Image

Lowpass Subband

Bandpass Directional Subbands

Bandpass Directional Subbands

( , )

(- , -)

 2

 1

Fig. 3. Nonsubsampled contourlet transform. (a) Structure of nonsub-

sampled filter bank and (b) 2-D frequency partitioning.

(5)

classification as N 1 , N 2 , N 3 , and N 4 , respectively, and X 4

i ¼ 1

N i  r: ð6Þ

We manage to use L 1 -bits, L 2 -bits, L 3 -bits, and L 4 -bits (L 4 4L 3 ) to represent the blocks of the four types, i.e., T 1

through T 4 , respectively. In other words, L i bits are allocated to represent the blocks in type T i , where i¼ 1, 2, 3, 4. The values of L 1 , L 2 , L 3 , and L 4 are set to satisfy the following relationship:

L 3 L 1 ¼ l 1 UðL 4 L 3 Þ

L 3 L 2 ¼ l 2 UðL 4 L 3 Þ , subject to L 3 ¼ g , and l 1 , l 2 2 Z þ , ð7Þ where Z þ denotes the set of positive integers, l 1 and l 2

are the pre-determined parameters, and l 1 is greater than l 2 . Before transforming all r blocks U i , where i¼1, 2, y, r, into binary representations for restoration-bits, the blocks in the four types must be adjusted and reclassified in order to make the total number of bits suitable for the 1- LSB embedding capacity. The adjusting strategy is based on the fact that the quota of bits for the complex blocks should have higher priority than the smooth blocks to achieve better restoration quality. We utilize Algorithm 1 to adjust the block classification adaptively, and the pseudo code of Algorithm 1 is shown in Fig. 4.

The block numbers in the four types after reclassifica- tion must satisfy the relationship in Eq. (8), and the sum of the block number in each type must still be equal to r L

1

UN

01

þL

2

UN

02

þL

4

UN

04

¼ L

3

UðN

01

þN

02

þN

04

Þ, subject to X

4

i ¼ 1

N

0i

 r: ð8Þ

The number of bits for representing all r blocks sized t  t in the four types is exactly suitable for the 1-LSB embedding capacity, see Eq. (9)

X 4

i ¼ 1

L i U N 0 i ¼ rU g : ð9Þ

It should be noted that one can determine the appro- priate values of L 1 , L 2 , and L 4 according to the requirement, since the different values of L 1 , L 2 , and L 4 correspond to

different restoration particularities. Under the condition of L 1 oL 2 o g oL 4 and Eq. (7), if the complex blocks are expected to be restored more effectively, a larger value for L 4 should be used, and larger L 1 and L 2 values ensure that the smooth blocks will have better restoration effects.

After the block reclassification using Algorithm 1, each t  t block is assigned with L 1 -bits, L 2 -bits, L 3 -bits, or L 4 - bits for binary representation according to the type T 1 , T 2 , T 3 , or T 4 , to which it belongs. We denote one t  t block as U p , which belongs to the type T q , qA{1, 2, 3, 4}. Because the needed bits W p for lossless representation of U p

calculated by Eq. (2) might not be equal to L q , we utilize Algorithm 2 to adjust the binary representation for U p to satisfy the relationship

L q ¼ 8þ log 2 t þ 8 þ log X

2

t

j ¼ 1

Q 0 p,j U j, ð10Þ

where Q 0 p,j is the adjusted number of the coefficients with j-bits representation in U p . The pseudo code of Algorithm 2 is shown in Fig. 5.

Consequently, after the adjustment using Algorithm 2, the length of the restoration-bits for each t  t block is equal to L 1 , L 2 , L 3 , or L 4 and coincides with the type to which it belongs. Therefore, by our adaptive bit allocation mechan- ism, the complex blocks are assigned with a larger quota of bits, and the greater coefficients in each block are assigned with more bits for binary representation simultaneously.

2.4. LSB data embedding

After the authentication-bits and restoration-bits are generated, LSB embedding is conducted to hide the bits stream. According to the analysis in the previous Section 2.3, the length of the whole bits stream, consisting of authentication-bits, type indicators, number indicators, and restoration-bits, is fixed and is exactly equal to the 1- LSB embedding capacity, i.e., r  t 2 bits. Table 1 lists the components and their corresponding numbers of bits in the bits stream. The type indicators, number indicators,

Fig. 4. Algorithm 1 for the adjustment of block classification.

(6)

and restoration-bits are referred to as reference-bits in together. The structure of the reference-bits of each t  t block U i , where i¼1, 2, y, r, is illustrated in Fig. 6. TI expresses the 4-bits binary representation of the dupli- cated type indicators. DC represents the binary represen- tation of the DC coefficient that occupies 8þlog 2 t bits.

Each number indicator, NI j , occupies log 2  b U t 2 

 1 

 

bits. {AC j } denotes the jth set of binary representations for NI j AC coefficients, and all binary representations in the jth set are commonly j bits (j ¼1, 2,y, 8þlog 2 t).

We first embed the a authentication-bits of each n  n block to the random locations in the 1-LSB plane of the block itself. As a result, each n  n block can be authenti- cated through the embedded authentication-bits on the receiver side. The procedure of tampered blocks localiza- tion is expressed in detail in the subsequent section. After embedding the authentication-bits, the remaining 1-LSB space of the image is used to hide the reference-bits for content restoration. The reference-bits of all r blocks sized t  t are first concatenated, and then scrambled by a secret key. After substituting the remaining 1-LSB space of the cover image with the scrambled reference-bits, we can obtain the final watermarked image.

3. Authentication and restoration procedure

On the receiver side, first, the integrity of the received image should be identified, and the damaged regions should be localized. Then, the detected damaged regions are restored. The framework of the procedure for authen- tication and restoration is shown in Fig. 7. Assume that the size of the received image has not changed. The embedded bits are extracted from the 1-LSB plane of the received image, and reversed using the same secret key.

Authentication and localization of the tampered blocks are achieved by comparing the extracted authentication- bits with the calculated authentication-bits. The NSCT reference image, which is obtained from the decoded restoration-bits, is utilized to restore the tampered blocks.

3.1. Tampered blocks localization

In the same way as the self-embedding stage described in Section 2.1, the watermarked image is divided into k non-overlapped blocks sized n  n. We can obtain m hash bits for each n  n block using the same image hashing algorithm and compress the m hash bits into a bits, called Fig. 5. Algorithm 2 for the binary representation adjustment of each t  t block.

Table 1

Components of the bits stream for embedding.

Components Descriptions Bit numbers

Authentication-bits the authentication-bits of all the k blocks sized n  n k  a Type indicators two duplicated type indicators for each U

i

sized t  t (i¼ 1, 2, y, r) 4r Number indicators the number indicator Q

0i,j

for  b U t

2



1 AC coefficients in each U

i

(j¼ 1, 2,y, 8þ log

2

t) r  (8þ log

2

t)  log

2

 b U t

2



 1 

 

Restoration-bits One DC coefficient and  b U t

2



1 AC coefficients for each U

i

rU ð8 þ log

2

tÞþ

8 þ log

P

2t

j ¼ 1

Q

0i,j

U j

" #

Fig. 6. Structure of the reference-bits of each t  t block.

(7)

calculated authentication-bits, by the folding operation.

The extracted authentication-bits can be acquired easily after the 1-LSB extracting. Then, tampering localization can be achieved using a voting-based strategy. Each calculated authentication-bit is the modulo-2 sum of m/

a bits in one subset, and the m/ a bits in the subset are randomly distributed from all the hash bits of the k blocks. Therefore, we define a voting parameter s i , where i¼1, 2, y, k, for each block to record the number of its hash bits distributed in the subsets whose calculated authentication-bits are not equal to the corresponding extracted authentication-bits.

Fig. 8 gives an example of the localization of tampered blocks using the voting strategy, in which the number of blocks, the length of the hash bits for each block, and the number of subsets are the same as the example shown in Fig. 2. Suppose the content of the third block is tampered.

We can see that the mismatched indices between the calculated authentication-bits and extracted authentica- tion-bits are 2nd, 5th, 7th, 9th, and 12th, which are generated from the corresponding subsets. Match and mismatch are indicated by ‘ þ’ and ‘  ’, respectively. We count the voting parameter s i for each block, which is equal to the number of its distributed subsets belonging to the mismatched subsets: 2nd, 5th, 7th, 9th, and 12th.

The results are listed in Table 2. It can be found that the voting parameter s 3 of the third block, i.e., the tampered block, is significantly larger than those of other intact

blocks. Therefore, we can utilize the voting parameter s i

to identify and localize the tampered blocks by setting the appropriate threshold s .

3.2. Content restoration

In addition to the authentication-bits, the remaining portion of the extracted 1-LSB bits stream is the reference- bits, which include type indicators, number indicators, and restoration-bits, as shown in Table 1. To conduct content restoration for the tampered blocks, the NSCT reference image should be generated by decoding the restoration- bits from the reference-bits according to the bits structure in Fig. 6.

First, the reference-bits stream is segmented into r parts using the type indicators, which indicate the differ- ent encoding lengths for different types of blocks. Each part corresponds to the reference-bits for one t  t block.

Hash bits of 4 blocks

Subsets

Calculated authentication-bits

Extracted authentication-bits

0 1 0 1 1 1 1 1 0 0 1 0 0 0 0 0 1 0 0 1 1 0 1 0

1 1 0 0 1 1 0 1 0 0 1 0 1 1 0 1 0 0 0 0 1 0 1 0

0 0 0 1 0 1 0 1 0 0 1 1

0 1 0 1 1 1 1 1 1 0 1 0

++ ++++ +

Fig. 8. Illustration of voting-based localization of tampered blocks.

Table 2

Voting parameter s

i

for each n  n block.

Block index Distributed subsets of hash bits r

i

The 1st block 4th, 1st, 8th, 3rd, 11th, 7th s

1

¼1 The 2nd block 1st, 4th, 10th, 5th, 3rd, 9th s

2

¼2 The 3rd block 12th, 6th, 5th, 2nd, 7th, 9th s

3

¼5 The 4th block 2nd, 6th, 8th, 10th, 12th, 11th s

4

¼2

Calculated Authentication Bits Hash

Calculation

Folding Operation

1-LSB Extracting

Extracted Authentication Bits

Decoded Restoration Bits Received

Image

Tampered Blocks Localization

NSCT Reference Image

Restored Image

Binary Decoding

Fig. 7. Framework of the procedure for authentication and restoration.

(8)

Then, the restoration-bits for each t  t block, consisting of the 8þlog 2 t bits DC coefficient and the 8þlog 2 t sets of AC coefficients, can be obtained according to the number indicators, which indicate the number of AC coefficients in each set. Finally, the NSCT reference image can be generated easily by conducting the inverse DCT on the obtained DC and AC coefficients of all r blocks. Content restoration can be achieved by substituting the localized tampered blocks with the corresponding blocks of the NSCT reference image.

It should be noted that the reference-bits are capable of error correction, if the errors happen to occur in the sections of type indicators TI and number indicators NI j in Fig. 6. In this case, the restoration-bits cannot be decoded accurately, because the lengths of the reference-bits and {AC j } for each block are strictly consistent with TI and NI j , respectively. If the blocks, in which the bits of the sections TI and NI j are embedded, are tampered, they can be localized by the authentication procedure. Therefore, exhaustive trials can be conducted on the error bits of the sections TI and NI j , until the restoration-bits can be decoded properly.

When the tampered image region is too extensive, it might occur that one block (denoted as A) and its corresponding block (denoted as B), in which the restora- tion-bits of block A are embedded, are destroyed simul- taneously. In this scenario, the destroyed restoration-bits embedded in block B cannot be used to restore block A. To deal with this problem, we utilize the image inpainting technique to automatically repair the blocks whose cor- responding restoration-bits are destroyed. The inpainting algorithm based on partial differential equation (PDE) proposed in [30] is adopted in this work, see Eq. (11)

@

@t n I i ðx,yÞ ¼ r  D I i ðx,yÞ

U r ? I i ðx,yÞ, 8ðx,yÞ 2 O , ð11Þ where I i denotes the image in which the recoverable blocks are restored by their restoration-bits, (x, y) is the coordinates of the image pixel, O is the set of the blocks that cannot be restored by the corresponding restoration- bits, t n denotes the time index, D and r are the Laplacian operator and the gradient operator, respectively, and r ?

denotes the isophote direction that is normal to the gradient r . The PDE-based model in Eq. (11) imitates the practice of a traditional art professional in the manual repairing process, and propagates the useful neighboring information of gray values along isophote direction into the damaged blocks, which cannot be restored by the restoration-bits, and completes the whole restoration procedure.

4. Experimental results

In the experiment, the sizes of the divided image blocks for the hashing calculation and the NSCT transform were 8  8 and 32  32, i.e., n¼8 and t ¼32, respectively.

The length m of the hash bits for each 8  8 block was 33, and the threshold s for the voting-based tampering localization was 8. The parameters a and b were set to 3 and 0.098, respectively. That is to say, the 33 hash bits of each 8  8 block produced 3 authentication-bits by the folding operation, and j 0:098  32 2 k

¼ 100 DCT coeffi- cients for each 32  32 block of the NSCT low-frequency component were used to generate the restoration-bits.

Larger a and b values may enhance the accuracy of localization and restoration, but they also lead to embed- ding with more bits, which could affect the quality of the watermarked image.

Two standard gray images, Lena and Boat, both sized 512  512, were used as cover images for self-embedding by the proposed scheme. For the cover images sized 512  512, L 3 was always equal to 881, calculated by Eq.

(4). In our experiment, all of the 256 blocks sized 32  32 were classified adaptively into four types, i.e., T 1 , T 2 , T 3 , and T 4 ; l 1 and l 2 in Eq. (7) were equal to 5 and 2, respectively; L 1 , L 2 , and L 4 were set to 536, 743, and 950, respectively, which were satisfied with Eq. (7). As stated in Section 2.3, one can also set her or his own L 1 , L 2 , and L 4

values according to the requirement. By Algorithm 1, the types T 1 through T 4 of the Lena image consist of 4, 2, 226, and 24 blocks, respectively, while the types T 1 through T 4

of the Boat image consist of 8, 0, 208, and 40 blocks, respectively. This means that 536, 743, 881, and 950 bits are correspondingly used to represent the restoration-bits

Fig. 9. Cover images of Lena and Boat.

(9)

of 4, 2, 226, and 24 blocks for Lena, while 8, 0, 208, and 40 blocks for Boat, respectively.

Fig. 9 gives the cover images of Lena and Boat. Their watermarked versions are shown in Fig. 10(a) and (b),

respectively. The values of the peak signal-to-noise ratio (PSNR) due to watermark embedding are 51.2 dB and 51.1 dB, respectively, and the visual distortions are imper- ceptible. The two watermarked images were altered by Fig. 10. Watermarked images of Lena and Boat.

Fig. 11. Tampered versions of Lena and Boat in Fig. 10.

Fig. 12. Localization results for the tampered images Lena and Boat.

(10)

substituting their partial contents with the fake informa- tion, shown as Fig. 11(a) and (b). According to the extracted and calculated authentication-bits, all fake blocks in the two tampered, watermarked images were localized and labeled with white, as shown in Fig. 12(a) and (b). The two restored images from the extracted, decoded restoration-bits are shown in Fig. 13(a) and (b),

and the corresponding PSNR values are 41.8 dB and 44.8 dB, respectively.

Besides Lena and Boat, two other standard gray images, i.e., Gold and Girl, sized 512  512, were used to compare the content restoration performance between several self- embedding watermarking schemes. We generated the watermarked images using the proposed scheme and the Fig. 13. Restored images for the tampered images Lena and Boat.

Fig. 14. Cover images of Gold and Girl and their tampered, watermarked versions.

(11)

methods in [20,23,24] and modified the contents of the watermarked images. Fig. 14(a) and (b) show the cover images Gold and Girl, and Fig. 14(c) and (d) are the corresponding tampered versions of the watermarked images by the proposed scheme. In Figs. 15 and 16, (a) through (d) show the restored results using the methods in [20,23,24], and the proposed scheme, respectively.

Table 3 gives the PSNR values of the watermarked images and the restored images for Lena, Boat, Gold, and Girl. The methods in [20,23] used the 3-LSB planes to embed the watermark, while the proposed scheme and [24] only used the 1-LSB plane. Therefore, it can be observed that the PSNR values of watermarked images of the proposed scheme and [24] are higher than the values of [20,23].

The length of the codebook used in [20] was 256. Because the method in [23] can recover the 5-MSB of the tampered images with no error when the tampering rate is below 24%, the PSNR values of the images restored by this method are almost the same. In the results of Figs. 15 and 16 and Table 3, the methods in [20,23], and the proposed scheme just restore the localized tampered regions, while the method in [24] reconstructs the whole image region since this method does not emphasize on the tampering localization. Due to the good performance of adaptive bit allocation for the restoration-bits, it can be

seen in Table 3 that the proposed scheme can restore the tampered images efficiently and that its restored images have higher PSNR values than those restored by [20,23,24]. Note that the tampering percentages in Figs. 11 and 14 were less than 5%.

We also conducted the experiments under the condi- tion that the tampered image areas were relatively larger.

As we stated in Section 3, the restoration-bits and the inpainting algorithm are jointly utilized to restore the extensive tampered region. First, the tampered blocks have the priority to be restored by their corresponding intact restoration-bits. Then, the inpainting algorithm in [30] is adopted to restore the remaining tampered blocks whose restoration-bits are destroyed due to the extensive tampering. Fig. 17(a) and (b) show the tampered, water- marked versions of Lena and Gold, and the tampering percentages are 7.0% and 27.3%, respectively. The restored images are presented in Fig. 17(c) and (d), and the corresponding PSNR values are 39.50 dB and 38.78 dB, respectively.

5. Conclusions

In this paper, we have proposed a self-embedding

fragile watermarking scheme based on the adaptive bit

Fig. 15. Restored results of Gold with the methods in [20,23,24], and the proposed scheme.

(12)

allocation mechanism. Authentication-bits and restora- tion-bits are embedded into the cover image to realize tampering localization and content restoration, respec- tively. A DCT-based image hashing algorithm is used to produce the hash bits for each cover block, and the hash bits are reduced to the authentication-bits by the folding operation. We utilize the NSCT transform to obtain the principle content of the image, and encode the NSCT coefficients into the restoration-bits using adaptive bit allocation. All cover blocks are categorized into four types according to the degree of smoothness.

The type of complex blocks is allocated more bits, and the type of smooth blocks is allocated fewer bits.

Two algorithms are used to adjust the block classification

and binary representation for each block adaptively. By the adjustment of these two algorithms, the watermark bits number of total blocks is exactly suitable for embed- ding into the 1-LSB plane. On the receiver side, using a voting-based strategy, the calculated authentication-bits and the extracted authentication-bits are compared to localize the tampered blocks. After decoding, the restora- tion-bits are used to restore the localized, tampered blocks. When the tampered region is not too extensive, the PSNR values of the restored images are high due to the good performance of the adaptive bit allocation for restoration-bits.

Future work should include the development of a semi- fragile watermarking scheme that can simultaneously Fig. 16. Restored results of Girl with the methods in [20,23,24], and the proposed scheme.

Table 3

Comparisons of several self-embedding watermarking schemes.

Watermarking schemes PSNR of watermarked images (dB) PSNR of restored images (dB) Volume of embedded data

Lena Boat Gold Girl Lena Boat Gold Girl

Method in [20] 37.9 37.9 37.8 37.8 37.3 37.6 37.4 37.7 3-LSB

Method in [23] 37.9 37.9 37.9 37.9 40.7 40.7 40.7 40.7 3-LSB

Method in [24] 51.2 51.1 51.1 51.1 29.2 35.2 32.3 30.6 1-LSB

Proposed scheme 51.2 51.1 51.1 51.1 41.8 44.8 45.1 48.4 1-LSB

(13)

provide good restoration capability and resist some kinds of content-preserving manipulations.

References

[1] F.A.P. Petitcolas, R.J. Anderson, M.G. Kuhn, Information hiding—a survey, Proceedings of the IEEE 87 (7) (1999) 1062–1078.

[2] C.D. Vleeschouwer, J.F. Delaigle, B. Macq, Invisibility and applica- tion functionalities in perceptual watermarking: an overview, Proceedings of the IEEE 90 (1) (2002) 64–77.

[3] W.L. Tai, C.M. Yeh, C.C. Chang, Reversible data hiding based on histogram modification of pixel differences, IEEE Transactions on Circuits and Systems for Video Technology 19 (6) (2009) 906–910.

[4] C.C. Chang, T.D. Kieu, A reversible data hiding scheme using complementary embedding strategy, Information Sciences 180 (16) (2010) 3045–3058.

[5] C.C. Chang, Y.S. Hu, T.C. Lu, A watermarking-based image owner- ship and tampering authentication scheme, Pattern Recognition Letters 27 (5) (2006) 439–446.

[6] I.J. Cox, J. Kilian, F.T. Leighton, T. Shamoon, Secure spread spectrum watermarking for multimedia, IEEE Transactions on Image Proces- sing 6 (12) (1997) 1673–1687.

[7] X.G. Kang, J.W. Huang, Y.Q. Shi, Y. Lin, A DWT-DFT composite watermarking. scheme robust to both affine transform and JPEG compression, IEEE Transactions on Circuits and Systems for Video Technology 13 (8) (2003) 776–786.

[8] C.C. Chang, P.Y. Tsai, M.H. Lin, SVD-based digital image water- marking scheme, Pattern Recognition Letters 26 (10) (2005) 1577–1586.

[9] P.Y. Lin, J.S. Lee, C.C. Chang, Dual digital watermarking for internet media based on hybrid strategies, IEEE Transactions on Circuits and Systems for Video Technology 19 (8) (2009) 1169–1171.

[10] P.W. Wong, N. Memon, Secret and public key image watermarking schemes for image authentication and ownership verification, IEEE Transactions on Image Processing 10 (10) (2001) 1593–1601.

[11] S. Suthaharan, Fragile image watermarking using a gradient image for improved localization and security, Pattern Recognition Letters 25 (16) (2004) 1893–1903.

[12] H. Yang, A.C. Kot, Binary image authentication with tampering localization by embedding cryptographic signature and block identifier, IEEE Signal Processing Letters 13 (12) (2006) 741–744.

[13] X.P. Zhang, S.Z. Wang, Z.X. Qian, G.R. Feng, Reversible fragile watermarking for locating tampered blocks in JPEG images, Signal Processing 90 (12) (2010) 3026–3036.

[14] X.P. Zhang, S.Z. Wang, Fragile watermarking scheme using a hierarchical mechanism, Signal Processing 89 (4) (2009) 675–679.

[15] C.Y. Lin, S.F. Chang, A robust image authentication method distin- guishing JPEG compression from malicious manipulation, IEEE Transactions on Circuits and Systems for Video Technology 11 (2) (2001) 153–168.

[16] C.Y. Lin, S.F. Chang, Semi-fragile watermarking for authenticating JPEG visual content, in: Proceedings of SPIE International Confer- ence on Security and Watermarking of Multimedia Contents II, vol.

3971, Jan. 2000, pp. 140–151.

[17] X.Z. Zhu, A.T.S. Ho, P. Marziliano, A new semi-fragile image water- marking with robust tampering restoration using irregular sam- pling, Signal Processing: Image Communication 22 (5) (2007) 515–528.

[18] Z.M. Lu, C.H. Liu, D.G. Xu, S.H. Sun, Semi-fragile image water- marking method based on index constrained vector quantization, Electronics Letters 39 (1) (2003) 35–36.

[19] J. Fridrich, M. Goljan, Images with self-correcting capabilities, in:

Proceedings of IEEE International Conference on Image Processing, 1999, pp. 792–796.

[20] C.W. Yang, J.J. Shen, Recover the tampered image based on VQ indexing, Signal Processing 90 (1) (2010) 331–343.

Fig. 17. Restoration performance for larger tampered area.

(14)

[21] H.J. He, J.S. Zhang, F. Chen, Adjacent-block based statistical detec- tion method for self-embedding watermarking techniques, Signal Processing 89 (8) (2009) 1557–1566.

[22] X.P. Zhang, S.Z. Wang, Fragile watermarking with error-free restoration capability, IEEE Transactions on Multimedia 10 (8) (2008) 1490–1499.

[23] X.P. Zhang, S.Z. Wang, Z.X. Qian, G.R. Feng, Reference sharing mechanism for watermark self-embedding, IEEE Transactions on Image Processing 20 (2) (2011) 485–495.

[24] Z.X. Qian, G.R. Feng, Inpainting assisted self recovery with decreased embedding data, IEEE Signal Processing Letters 17 (11) (2010) 929–932.

[25] Z.X. Qian, G.R. Feng, X.P. Zhang, S.Z. Wang, Image self-embedding with high-quality restoration capability, Digital Signal Processing 21 (2) (2011) 278–286.

[26] A. Swaminathan, Y.N. Mao, M. Wu, Robust and secure image hashing, IEEE Transactions on Information Forensics and Security 1 (2) (2006) 215–230.

[27] J. Fridrich, M. Goljan, Robust hash function for digital watermark- ing, in: Proceedings of International Conference on Information Technology: Coding and Computing, 2000, pp. 173–178.

[28] A.L. Cunha, J.P. Zhou, M.N. Do, The nonsubsampled contourlet transform: theory, design, and applications, IEEE Transactions on Image Processing 15 (10) (2006) 3089–3101.

[29] A.L. Cunha, J.P. Zhou, M.N. Do, Nonsubsampled contourlet transform:

filter design and application in denoising, in: Proceedings of IEEE International Conference on Image Processing, 2005, pp. 749–752.

[30] M. Bertalmio, A.L. Bertozzi, G. Sapiro, Navier–Stokes, fluid dynamics,

and image and video inpainting, in: Proceedings of the 2001 IEEE

Computer Society Conference on Computer Vision and Pattern

Recognition, vol. 1, 2001, pp. 355–362.

數據

Fig. 1. Framework of the watermark self-embedding procedure.
Fig. 3. Nonsubsampled contourlet transform. (a) Structure of nonsub- nonsub-sampled filter bank and (b) 2-D frequency partitioning.
Fig. 4. Algorithm 1 for the adjustment of block classification.
Fig. 6. Structure of the reference-bits of each t  t block.
+7

參考文獻

相關文件

A factorization method for reconstructing an impenetrable obstacle in a homogeneous medium (Helmholtz equation) using the spectral data of the far-eld operator was developed

You are given the wavelength and total energy of a light pulse and asked to find the number of photons it

Wang, Solving pseudomonotone variational inequalities and pseudocon- vex optimization problems using the projection neural network, IEEE Transactions on Neural Networks 17

volume suppressed mass: (TeV) 2 /M P ∼ 10 −4 eV → mm range can be experimentally tested for any number of extra dimensions - Light U(1) gauge bosons: no derivative couplings. =&gt;

Define instead the imaginary.. potential, magnetic field, lattice…) Dirac-BdG Hamiltonian:. with small, and matrix

incapable to extract any quantities from QCD, nor to tackle the most interesting physics, namely, the spontaneously chiral symmetry breaking and the color confinement.. 

• Formation of massive primordial stars as origin of objects in the early universe. • Supernova explosions might be visible to the most

Corollary 13.3. For, if C is simple and lies in D, the function f is analytic at each point interior to and on C; so we apply the Cauchy-Goursat theorem directly. On the other hand,