Next Article in Journal
Efficient Implementation of 2D and 3D Sparse Deconvolutional Neural Networks with a Uniform Architecture on FPGAs
Next Article in Special Issue
A Novel Image-Restoration Method Based on High-Order Total Variation Regularization Term
Previous Article in Journal
An Intelligent Air Quality Sensing System for Open-Skin Wound Monitoring
Previous Article in Special Issue
A Low-Cost, High-Precision Method for Ripple Voltage Measurement Using a DAC and Comparators
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A n-out-of-n Sharing Digital Image Scheme by Using Color Palette

1
Department of CSIE, National Dong Hwa University, Hualien 97401, Taiwan
2
Department of Computer Science and Engineering, Xi’an University of Technology, Xi’an 710021, China
*
Author to whom correspondence should be addressed.
Electronics 2019, 8(7), 802; https://doi.org/10.3390/electronics8070802
Submission received: 15 April 2019 / Revised: 12 July 2019 / Accepted: 13 July 2019 / Published: 17 July 2019
(This article belongs to the Special Issue Signal Processing and Analysis of Electrical Circuit)

Abstract

:
A secret image sharing (SIS) scheme inserts a secret message into shadow images in a way that if shadow images are combined in a specific way, the secret image can be recovered. A 2-out-of-2 sharing digital image scheme (SDIS) adopts a color palette to share a digital color secret image into two shadow images, and the secret image can be recovered from two shadow images, while any one shadow image has no information about the secret image. This 2-out-of-2 SDIS may keep the shadow size small because by using a color palette, and thus has advantage of reducing storage. However, the previous works on SDIS are just 2-out-of-2 scheme and have limited functions. In this paper, we take the lead to study a general n-out-of-n SDIS which can be applied on more than two shadow. The proposed SDIS is implemented on the basis of 2-out-of-2 SDIS. Our main contribution has the higher contrast of binary meaningful shadow and the larger region in color shadows revealing cover image when compared with previous 2-out-of-2 SDISs. Meanwhile, our SDIS is resistant to colluder attack.

1. Introduction

A secret image sharing (SIS) scheme inserts a secret message into shadow images in a way that if shadow images are combined in a specific way, the secret image can be recovered. A SIS scheme is usually referred to by a threshold ( k , n ) SIS, where k n , and can insert a secret image into n shadow images (referred to as shadows). In a ( k , n ) -SIS, we may recover the secret image by using any k shadows, but cannot recover the secret image from ( k 1 ) or fewer shadows. There are various types of SIS. Here, we give a brief survey for three major types of SIS schemes: the visual cryptography scheme (VC), the polynomial-based SIS (PSIS), and the bit-wise Boolean-operation based SIS.
The so-called VC [1,2,3,4,5,6] has a novel stacking-to-see property such that the involved participants can easily stack shadows to visually decode the secret through the human eye. This property makes VC applicable in many scenarios. Although VC has the ease of decoding, it has poor visual quality of reconstructed image. Another SIS adopts ( k 1 ) -degree polynomial like Shamir’s secret sharing [7] to design ( k , n ) -PSIS [8,9,10,11,12,13,14,15]. There are two major differences between VC and PSIS: the quality of recovered image and the decoding method. Unlike VC provided with the poor visual quality, the recovered secret image of PSIS is distortion-less. However, the decoding of VC only needs stacking operation but PSIS uses the computation of Lagrange interpolation to recover secret image. Some SIS schemes are based on Boolean operations [16,17,18,19,20]. Note: the stacking operation of VC, strictly speaking, is also a Boolean OR operation. However, this OR operation of VC is pixel-wise operation, which applied on black-and-white dots. However, Boolean operation in [16,17,18,19,20] is bit-wise operations, and can obtain a high-quality secret image (a distortion-less image like PSIS scheme). Besides, using -wise Boolean has much lower complexity when compared with Lagrange interpolation.
Recently, Wei et al. use the bit-wise XOR operation to design a ( 2 , 2 ) sharing digital image scheme (SDIS) [17] to share a 256-color (or true color) digital image. Wei et al.’s ( 2 , 2 ) -SDIS is also a type of ( k , n ) -SIS where k = n = 2 . Wei et al.’s ( 2 , 2 ) -SDIS is the first SIS scheme using a 256-color palette. This color palette has 256 colors, where each color is composed of red (R), green (G), and blue (B) color planes. Each color and is chosen from a palette of 16,777,216(=2 24 ) colors (24 bits: each color plane has 8 bits). In VGA cards, 256 on-screen colors are chosen from a color palette, and these colors are most visible to the human eye and meanwhile conserve a bandwidth. When using a color palette, each pixel is represented by a color index in a 256-color color palette. Consider an example, a 256 × 256 -pixel image. The file size is 256 × 256 × 1 bytes (color indices) + 256 × 3 bytes (color palette) = 66,304 bytes, but is 256 × 256 × 3 = 196,608 bytes for using 24-bit true color format. Thus, the file size of a color image can be kept small when represented by a color palette. Because Wei et al.’s ( 2 , 2 ) -SDIS is based on color palette, and thus it has the advantage of reducing storage.
However, there are three weaknesses in Wei et al.’s SDIS: the incorrect assignment of color palette data for the color index 255, the erroneous recovery in secret image, and the partial region in shadow revealing the cover image. In [19], Yang et al. address these weaknesses and propose a new ( 2 , 2 ) -SDIS. Both Wei et al.’s ( 2 , 2 ) -SDIS and Yang et al.’s ( 2 , 2 ) -SDIS are simple 2-out-of-2 scheme and have limited applications. In this paper, we take the lead to study a general ( n , n ) -SDIS, which can be applied on any n 3 . The main weakness of Wei et al.’s ( 2 , 2 ) -SDIS is the incorrect assignment of color palette data for some color indices, and this is tackled by using a complicated approach, partitioned sets, in Yang et al.’s ( 2 , 2 ) -SDIS. In the proposed ( n , n ) -SDIS, because of the number of shadows more than two, i.e., n 3 , a simple approach reducing Hamming weigh of a temporary block is adopted to easily solve this weakness. In addition, performance of our ( n , n ) -SDIS are enhanced when compared with the previous ( 2 , 2 ) -SDIS. The rest of this paper is organized as follows. Section 2 reviews Wei et al.’s ( 2 , 2 ) -SDIS and Yang et al.’s ( 2 , 2 ) -SDIS. The proposed ( n , n ) -SDIS is presented in Section 3. Also, an approach of enhancing visual quality of color meaningful shadow is introduced. A very extreme attack, the ( n 1 ) -colluder attack, on the proposed ( n , n ) -SDIS is discussed in Section 4. The experiment, discussion and comparison are in Section 5. Finally, Section 6 concludes the paper.

2. Preliminaries

Notations in this paper and their descriptions are listed in Table 1. These notations are used throughout the whole paper to describe all the schemes, Wei et al.’s ( 2 , 2 ) -SDIS [17], Yang et al.’s ( 2 , 2 ) -SDIS [19], and the proposed ( n , n ) -SDIS.
In [17], Wei et al. first proposed a simple ( 2 , 2 ) -SDIS to insert a 256-color digital image S I into two binary noise-like shadows ( N S 1 and N S 2 ). In Wei et al.’s ( 2 , 2 ) -SDIS, every 9-bit block B, i.e., b 1 b 9 , is obtained from the 256-color secret image S I and the color palette C P . Afterwards, the block B is subdivided into two blocks B ( 1 ) and B ( 2 ) on shadow 1 N S 1 and shadow 2 N S 2 , respectively, by using XOR operation. As shown in Figure 1, B = B ( 1 ) B ( 2 ) , where each bit b i = b i ( 1 ) b i ( 2 ) , 1 i 9 . Both shadow blocks of B ( 1 ) and B ( 2 ) are Y blocks. Accomplish all blocks until all pixels in S I and the data in C P are processed. Because every pixel in S I is represented as a block, shadow sizes are nine times expanded. The first 8 bits b 1 b 8 in B represents a color index, and the ninth bit b 9 in every block of N S 1 (i.e., the bit b 9 ( 1 ) ) is collected to covey the C P information. Therefore, from the XOR-ed results N S 1 N S 2 we may obtain color indices and the C P to recover S I . There are other two types of shadows for Wei et al.’s ( 2 , 2 ) -SDIS. Noise-like shadows ( N S 1 , N S 2 ) can be extended to two binary meaningful shadows ( B S 1 , B S 2 ) and two color meaningful shadows ( C S 1 , C S 2 ) , on which binary cover image B C I and color cover image C C I can be, respectively, visually viewed. In addition, Wei et al.’s ( 2 , 2 ) -SDIS can also be extended to directly insert a true color S I without using C P .
For more clearly describing Wei et al.’s ( 2 , 2 ) -SDIS, Figure 1b illustrates diagrammatical representation of Wei et al.’s ( 2 , 2 ) -SDIS with binary meaningful shadows, which includes three processes: (i) obtaining color indices of secret pixels, color palette data, and cover pixels, (ii) secret sharing, and (iii) secret recovery. Consider a secret pixel p i with a color index ( b 1 , b 2 , , b 8 ) = ( 10011100 ) = 156 , and we may have ( b 1 ( 1 ) , b 2 ( 1 ) , , b 8 ( 1 ) ) = ( 110001100 ) with b 9 ( 1 ) = 1 for carrying about C P data (suppose we embed 1 for this time), and ( b 1 ( 2 ) , b 2 ( 2 ) , , b 8 ( 2 ) ) = ( 010110101 ) with b 9 ( 2 ) = 1 . Then, we have ( b 1 ( 1 ) , b 2 ( 1 ) , , b 8 ( 1 ) ) ( b 1 ( 2 ) , b 2 ( 2 ) , , b 8 ( 2 ) ) = ( b 1 , b 2 , , b 8 ) . Meantime, both blocks B ( 1 ) = ( b 1 ( 1 ) , b 2 ( 1 ) , , b 9 ( 1 ) ) and B ( 2 ) = ( b 1 ( 2 ) , b 2 ( 2 ) , , b 9 ( 2 ) ) are 5 B 4 W blocks. For the corresponding position of this secret pixel p i , the cover pixels of B C I 1 and B C I 2 are white and black, respectively. We reverse the shadow B ( 1 ) = ( b 1 ( 1 ) , b 2 ( 1 ) , , b 9 ( 1 ) ) = ( 110001101 ) block to ( 001110010 ) ( 4 W 5 B ) to represent the white color pixel in B C I 1 , and we do not change B ( 2 ) = ( b 1 ( 2 ) , b 2 ( 2 ) , , b 9 ( 2 ) ) = ( 010110101 ) ( 5 B 4 W ) to represent the black color pixel in B C I 2 . In secret recovery, the color index can be easily derived from the exclusive OR result from ( b 1 ( 1 ) , b 2 ( 1 ) , , b 8 ( 1 ) ) ( b 1 ( 2 ) , b 2 ( 2 ) , , b 8 ( 2 ) ) . In addition, the C P data can be obtained from every b 9 ( 1 ) in B S 1 .
However, Wei et al’s ( 2 , 2 ) -SDIS has some weaknesses. For the color index 255, it has a problem with embedding the data of color palette. In addition, Wei et al.’s ( 2 , 2 ) -SDIS with color meaningful shadows cannot correctly extract the block data for white cover pixels, and this will cause erroneous recovery in the secret image. Moreover, Wei et al.’s SDIS uses Y blocks on both shadows. Five black dots in a block B may not sufficiently demonstrate the visual quality of meaningful shadows.
It is obvious that more black subpixels in every block may enhance the visual quality of meaningful shadows B S 1 and B S 2 , and C S 1 and C S 2 . Accordingly, in [19], Yang et al. adopted X block and Y block half and half on blocks B ( 1 ) and B ( 2 ) , such that the average number of black subpixels in B ( 1 ) and B ( 2 ) is enhanced from 5 to 5.5 . This enhancement improved the visual quality of meaningful shadows. Meanwhile, Yang et al.’s ( 2 , 2 ) -SDIS also solved the other two weaknesses of Wei et al.’s ( 2 , 2 ) -SDIS.

3. Motivation and Design Concept

As described in Section 2, there are three weaknesses in Wei et al.’s SDIS: (1) the incorrect assignment of the color palette data for the color index 255, (2) the partial regions in meaningful shadows showing the content of the cover image, and (3) the erroneous recovery in secret image if the cover pixel is white in color meaningful shadows. Yang et al.’s ( 2 , 2 ) -SDIS already tackled these weaknesses.
By delving into these three weaknesses, we can see that the third weakness is a minor weakness caused from an intrinsic nature of color. A trivial approach in [19], using a near white color pixel instead of white pixels in cover image, is very efficient in addressing this weakness. Therefore, the approach can be still adopted in the proposed ( n , n ) -SDIS for solving this minor weakness. Our contribution is not just the extension from 2-out-of-2 scheme to n-out-of-n scheme. The proposed ( n , n ) -SDIS, where n 3 , has better solutions for other two major weaknesses. Because the number of shadows is more than two, we can easily solve the first weaknesses (note: the detail will be described in Section 3). However, Yang et al.’s ( 2 , 2 ) -SDIS uses a very complicated approach by partitioned sets to solve this weakness. For the second weakness, our ( n , n ) -SDIS uses X blocks in most shadows This approach has large average black subpixels in shadow blocks to enhance visual qualities of meaningful shadows. In addition, the proposed ( n , n ) -SDIS embeds the C P information in b 9 but both ( 2 , 2 ) -SDISs [17,19] use b 9 ( 1 ) in shadow block B ( 1 ) . The bit b 9 obtained from the XOR-ed result B is more securely protected than the bit b 9 ( 1 ) in one shadow block B ( 1 ) .
A secret block B = ( b 1 b 9 ) has 8 bits ( b 1 b 8 ) to represent a color index, and one bit b 9 for representing the data of color palette C P . Together with C P , this color index can represent a pixel in secret image S I . All 9-bit blocks are obtained from the secret image S I and the color palate C P . Suppose that T is a 9-bit temporary block. Equations (1) and (2) are main statements in this paper, on which we can design the proposed ( n , n ) -SDIS. As shown in Equation (1), we may randomly generate ( n 2 ) X blocks B ( i j ) , 1 j n 2 , and then determine a temporary block T via these ( n 2 ) blocks and the block B (see upper equation in Equation (1)). The content of T is provisional. Afterwards, T is divided into two blocks { B ( j 1 ) , B ( j 2 ) } where { j 1 , j 2 } = { 1 , 2 , , n } { i 1 , , i n 2 } . Using lower equation in Equation (1), we may insert T into two blocks based on Wei et al.’s ( 2 , 2 ) -SDIS or Yang et al.’s ( 2 , 2 ) -SDIS, which is dependent on the Hamming weigh of block T. In next subsection, we prove that lower equation in Equation (1) can be successfully accomplished. Via Equation (1), we can derive B = B ( 1 ) B ( 2 ) B ( n ) in Equation (2).
T = B B ( i 1 ) B ( i n 2 ) ( n 2 ) random X blocks T = B ( j 1 ) B ( j 2 ) other   two   blocks
T = B B ( i 1 ) B ( i n 2 ) B = T B ( i 1 ) B ( i n 2 ) B = B ( j 1 ) B ( j 2 ) B ( i 1 ) B ( i n 2 ) B = B ( 1 ) B ( n ) , ( { j 1 , j 2 } { i 1 , , i n 2 } = { 1 , , n } )
Equation (2) implies that the block B can be subdivide into n shadow blocks B ( 1 ) , B ( 2 ) , , B ( n ) , and meanwhile can be recovered from B = B ( 1 ) B ( n ) . All the n shadows in the proposed ( n , n ) -SDIS are illustrated in Figure 2. The operation of lower equation in Equation (1) using Wei et al.’ ( 2 , 2 ) -SDIS is shown in Figure 2a, and using Yang et al.’s ( 2 , 2 ) -SDIS is shown in Figure 2b.
Moreover, in [17], the authors claimed that the ( 2 , 2 ) -SDIS has a novel application to cover the transmission of confidential images. For example, as a supplementary aid to existing symmetric cryptography standards like DES which requires a pre-shared key, the ( 2 , 2 ) -SDIS remains a safe and less risky means for key distribution. Because the prosed scheme is extended from 2-out-of-2 to n-out-of-n, it implies that our ( n , n ) -SDIS can be applied on a group key distribution, which includes n members in this group. Besides the application in key distribution, the proposed scheme can be also applied to protection of secret image among multiple users. For instance, the colorful image of traffic or medical information are confidential, and our scheme provides a secure and high efficiency approach to safely keeping such image among n users, only all n users are able to recover the image with high quality.
Finally, in a shadow N S i , 1 i n there are X blocks with percentage of n 1.5 n ( = 1 2 × n 1 n + 1 2 × n 2 n ) , and Y blocks with percentage of 1.5 n ( = 1 2 × 1 n + 1 2 × 2 n ) , respectively. The more X blocks have the large number of black subpixels and may enhance visual qualities of meaningful shadows, and these percentages have more effective performance for large n.

4. The Proposed ( n , n ) -SDIS

4.1. Sharing and Recovering Algorithms

A block diagram of the proposed ( n , n ) -SDIS is illustrated in Figure 3. Shadows N S 1 N S n are noise-like, which is the same as Boolean-operation based SIS [18]. For the proposed ( n , n ) -SDIS, we can complement the blocks for the corresponding white cover pixels to generate binary meaningful shadows ( B S 1 B S n ) from noise-like shadows ( N S 1 N S n ) , i.e., 6 B 3 W (or 5 B 4 W ) for black color and 3 B 6 W (or 4 B 5 W ) for white color. However, the scheme in [18] does dot has this property. On the other hand, to implement color meaningful shadows ( C S 1 , C S n ) , the 1s in blocks are replaced with the color of the corresponding cover pixel, and leave 0s blank. Therefore, we only describe how to generate noise-like shadows, and how to recover the secret image and color palette from n noise-like shadows.
For noise-like shadows ( N S 1 , N S n ) , detailed procedures of sharing and recovering procedures are briefly described step by step as follows.
Sharing Procedure
(S-1)
Obtain the block B = ( b 1 , b 2 , b 9 ) from the secret image S I and the color palate C P .
(S-2)
Randomly generate ( n 2 ) X blocks B ( i 1 ) , B ( i 2 ) , , B ( i n 2 ) .
(S-3)
By ( n 2 ) random blocks and the block B, calculate the temporary block T via T = B B ( i 1 ) B ( i n 2 ) .
(S-4)
If H ( T ) is 9, we reduce its Hamming weight to H ( T ) = 7 via modifying any one shadow block of { B ( i 1 ) , , B ( i n 2 ) } .
/* (1) In Lemma 1, we prove that the reduction of Hamming weight can always be accomplished (2) After step (S-4), the Hamming weight distribution is 0 H ( T ) 8 */.
(S-5)
If H ( T ) is odd ( H ( T ) = 1 , 3 , 5 , 7 ) then construct two other shadows B ( j 1 ) , B ( j 2 ) by Y ( T ) = { B ( j 1 ) , B ( j 2 ) } ; else by W ( T ) = { B ( j 1 ) , B ( j 2 ) } , where { j 1 , j 2 } { i 1 , i n 2 } = { 1 , 2 , , n } .
/* In Lemma 2, we prove that { B ( j 1 ) , B ( j 2 ) } can be obtained from Y ( T ) for odd H ( T ) , and from W ( T ) for even H ( T ) . */
(S-6)
Process all the blocks, and output shadow blocks B ( 1 ) B ( n ) on n noise-like shadows N S 1 N S n , respectively.
Recovering procedure:
(S-1)
Obtain B by XOR-ing ( B ( 1 ) B ( n ) ) via from n noise-like shadows N S 1 N S n .
/* Theorem 1, demonstrates that we can obtain the original block from B = ( B ( 1 ) B ( n ) ) */
(S-2)
Recover the color index ( b 1 b 8 ) and the data of color palette b 9 , respectively, from B.
(S-3)
Repeat the above until all blocks in N S 1 N S n are processed, and finally S I and C P can be recovered.

4.2. Extension of ( n , n ) -SDIS to Share True Color Secret Image

Same as ( 2 , 2 ) -SDIS and VC in [5], the proposed ( n , n ) -SDIS can be used to share a true color image. To share a true color secret image, we use a 25-subpixel block B r , which the first three 8-tuples, r 1 , , r 8 , g 1 , , g 8 , and b l 1 , , b l 8 , are used to represent R , G and B color planes. The other one bit in B r is p 9 . This 25-subpixel block B r is shown in Figure 4a. Because we share R , G and B colors directly, we do not need to use the bit p 9 to covey any information. Thus, this bit p 9 could be abandoned, or used as authentication bits to provide authentication capability like VC in [6] and PSIS in [10]. Collect ( x 1 x 8 ) , where x { r , g , b l } , and append the bit p 9 to form red, green, and blue shadow blocks B x where x { r , g , b l } as shown in Figure 4b.
Detailed procedures of the proposed ( n , n ) -SDIS for sharing and recovering true color image are briefly described step by step as follows.
Sharing procedure:
(S -1)
Obtain 24-bit true color r 1 , , r 8 , g 1 , , g 8 , and b l 1 , , b l 8 from the secret image S I , and random generate a bit p 9 to form a 25-bit block B r , as shown in Figure 4a.
/* Parity bit p 9 is not used to covey any information, and thus it can be randomly generated */
(S -2)
Subdivide the true color block B T to red, green, and blue shadow blocks B r , B g , B b l .
(S -3)
Using B r , B g , B b l as 9-bit block B in (S-1), respectively, to generate n shadow blocks B r ( i ) , B g ( i ) , B b l ( i ) , where 1 i n , through (S-1) (S-6).
(S -4)
Collect every first 8 bits in B r ( i ) , B g ( i ) , B b l ( i ) , and append a black subpixel in the 25-th subpixel to generate a 25-bit shadow block B ( i ) , where 1 i n .
/* Because we do not use the 25-th bit p 9 in the XOR-ed result B T to convey any information, we can use black subpixel in 25-th subpixel for all shadow blocks to enhance the number of black subpixels. */
(S -5)
Process all the blocks, and output blocks B ( 1 ) B ( n ) on n noise-like shadows N S 1 N S n , respectively.
Recovering procedure:
(R -1)
Obtain every 25-bit block B T by XOR-ing ( B ( 1 ) B ( 2 ) B ( n ) ) via XOR-ing n noise-like shadows N S 1 N S n .
(R -2)
Recover a true color from the first 24 bits in B T , i.e., r 1 , , r 8 , g 1 , , g 8 , and b l 1 , , b l 8 .
(R -3)
Repeat the above until all blocks in ( N S 1 N S 2 N S n ) are processed, and finally a true color S I is obtained.

4.3. Enhancing Visual Quality of Color Meaningful Shadow

Consider sharing 256-color (respectively, true color) S I , noise-like shadows N S i , 1 i n , are 3 M × 3 N (respectively, 5 M × 5 N ) times expanded. Based on noise-like shadow N S i , we can fill in 1s in shadow blocks with the color of the corresponding cover pixel in C C I , and leave 0s blank to generate color meaningful shadow C S i . Consider the case sharing 256-color S I . As shown in Figure 5a, there is a pixel with a blue color C in C C I . Suppose that the block B ( i ) at corresponding position for this pixel in N S i is ( b 1 ( i ) b 9 ( i ) ) = ( 110101101 ) (see Figure 5b), and this block B ( i ) is a X block with 6 B 3 W sub-pixels (see see Figure 5c). By putting the blue cover pixel C into all black sub-pixels in Figure 5c, we have color meaningful shadow C S ( i ) in Figure 5d. Noise-like shadow and color meaningful shadow have the same size 3 M × 3 N subpixels and 9 times expanded when compared with C C I .
As shown in Figure 5d, the color at 1s in a block are the same. This is because S I and C C I have the same size with M × N pixels. To enhance visual quality of C S i , we use a large color cover image C C I with 3 M × 3 N pixels (note: the original C C I has only M × N pixels). Obviously, this larger C C I has the high resolution than C C I . As shown in Figure 6, our new approach uses a large C C I (see Figure 6a). By putting the color pixels in to into all 1s of B ( 1 ) in Figure 6b, we have the C S i in Figure 6c. Because the color meaningful shadow C S i has more colors, and will have the high resolution. By the same argument, this approach can also be applied to sharing true color S I .

5. Theorem and Security Analysis

5.1. Main Theorems and Examples

Lemma 1.
Suppose that the block T in Equation (1) is all-1 block, i.e., H ( T ) = 9 . We may change any two positions (one is 1 0 and the other is 0 1 ) in any one block B ( i j ) , 1 j n 2 , such that the equation B = T B ( i 1 ) B ( i n 2 ) holds, and H ( T ) is reduced from 9 to 7. Meanwhile, all ( n 2 ) blocks B ( i j ) , 1 j n 2 , are still X blocks.
Proof. 
As shown in Equation (1), all these ( n 2 ) blocks B ( i 1 ) B ( i n 2 ) are X blocks. We choose one block B ( i j ) , and modify any two positions of 1 0 and 0 1 . This modification will change the 1 in the block T to 0 at these two chosen modified positions. After that, H ( T ) is reduced to 9 2 = 7 . Meanwhile, because we change two positions by 1 0 and 0 1 , respectively, the Hamming weight H ( B ( i j ) ) is unchanged, and this shadow block B ( i j ) is still a X block. □
Lemma 2.
Blocks B ( j 1 ) , B ( j 2 ) in step (S-5) can be obtained from Y ( T ) for odd H ( T ) , and from W ( T ) for even H ( T ) .
Proof. 
Let X 1 be X block, and both Y 1 and Y 2 be Y blocks. We first prove that the possible Hamming weights of ( Y 1 , Y 2 ) are 0 , 2 , 4 , 6 , 8 , and the possible Hamming weights of ( X 1 , Y 2 ) are 1 , 3 , 5 , 7 . Because both blocks Y 1 and Y 2 have the same Hamming weight 5, the number of positions of 1 0 and 0 1 crossing from vectors Y 1 to Y 2 should be the same. Suppose that this number is y. Therefore, the ( Y 1 , Y 2 ) has the following form (see Equation (3)), where 0 y 4 . Obviously, the Hamming weight of ( Y 1 Y 2 ) in Equation (3) is 2 y , and thus H ( Y 1 Y 2 ) may be 0 , 2 , 4 , 6 , 8 . □
Y 1 = 1 1 y 0 0 y 1 1 5 y 0 0 5 y Y 2 = 0 0 1 1 1 1 0 0 Y 1 Y 2 = 1 1 1 1 0 0 0 0
Consider the XOR-ed block ( X 1 Y 2 ) . Because blocks X 1 and Y 2 have Hamming weights 6 and 5, respectively. The number of positions of 1 0 and 0 1 crossing from vectors X 1 to Y 2 should differ with one. Suppose that the number crossing from vectors X 1 to Y 2 of 1 0 is x + 1 , and the number of 0 1 is x. Therefore, the ( X 1 Y 2 ) has the following form (see Equation (4)), where 0 x 3 . The Hamming weight of ( X 1 Y 2 ) in Equation (4) is ( 2 x + 1 ) , and thus H ( X 1 Y 2 ) may be 1 , 3 , 5 , 7 .
X 1 = 1 1 x + 1 0 0 x 1 1 5 x 0 0 3 x Y 2 = 0 0 1 1 1 1 0 0 X 1 Y 2 = 1 1 1 1 0 0 0 0
Because Wei et al.’s ( 2 , 2 ) -SDIS uses two Y blocks (say Y 1 and Y 2 ), therefore using Wei et al.’s ( 2 , 2 ) -SDIS has H ( Y 1 Y 2 ) with even values 0 , 2 , 4 , 6 , 8 . On the other hand, there are one X block and one Y block (say X 1 and Y 2 ) when using Yang et al.’s ( 2 , 2 ) -SDIS. Thus, using Yang et al.’s ( 2 , 2 ) -SDIS has H ( X 1 Y 2 ) with odd values 1 , 3 , 5 , 7 . Finally, the above implies that { B ( j 1 ) , B ( j 2 ) } can be obtained from Y ( T ) for odd H ( T ) = 1 , 3 , 5 , 7 , and can be obtained from W ( T ) for even H ( T ) = 0 , 2 , 4 , 6 , 8 .
The following theorem shows that the proposed ( n , n ) -SDIS is a n-out-of-n sharing scheme that we can recover S I and C P from n noise-like shadows ( N S 1 N S n ) , and cannot obtain S I and C P from ( n 1 ) or fewer shadows.
Theorem 1.
The proposed ( n , n ) -SDIS is n-out-of-n sharing scheme that the XOR-ed result of n shadow blocks can represent 0 255 color indices and the data of color palette.
Proof. 
We first prove that sharing procedure can successfully generate n shadow blocks B ( i ) , 1 i n . Suppose that a block B = ( b 1 b 8 c o l o r i n d e x , b 9 c o l o r   p a l e t t e ) is composed of 8-bit color index ( 0 255 ) and 1-bit data of color palette, which are obtained from S I and C P . By Equation (1), we first randomly generate ( n 2 ) X blocks B ( i j ) , 1 j n 2 , and then calculate the temporary block T via T = B B ( i 1 ) B ( i n 2 ) . After step (S-4), the Hamming weight distribution of H ( T ) is 0 8 (see Lemma 1). By Lemma 2, we can obtain { B j 1 , B ( j 2 ) } from Y ( T ) (respectively, W ( T ) ) for odd ( 1 , 3 , 5 , 7 ) (respectively, even ( 0 , 2 , 4 , 6 , 8 ) H ( T ) . Finally, we have n shadow blocks { B 1 , , B n } . Process all the blocks, and we can generate n noise-like shadows.
Next, we consider the recovery. As shown in Equation (2), we can recover the original block B = ( b 1 b 9 ) from B = B ( 1 ) B ( n ) . Therefore, we can determine the color index ( b 1 b 8 ) and the data of color palette b 9 . After obtaining all blocks, we can recover S I and C P . Because of B = B ( 1 ) B ( n ) , it is obvious that we cannot recover the original block B via ( n 1 ) or fewer shadow blocks. □
Let the ratio of average number of black subpixels in a block (i.e., the regions in shadows showing the content of cover image) for Wei et al.’s ( 2 , 2 ) -SDIS, Yang et al.’s ( 2 , 2 ) -SDIS, and the proposed ( n , n ) -SDIS be R W , R Y , R P . In addition, let the contrasts of binary meaningful shadows for Wei et al.’s ( 2 , 2 ) -SDIS, Yang et al.’s ( 2 , 2 ) -SDIS, and the proposed ( n , n )-SDIS be C W , C Y , C P . The following theorem demonstrates R W R Y R P and C W C Y C P .
Theorem 2.
The ratio of average numbers of black subpixels in a 9-bit block for Wei et al.’s ( 2 , 2 ) -SDIS, Yang et al.’s ( 2 , 2 ) -SDIS, and the proposed ( n , n ) -SDIS are R W = 5 9 , R Y = 5.5 9 , R P = 6 1.5 / n 9 where R W < R Y < R P . The contrasts of binary meaningful shadows for Wei et al.’s ( 2 , 2 ) -SDIS, Yang et al.’s ( 2 , 2 ) -SDIS, and the proposed ( n , n ) -SDIS are C W = 1 9 , C Y = 2 9 , C P = 3 3 / n 9 , where C W < C Y < C P .
Proof. 
Wei et al.’s ( 2 , 2 ) -SDIS has all Y blocks on both shadows, and thus R W = 5 9 . On the other hand, both shadows of Yang et al.’s ( 2 , 2 ) -SDIS are composed of X and Y blocks half and half. Therefore, we have R Y = ( 6 + 5 ) / 2 9 = 5.5 9 . For the proposed ( n , n ) -SDIS, Step (S-5) implies that Yang et al.’s ( 2 , 2 ) -SDIS and Wei et al.’s ( 2 , 2 ) -SDIS are evenly used in the proposed ( n , n ) -SDIS. This is because the Hamming weights H ( T ) are odd and even half and half. Therefore, the value of R P is derived as follows.
R P = 1 2 × ( ( n 2 ) × 6 + 2 × 5 ) / n u s i n g W e i e t . a l ( 2 , 2 ) S D I S 9 + 1 2 × ( ( n 1 ) × 6 + 1 × 5 ) / n u s i n g W e i e t . a l ( 2 , 2 ) S D I S 9 = 3 1 / n 9 + 3 0.5 / n 9 = 6 1.5 / n 9
It is obvious that R P 5.5 9 with equality for n = 3 . From these values R W = 5 9 , R Y = 5.5 9 , R P = 6 1.5 / n 9 , we have R W < R Y < R P
The contrast is the difference of blackness for black block and white block. In binary meaningful shadows B S 1 B S n , we complement the blocks for the corresponding white cover pixels to generate white shadow blocks. Thus, if the number of black subpixels in a black shadow block is n B , then the he number black subpixels in a white shadow block is 9 n B . Thus, we have C W = 5 ( 9 5 ) 9 = 1 9 , C Y = 5.5 ( 9 5.5 ) 9 = 2 9 , C P = 6 1.5 / n ( 9 6 + 1.5 / n ) 9 = 3 3 / n 9 . It is obvious that C P 2 9 with equality for n = 3 . From these values C W = 1 9 , C Y = 2 9 , C P = 3 3 / n 9 we have C W < C Y C P . □
An illustrative example gives a quick understanding for the proposed ( n , n ) -SDIS.
Example 1.
Share and recover the following information ( c , d ) = ( 176 , 0 ) and ( 49 , 1 ) , where c is the color index and d is the data of color palette, by the proposed ( 4 , 4 ) -SDIS.
Given ( c , d ) = ( 176 , 0 ) , we have the block B = ( b 1 b 8 c , b 9 d ) = ( 10110000 176 , 0 0 ) 2 . By step (S-2), we randomly generate two X blocks (say B ( 1 ) , B ( 2 ) ). Suppose that these two random blocks are B ( 1 ) = ( 101110110 ) and B ( 2 ) = ( 111101001 ) with H ( B ( 1 ) ) = H ( B ( 2 ) ) = 6 , and then we obtain the temporary block T via the following equation.
T = B B ( 1 ) B ( 2 ) = ( 101100000 ) ( 101110110 ) ( 111101001 ) = ( 111111111 )
Because of H ( T ) = 9 , we should modify any two positions (one is 1 0 and the other is 0 1 ) in one block (say B ( 2 ) ), to reduce H ( T ) from 9 to 7. For example, we may modify B ( 2 ) as ( 111101100 ) . Finally, we have T = ( 111111010 ) with H ( T ) = 7 , and meanwhile the new block B ( 2 ) = ( 111101100 ) is still a X block. Since H ( T ) = 7 is odd, we apply Yang et al.’s ( 2 , 2 ) -SDIS to obtain Y ( 111111010 ) = 7 , which can be determined from Equation (7). Finally, all four shadow blocks are B ( 1 ) = ( 101110110 ) , B ( 2 ) = ( 111101100 ) , B ( 3 ) = ( 110110101 ) , B ( 4 ) = ( 001001111 ) , where B ( 1 ) , B ( 2 ) , B ( 3 ) are X blocks, and B ( 4 ) is Y block.
B ( 3 ) = ( 110110101 ) : X B ( 4 ) = ( 0 0 1 0 0 1 1 1 1 ) : Y T = ( 111111010 )
Consider another case ( c , d ) = ( 49 , 1 ) . We have the block B = ( 001100011 49 , 1 1 ) 2 . From step (S-2), we randomly select two X blocks (say B ( 1 ) , B ( 2 ) ). Suppose that these two random blocks are B ( 1 ) = ( 011111001 ) and B ( 2 ) = ( 110011011 ) , and then we obtain the temporary block T via Equation (8).
T = B B ( 1 ) B ( 2 ) = ( 001100011 ) ( 011111001 ) ( 110011011 ) = ( 100000001 )
Since H ( T ) = 2 is even, we apply Wei et al.’s ( 2 , 2 ) -SDIS to obtain Y ( 100000001 ) = ( B ( 3 ) , B ( 4 ) ) , which can be determined from Equation (9). Finally, all four blocks are B ( 1 ) = ( 011111001 ) , B ( 2 ) = ( 110011011 ) , B ( 3 ) = ( 110101010 ) , B ( 4 ) = ( 010101011 ) , where B ( 1 ) , B ( 2 ) are X blocks, and B ( 3 ) , B ( 4 ) are Y blocks.
B ( 3 ) = ( 110101010 ) : Y B ( 4 ) = ( 0 1 0 1 0 1 0 1 1 ) : Y T = ( 100000001 )
For recovery, consider the case: B ( 1 ) = ( 101110110 ) , B ( 2 ) = ( 111101100 ) , B ( 3 ) = ( 110110101 ) , B ( 4 ) = ( 001001111 ) . The XOR-ed result is B = B ( 1 ) B ( 2 ) B ( 3 ) B ( 4 ) = ( 101100000 ) , and thus ( c , d ) = ( 176 , 0 ) . For the other case: B ( 1 ) = ( 011111001 ) , B ( 2 ) = ( 110011001 ) , B ( 3 ) = ( 110101010 ) , B ( 4 ) = ( 010101011 ) , the XOR-ed result is B = B ( 1 ) B ( 2 ) B ( 3 ) B ( 4 ) = ( 101100000 ) . Therefore, we have ( c , d ) = ( 49 , 1 ) .
Let R P be the ratio of average numbers of black subpixels in a 25-bit shadow block for the proposed ( n , n ) -SDIS sharing true color image. The following theorem demonstrates R P > R P , i.e., the meaningful shadows of sharing true color secret image have the better visual quality than those of sharing 256-color secret image.
Theorem 3.
The ratio of average numbers of black subpixels in a 25-bit block for the proposed ( n , n ) -SDIS sharing true color image is R P = 17 25 0.16 n , where R P > R P .
Proof. 
If the blocks B r ( i ) , B g ( i ) , B b l ( i ) are X (respectively, Y ) blocks, then the first 8 bits in B r ( i ) , B g ( i ) , B b l ( i ) has 6 black subpixels with C 8 6 C 9 6 percentage and 5 black subpixels with C 8 5 C 9 6 percentage (respectively, 5 black subpixels with C 8 5 C 9 5 percentage and 4 black subpixels with C 8 4 C 9 5 percentage). The average number of black pixels for the first 8 bits in B r ( i ) , B g ( i ) , B b l ( i ) is 6 × C 8 6 C 9 6 + 5 × C 8 5 C 9 6 = 16 3 for X blocks, and is 5 × C 8 5 C 9 5 + 4 × C 8 4 C 9 5 = 40 3 for X blocks. Therefore, the average number of black subpixels in every 8 bits in the first 24 bits of B ( i ) is 16 n 4 3 n , as derived below.
1 2 × ( ( n 2 ) × 16 / 3 + 2 × 40 / 9 ) / n u s i n g W e i e t . a l ( 2 , 2 ) S D I S + 1 2 × ( ( n 1 ) × 16 / 3 + 1 × 40 / 9 ) / n u s i n g Y a n g e t . a l ( 2 , 2 ) S D I S = 24 n 8 9 n + 24 n 4 9 n = 16 n 4 3 n
Because the 25-th bit in shadow block is always 1, and thus the value of R P is determined as R P = 3 × ( 16 n 4 ) / 3 n + 1 25 = 17 25 0.16 n . The following equation implies R P > R P .
R P = 17 25 0.16 n > 6 9 0.16 n > 6 9 1.5 / 9 n 6 1.5 / n 9 = R P
 □

5.2. Security Analysis: The ( n 1 ) -Colluder Attack

Here, we consider an attack way that ( n 1 ) participants collude together and want to figure out S I and C P . The ( n 1 ) -colluder attack is a very extreme attack for the proposed ( n , n ) -SDIS, because it needs ( n 1 ) participants jointly providing their shadows for guessing S I and C P . We first discuss the ( n 1 ) -colluder attack on Wei et al.’s ( 2 , 2 ) -SDIS and Yang et al.’s ( 2 , 2 ) -SDIS. Suppose that Participant 1 wants to predict S I and C P from his own shadow N S 1 . Because the color palette C P information is conveyed by the ninth bit b 9 ( 1 ) of every block on N S 1 . Therefore, the C P can be completely obtained from N S 1 . Even though Participant 1 has the color palette C P , but he cannot obtain the information about color index. An attacker has 1 256 0.004 probability to figure out the correct color index ( b 1 b 8 ) of block B without any shadow. This value of 1 256 is a brute-force probability, which tries all possible 256 colors in the color palette. However, for the ( n 1 ) -colluder attack, Participant 1 has B ( 1 ) . By cryptanalytic attacks relying on knowing one shadow (the first eight bit of B ( 1 ) ), Participant 1 may guess the color index. Let the successful probability to recover the block B for Wei et al.’s ( 2 , 2 ) -SDIS and Yang et al.’s ( 2 , 2 ) -SDIS be P W and P Y , respectively, when collecting one shadow. Because both shadow blocks of Wei et al.’s ( 2 , 2 ) -SDIS are all Y blocks ( 5 B 4 W ) , obviously P W is 1 C 9 5 = 1 126 0.008 . On the other hand, shadow blocks of Yang et al.’s ( 2 , 2 ) -SDIS are evenly composed of X blocks and Y blocks. Thus, P Y = 1 / C 9 6 + 1 / C 9 5 2 = 1 / 84 + 1 / 126 2 0.01 . Both probabilities 0.08 and 0.01 are higher than the brute-force probability 0.004 . However, these probabilities 0.08 and 0.01 are still practically secure for guessing 256 colors.
Let the successful probability to recover the block B for ( n 1 ) -colluder attack, for the proposed ( n , n ) -SDIS, be P P . In the following theorem, we theoretically prove P P = 1 C 9 6 3 2 n × ( 1 C 9 6 1 C 9 5 ) .
Theorem 4.
The successful probability to recover the block B in the proposed ( n , n ) -SDIS for ( n 1 ) -colluder attack is P P = 1 C 9 6 3 2 n × ( 1 C 9 6 1 C 9 5 ) , where P W P Y P P .
Proof. 
Suppose that there are ( n 1 ) shadows (say B ( 1 ) B ( n 1 ) ) for reconstruction, on which we may guess the type of shadow block in the corresponding position of B ( n ) . The block B ( n ) has X block and Y block with 2 n 3 2 n probability and 3 2 n probability, respectively, which are derived below.
1 2 × C 2 2 · C n 2 1 W e i e t a l s ( 2 , 2 ) S D I S C n n 1 + 1 2 × C 1 1 · C n 1 1 Y a n g e t . a l s ( 2 , 2 ) S D I S C n n 1 = 2 n 3 2 n ( B ( n ) : X ) 1 2 × C 2 1 · C n 2 n 2 W e i e t a l s ( 2 , 2 ) S D I S C n n 1 + 1 2 × C 1 1 · C n 1 n 1 Y a n g e t . a l s ( 2 , 2 ) S D I S C n n 1 = 3 2 n ( B ( n ) : Y )
If B ( n ) is X block (respectively, Y block), there is 1 C 9 6 (respectively, 1 C 9 5 ) probability to guess the correct color index ( b 1 b 8 ) , which is better than brute-force probability 1 256 . Thus, P P is calculated as follows.
P P = 2 n 3 2 n × 1 C 9 6 X b l o c k + 3 2 n × 1 C 9 5 Y b l o c k = 1 C 9 6 3 2 n × ( 1 C 9 6 1 C 9 5 )
 □
Since P W = 1 C 9 5 and P Y = 1 / C 9 5 + 1 / C 9 6 2 , we have P W < P Y . About P Y and P P , the relation is derived as follows.
P P = 1 C 9 6 3 2 n × ( 1 C 9 6 5 9 ) = 2 n 3 2 n × 1 C 9 6 + 3 2 n × 1 C 9 5 = n 2 n × 1 C 9 6 + ( n 3 2 n × 1 C 9 6 + 3 2 n × 1 C 9 5 ) n 2 n × 1 C 9 6 + ( n 3 2 n × 1 C 9 5 + 3 2 n × 1 C 9 5 ) = 1 / C 9 5 + 1 / C 9 6 2 = P Y
For n = 3 , the value of P P is P P = 1 / C 9 5 + 1 / C 9 6 2 = P Y , and P P approaches to 1 C 9 6 for large n. In fact, the value of 1 C 9 6 = 1 84 0.012 is almost the same as P y 0.01 . For this extreme case, the ( n 1 ) -colluder attack, the security of the proposed ( n , n ) -SDIS is close to that of Yang et al.’s ( 2 , 2 ) -SDIS. By the same argument, for other cases collecting ( n 2 ) or shadows, the possible combination of collected shadows is more difficult to analyze compared with collecting ( n 1 ) shadows, and even less than the brute-force probability.
In the proposed ( n , n ) -SDIS, the color palette information is conveyed by b 9 (the ninth bit in B), but not the ninth bit b 9 ( 1 ) of the block B ( 1 ) in N S 1 . Therefore, the color palette C P may be obtained from only one shadow for Wei et al.’s ( 2 , 2 ) -SDIS and Yang et al.’s ( 2 , 2 ) -SDIS. Even though an attacker has the C P information, he still cannot obtain the secret image S I . For the proposed ( n , n ) -SDIS, the color palette information in B is securely protected and only can be determined from XOR-ing n blocks B ( 1 ) B ( n ) . This makes the cryptanalysis is more difficult for the proposed ( n , n ) -SDIS. The following theorem demonstrates the successful probability P C to recover a correct color in C P for the proposed ( n , n ) -SDIS when collecting ( n 1 ) shadows.
Theorem 5.
The successful probability to recover a correct color in C P for the proposed ( n , n ) -SDIS when collecting ( n 1 ) shadows is P C = ( 2 3 1 / 6 n ) 24 .
Proof. 
Each color information in C P is encapsulated in 24 blocks, which every block should be derived from B = B ( 1 ) B ( n ) . If colluders have ( n 1 ) shadows (say N S 1 N S n 1 ), for a block B, they have the XOR-ed result B = B ( 1 ) B ( n 1 ) , and can guess that the shadow block B ( n ) is X block and Y block with 2 n 3 2 n probability and 3 2 n probability, respectively. For X block, it implies that we have 6 9 probability that the bit b 9 is the complementary bit b 9 in B . On the other hand, we have 5 9 probability that the bit b 9 is the complementary bit b 9 in B for Y block. Therefore, the average probability of guessing b 9 is derived as 2 n 3 2 n × 6 9 X b l o c k + 3 2 n × 5 9 Y b l o c k = 2 3 1 / 6 n Note: every block has one-bit color palette information, and a true color is represented by 24-bit R , G , and B color planes. Because colluders can guess the bit b 9 with 2 3 1 / 6 n probability, P C is ( 2 3 1 / 6 n ) 24 . □
Therefore, the value P C = ( 2 3 1 / 6 n ) 24 is less than ( 2 3 ) 24 5.94 × 10 5 , and this implies that the color palette cannot be recovered under ( n 1 ) -colluder attack.

6. Evaluation and Comparisons

6.1. Experimental Results

Seven experiments (Experiments A H ) are conducted to evaluate the proposed ( n , n ) -SDIS from various aspects: (A) noise-like shadows N S 1 , N S 2 , N S 3 sharing 256-color image for ( 3 , 3 ) -SDIS (B) binary meaningful shadows B S 1 , B S 2 , B S 3 sharing 256-color image for ( 3 , 3 ) -SDIS (C) color meaningful shadows C S 1 , C S 2 , C S 3 sharing 256-color image for ( 3 , 3 ) -SDIS (D) color meaningful shadows C S 1 , C S 2 , C S 3 sharing true color image for ( 3 , 3 ) -SDIS (E) binary meaningful shadows ( N S 1 N S 4 ) and color meaningful shadows ( C S 1 C S 4 ) for ( 4 , 4 ) -SDIS (F) binary meaningful shadows ( N S 1 N S 5 ) and color meaningful shadows ( C S 1 C S 5 ) for ( 5 , 5 ) -SDIS (G) color meaningful shadows C S 1 , C S 2 , C S 3 sharing 256-color image for ( 3 , 3 ) -SDIS by the approach of enhancing visual quality.
Experiments A D are the ( 3 , 3 ) -SDIS. Experiment A has noise-like shadows, and other four experiments are meaningful shadows. Experiments D demonstrates sharing true color secret image. Experiments E and F demonstrate binary and color meaningful shadows for ( 4 , 4 ) -SDIS and ( 5 , 5 ) -SDIS, respectively. In Experiment G, we redo Experiment C to enhance the visual quality of color meaningful shadows by using the approach in Figure 6.
In all experiments, five binary cover images B C I 1 B C I 5 with black-and-white printed texts A , B , C , D , E , and five color cover images C C I 1 C C I 5 with photos of birds are used. In addition, two secret images S I 1 (Lena: 256-color image), S I 2 (Kaleidoscope: true color image) are used. All these images B C I 1 B C I 5 (see Figure 7), C C I 1 C C I 5 (see Figure 8), and S I 1 , S I 2 (see Figure 9) are 256 × 256 pixels.
Because shadows may be 9 or 25 times expanded in experiments, for demonstrating all the images in a single page, the shadow images in experiments are not correctly proportional.
Experiment A. 
Three noise-like shadows N S 1 N S 3 of the proposed ( 3 , 3 ) -SDIS sharing a 256-color secret image are demonstrated.
The secret image S I 1 : 256-color Lena in Figure 9a is used to test the proposed ( 3 , 3 ) -SDIS. Each noise-like shadow has 2 n 3 2 n = 6 3 6 = 50 % X blocks and 3 2 n = 3 6 = 50 % Y blocks, which are the same as Yang et al.’s ( 2 , 2 ) -SDIS. As shown in Figure 10, three noise-like shadows are expanded to 768 × 768 pixels. Via recovering procedure, we can recover the original 256-color secret image Lena.
Experiment B. 
Three binary meaningful shadows B S 1 B S 3 of the proposed ( 3 , 3 ) -SDIS sharing a 256-color secret image are demonstrated.
By revering (respectively, unchanging) the color of subpixels in a block of B ( 1 ) , B ( 2 ) , and B ( 3 ) on N S 1 , N S 2 and N S 3 in Experiment A to represent the white (respectively, black) color in B C I 1 B C I 3 (A, B, and C in Figure 7a–c). The proposed ( 3 , 3 ) -SDIS has the contrast C P = 3 ( 3 / n ) 9 = 3 ( 3 / 3 ) 9 = 2 9 (see Theorem 2). It is observed that the printed-texts A, B, and C are revealed indeed on B C I 1 B C I 3 , with the size of 768 × 768 pixels (see Figure 11a–c). Consider recovery. We first transfer the 3 B 6 W block and 4 B 5 W block to 6 B 3 W block and 5 B 4 W block, respectively. Afterwards, via the recovering procedure, we may recover the 256-color secret image Lena.
Experiment C. 
Three color meaningful shadows C S 1 C S 3 of the proposed ( 3 , 3 ) -SDIS sharing a 256-color secret image are demonstrated.
By adopting the color pixels in C C I 1 C C I 3 into black subpixels in blocks B ( 1 ) , B ( 2 ) , and B ( 3 ) on N S 1 , N S 2 and N S 3 , respectively, we generate three color meaningful shadows C S 1 C S 3 with the size of 768 × 768 pixels. Each color meaningful shadow has R P = 6 ( 1.5 / n ) 9 = 6 ( 1.5 / 3 ) 9 = 5.5 9 . As shown in Figure 12a–c, it is observed that the images of three photos of birds in Figure 8a–c are revealed on C S 1 C S 3 . Consider recovery. We first transfer the color subpixel in every block to 1 s and white subpixel to 0 . Afterwards, via the recovering procedure, we may recover the 256-color secret image Lena.
Experiment D. 
Three color meaningful shadows C S 1 C S 3 of the proposed ( 3 , 3 ) -SDIS sharing a true color secret image are demonstrated.
The secret image S I 2 : true color Kaleidoscope is used to test the proposed ( 3 , 3 ) -SDIS sharing a true color secret image. For a secret pixel, we use the information of R , G , and B color planes to form a 25-bit block. By adopting the color pixels in C C I 1 C C I 3 into three 25-subixle shadow blocks, we can generate three color meaningful shadows C S 1 C S 3 with the size of 1280 × 1280 pixels (25 times expanded). Each color meaningful shadow has R P = 17 25 0.16 n = 0.627 (see Theorem 3) larger than R P = 5.5 9 = 0.611 in Experiment C, to show the content of cover image. As shown in Figure 13a–c, it is observed that the images C C I 1 C C I 3 are revealed on C S 1 C S 3 . Via the recovering procedure, we may recover the true color secret image Kaleidoscope.
Experiment E. 
Four binary meaningful shadows B S 1 B S 4 and four color meaningful shadows C S 1 C S 4 of the proposed ( 4 , 4 ) -SDIS sharing a 256-color secret image are demonstrated.
Four binary cover images printed-texts in Figure 7a–d, and four color cover images C C I 1 C C I 4 in Figure 8a–d are used. Finally, four binary meaningful shadows B S 1 B S 4 , and four color meaningful shadows C S 1 C S 4 are illustrated in Figure 14a,b, respectively. All these shadows have the sizes of 768 × 768 pixels. Binary meaningful shadows of ( 4 , 4 ) -SDIS have C P = 3 ( 3 / n ) 9 = 3 ( 3 / 4 ) 9 = 2.25 9 , and color meaningful shadows of ( 4 , 4 ) -SDIS have R P = 6 ( 1.5 / n ) 9 = 6 ( 1.5 / 4 ) 9 = 5.625 9 . Both values are greater than 2 9 (Experiment B) and 5.5 9 (Experiment C), respectively.
Experiment F. 
Five binary meaningful shadows B S 1 B S 5 and five color meaningful shadows C S 1 C S 5 of the proposed ( 5 , 5 ) -SDIS sharing a 256-color secret image are demonstrated.
Five color cover images printed-texts in Figure 7a–e, and five color cover images C C I 1 C C I 5 in Figure 8a–e are used. Finally, fiver binary meaningful shadows B S 1 B S 5 , and five color meaningful shadows C S 1 C S 5 are illustrated in Figure 15a,b, respectively. All these shadows have the sizes of 768 × 768 pixels. Binary meaningful shadows of ( 5 , 5 ) -SDIS have C P = 3 ( 3 / n ) 9 = 3 3 / 5 9 = 2.4 9 , and color meaningful shadows of ( 5 , 5 ) -SDIS have R P = 6 ( 1.5 / n ) 9 = 6 1.5 / 5 9 = 5.7 9 . Both values are better than those of ( 3 , 3 ) -SDIS.
Experiment G. 
Redo Experiment C, but use the approach of enhancing visual quality of color meaningful shadows. Three C S 1 C S 3 are demonstrated.
In Experiment C, three 256 × 256 -pixel color cover images C C I 1 C C I 3 in Figure 8a–c are used. To enhance the visual quality of C S 1 C S 3 , we use another three 768 × 768 -pixel C C I 1 C C I 3 , which has high resolution. These three images C C I 1 C C I 3 are omitted here for brevity. By using the approach in Figure 6, we use color pixels in C C I 1 C C I 3 into black subpixels in blocks B ( 1 ) , B ( 2 ) , and B ( 3 ) on N S 1 , N S 2 and N S 3 , respectively to generate three color meaningful shadows C S 1 C S 3 with the size of 768 × 768 pixels. As shown in Figure 16a–c, it is observed that Figure 16 has better visual quality than Figure 12. However, the photos C C I 1 C C I 3 used in this experiment may not clearly demonstrate the enhancement. Here, we use a cover image, a colorful centered fractal, for testing. Figure 17(a-1,b-1) shows two color meaningful shadows using the original one and new enhancement, respectively. For clear observation, cropped image areas of Figure 17(a-1,b-1) are shown in Figure 17(a-2,b-2). Visual inspection of cropped image areas in Figure 17(a-2,b-2) reveals that the original method spoils some edges and fine details in shadow images. Our enhancement has clear color sharpness, especially the clearness of edges.
For fairer comparison, we adopt visual quality assessment, the structural similarity (SSIM) index, and the feature similarity (FSIM) index to compare Figure 17(a-1) and Figure 17(b-1). Let the original image be a colorful centered fractal with the size 768 768 pixels. According to the image quality assessment from Laboratory for Computational Vision in New York University (please refer to https://www.cns.nyu.edu/~lcv/ssim/#usage), to calculate SSIM and FSIM for color images, it would be better to convert the color image to gray image with the formula 0.2989 R + 0.5870 G + 0.1140 B , and then calculate its SSIM and FSIM. Finally, SSIM and FSIM of Figure 17(a-1) are 0.2532 and 0.8400 , and SSIM and FSIM of Figure 17(b-1) are 0.3300 and 0.8498 , respectively. These values of SSIM and FSIM demonstrate a consistency with the performance in Figure 17(a-2,b-2).

6.2. Discussion and Comparison

6.2.1. Enhancing R P

In step (S-2), we first randomly generate ( n 2 ) X blocks B ( i 1 ) , B ( i 2 ) , , B ( i n 2 ) . Afterwards, in step (S-5), we evenly use Wei et al.’s ( 2 , 2 ) -SDIS and Yang et al.’s ( 2 , 2 ) -SDIS to generate two other shadows B ( j 1 ) , B ( j 2 ) , where { j 1 , j 2 } = { 1 n } { i 1 i n 2 } . Finally, R P is 6 ( 1.5 / n ) 9 (see Equation (5)). In fact, we may further enhance R P by using W block instead of X block to generate ( n 2 ) B ( i 1 ) , B ( i 2 ) , , B ( i n 2 ) , where W block may be 7 B 2 W or 8 B 1 W . When using W = 6 B 3 W , the approach changes back to the original ( n , n ) -SDIS. By this approach, the R P is enhanced to 7 3.5 / n 9 and 8 5.5 / n 9 for W = 7 B 2 W and W = 8 B 1 W , as derived in Equations (15) and (16), respectively.
R P = 1 2 × ( ( n 2 ) × 7 + 2 × 5 ) / n W e i e t a l s ( 2 , 2 ) S D I S 9 + 1 2 × ( ( n 2 ) × 7 + 1 × 5 + 1 × 6 ) / n Y a n g e t . a l s ( 2 , 2 ) S D I S 9 = 3.5 ( 2 / n ) 9 + 3.5 ( 1.5 / n ) 9 = 7 ( 3.5 / n ) 9
R P = 1 2 × ( ( n 2 ) × 8 + 2 × 5 ) / n W e i e t a l s ( 2 , 2 ) S D I S 9 + 1 2 × ( ( n 2 ) × 8 + 1 × 5 + 1 × 6 ) / n Y a n g e t . a l s ( 2 , 2 ) S D I S 9 = 4 ( 3 / n ) 9 + 4 ( 2.5 / n ) 9 = 8 ( 5.5 / n ) 9
Consider ( n 1 ) -colluder attack for the case using W block with Hamming weight w. The following theorem demonstrates the successful probability to recover the block B under ( n 1 ) -colluder attack.
Theorem 6.
When using W block in the proposed ( n , n ) -SDIS, the successful probability to recover the block B for ( n 1 ) -colluder attack is R P = 2 n 4 2 n × 1 C 9 w + 1 2 n × 1 C 9 6 + 3 2 n × 1 C 9 5 .
Proof. 
Suppose that using W block with Hamming weight w in step (S-2). Consider the case that colluders already have ( n 1 ) shadows (say B ( 1 ) B ( n 1 ) ) for reconstruction. Based on these ( n 1 ) shadows, colluders may guess the type of shadow block B ( n ) in the other shadow, The block B ( n ) has W block, X block and Y block with 2 n 4 2 n probability, 1 2 n probability and 3 2 n probability, respectively, which are derived below. Note: if W is 6 B 3 W Equation (17) is reduced to Equation (12).
1 2 × C 2 2 × C n 1 1 W e i e t a l s ( 2 , 2 ) S D I S C n n 1 + 1 2 × C 1 1 × C 1 1 × C n 2 1 Y a n g e t . a l s ( 2 , 2 ) S D I S C n n 1 = 2 n 4 2 n ( B ( n ) i s W b l o c k ) 1 2 × + 0 1 2 × C 1 1 × C 1 1 × C n 2 n 2 Y a n g e t . a l s ( 2 , 2 ) S D I S C n n 1 = 1 2 n ( B ( n ) i s X b l o c k ) 1 2 × C 2 1 × C n 2 n 2 W e i e t a l s ( 2 , 2 ) S D I S C n n 1 + 1 2 × C 1 1 × C 1 1 × C n 2 n 2 Y a n g e t . a l s ( 2 , 2 ) S D I S C n n 1 = 3 2 n ( B ( n ) i s Y b l o c k )
There is probability 1 C 9 w , 1 C 9 5 , 1 C 9 6 to guess the correct block B when B ( n ) is W block, X block, and Y block, respectively. Therefore, the P P is calculated as follows.
P P = 2 n 4 2 n × 1 C 9 w W + 1 2 n × 1 C 9 5 X + 3 2 n × 1 C 9 5 Y
 □
The value of P P is 1 C 9 7 0.038 n and 1 C 9 8 0.204 n for w = 7 and 8. The values are about 1 C 9 7 = 1 36 and 1 C 9 8 = 1 9 , respectively, for large n. Even though these values are larger than P P = 1 C 9 6 3 2 n ( 1 C 9 6 1 C 9 5 ) for using W block in step (S-2), it is still practically secure for applications. This is because our CP information is protected in the XOR-ed result, but not conveyed on b 9 ( 1 ) in B ( 1 ) like ( 22 ) -SDIS [17,19]. For example, when using 8 B 1 W as W block. If colluders have ( n 1 ) shadows (say N S 1 N S n 1 ), for a block B, they have the XOR-ed result B = B ( 1 ) B ( n 1 ) , and can guess the shadow block B ( n ) is W block with a very high probability for large n (note: 2 n 4 2 n 1 for large n). It implies that there is about 8 9 probability that the bit b 9 in B is the complementary bit b 9 of B . By using the same argument in proof of Theorem 5, for this case, the successful probability to recover a correct color in C P is P C = ( 8 9 ) 24 0.059 . Therefore, we cannot get the correct C P back. Although colluders may recover the first 8 bits ( b 1 b 8 ) in B, i.e., a color index by complementing the first 8 bits ( b 1 b 8 ) in B with 1 9 probability. This probability of guessing a color index is larger than the brute-force probability 1 256 . However, colluders do not have the correct C P , and thus they cannot recover the original S I . Obviously, it is more difficult to apply ( n 1 ) -colluder attack on using 7 B 2 W as W block, because P C is ( 7 9 ) 24 0.0024 . This is why we claim that using W block is still practically secure for applications.
To demonstrate the above phenomenon, we use 8 B 1 W as W block in the proposed ( 5 , 5 ) -SDIS. Five color meaning shadows using color cover images C C I 1 C C I 5 in Figure 8a–e are illustrated in Figure 18a, where the approach of enhancing visual quality in Section 4.3 is also adopted. Figure 18b are the 256-color S I (Lena), and its corresponding C P . The recovered 256-color secret image S I and the color palette C P are shown in Figure 18c. It is observed that these five color meaning shadows in Figure 18a have high resolutions with R P = 8 5.5 / n 9 = 0.767 for n = 5 , which have better visual qualities than those in Figure 15b. From, Figure 18c, there is not any secret information of C P and S I leaked for ( n 1 ) -colluder attack.

6.2.2. Comparison

We extend ( 2 , 2 ) -SDIS to the proposed ( n , n ) -SDIS. Because the percentage of X block is greater than 50 % , the resolution of binary and color meaningful shadows are enhanced. Note: Yang et al.’s ( 2 , 2 ) -SDIS uses X block and Y block half and half, while Wei et al.’s ( 2 , 2 ) -SDIS only uses Y blocks. On the other hands, Wei et al.’s ( 2 , 2 ) -SDIS has the incorrect assignment of color palette data for the color index 255. This problem comes from from all-1 9-bit vector. In [19], Yang et al. adopted a complicated approach using partitioned sets to address this problem. In the proposed ( n , n ) -SDIS, the number of shadows of ( n , n ) -SDIS is more than two, i.e., n 3 . Thus, we can easily adopt a simple approach by reducing H ( T ) to H ( T ) = 7 in step (S-4) via modifying any one shadow block to solve this problem. Meantime, as described in Section 5.1, we may enhance R P and simultaneously retain the practical security by using W block.
As shown in Table 2, a complete comparison is given among Wei et al.’s ( 2 , 2 ) -SDIS, Yang et al.’s ( 2 , 2 ) -SDIS, and the proposed ( n , n ) -SDIS. The comparison includes the structure of block, percentages of blocks, the region in color meaningful shadows revealing cover image, the contrast of binary meaningful shadows, enhancing R P , the embedding of color palette data, where to embed color palette data, enhancing visual quality of color meaningful shadows, encoding/decoding complexity, and the security. About the security, although the successful probability to recover B under ( n 1 ) -colluder attack P P = 1 C 9 6 3 2 n ( 1 C 9 6 1 C 9 5 ) 1 C 9 6 = 0.012 for large n is larger than P W = 1 C 9 5 = 0.008 and P Y = 1 / C 9 6 + 1 / C 9 5 2 = 0.01 . This value is still practical secure for practical application. Besides, the C P of the proposed ( n , n ) -SDIS cannot be obtained under ( n 1 ) -colluder attack, but the C P of ( 2 , 2 ) -SDIS can be obtained from only one shadow. Based on this observation, the proposed ( n , n ) -SDIS is much securer than ( 2 , 2 ) -SDIS.

7. Conclusions

In this paper, we discussed the general ( n , n ) -SDIS, which can be applied to any n 3 . The proposed ( n , n ) -SDIS is skilfully implemented on basis of previous ( 2 , 2 ) -SDIS. Our main contribution is theoretically to prove the proposed ( n , n ) -SDIS being able to resist ( n 1 ) colluder attack. Meanwhile, the contrast of binary meaningful shadow and the region in color shadows revealing cover image are both enhanced. The main weakness of Wei et al.’s ( 2 , 2 ) -SDIS is the incorrect assignment of color palette data for some color indices, and this is tackled by using partitioned sets in Yang et al.’s ( 2 , 2 ) -SDIS. In the proposed ( n , n ) -SDIS, because of the number of shadows more than two, i.e., n 3 , a simple approach reducing Hamming weigh of a temporary block can be adopted to easily solve this weakness. Since the proposed ( n , n ) -SDIS is based on color palette and resistant to ( n 1 ) -colluder attack, and also enhances the visual quality of meaningful shadows, it is suitable for modern visual communication applications where features such as secure transmission, storage sensitive, and high-quality image reconstruction are required.

Author Contributions

Designing scheme, writing—original draft preparation, C.-N.Y.; security analysis, Q.-D.S.; editing and responding to reviewer, Y.-X.L.; experiment, C.-M.W.

Funding

Ministry of Science and Technology, under Grant MOST 107-2221-E-259-007, 108-2221-E-259-009-MY2; Natural Science Foundation of China under Grant No. 61502384,61571360,61872289.

Conflicts of Interest

The authors declare there is no conflicts of interest regarding the publication of this paper.

References

  1. Naor, M.; Shamir, A. Visual cryptography. In Advances in Cryptology-EUROCRYPT’94; LNCS 950; Springer: Berlin/Heidelberg, Germany, 1995; pp. 1–12. [Google Scholar] [Green Version]
  2. Shyu, S.J.; Jiang, H.W. General constructions for threshold multiple-secret visual cryptography Schemes. IEEE Trans. Inf. Forensics Secur. 2013, 8, 733–743. [Google Scholar] [CrossRef]
  3. Yang, C.N.; Wu, C.C.; Lin, Y.C. k out of n region-based progressive visual cryptography. IEEE Trans. Circuits Syst. Video Technol. 2017. [Google Scholar] [CrossRef]
  4. Karolin, M.; Meyyappan, T.; Thamarai, S.M. Encryption and decryption of color images using visual cryptography. Int. J. Pure Appl. Math. 2018, 118, 277–281. [Google Scholar]
  5. Kansal, I.; Kasana, S.S. Sharing two true colour images using (3,3)-extended visual cryptography technique. J. Mod. Opt. 2018, 65, 1949–1959. [Google Scholar]
  6. Yang, C.N.; Wu, F.H.; Peng, S.L. Enhancing multi-factor cheating prevention in visual cryptography based minimum (k, n)-connected graph. J. Vis. Commun. Image Represent. 2018, 55, 660–676. [Google Scholar] [CrossRef]
  7. Shamir, A. How to share a secret. Commun. Assoc. Comput. Mach. 1979, 22, 612–613. [Google Scholar] [CrossRef]
  8. Thien, C.C.; Lin, J.C. Secret image sharing. Comput. Graph. 2002, 26, 765–770. [Google Scholar] [CrossRef]
  9. Liu, Y.X.; Yang, C.N.; Wu, C.M.; Sun, Q.D.; Bi, W. Threshold changeable secret image sharing scheme based on interpolation polynomial. Multimed. Tools Appl. 2019, 78, 18653–18667. [Google Scholar] [CrossRef]
  10. Yang, C.N.; Chen, T.S.; Yu, K.H.; Wang, C.C. Improvements of image sharing with steganography and authentication. J. Syst. Softw. 2007, 80, 1070–1076. [Google Scholar] [CrossRef]
  11. Pakniat, N.; Noroozi, M.; Eslami, Z. Secret image sharing scheme with hierarchical threshold access structure. J. Vis. Commun. Image Represent. 2014, 25, 1093–1101. [Google Scholar] [CrossRef]
  12. Liu, Y.X.; Zhang, Y.Z.; Yang, C.N. Reducing file size and time complexity in secret sharing based document protection. Math. Biosci. Eng. 2019, 16, 4802–4817. [Google Scholar] [CrossRef]
  13. Kanso, A.; Ghebleh, M. An efficient lossless secret sharing scheme for medical images. J. Vis. Commun. Image Represent. 2018, 56, 245–255. [Google Scholar] [CrossRef]
  14. Li, P.; Liu, Z.; Yang, C.N. A construction method of (t, k, n)-essential secret image sharing scheme. Signal Process. Image Commun. 2018, 65, 210–220. [Google Scholar] [CrossRef]
  15. Wu, X.; Yang, C.N.; Zhuang, Y.T.; Hsu, S.C. Improving recovered image quality in secret Image sharing by simple modular arithmetic. Signal Process. Image Commun. 2018, 66, 42–49. [Google Scholar] [CrossRef]
  16. Lukac, R.; Plataniotis, K.N. Bit-level based secret sharing for image encryption. Pattern Recognit. 2005, 38, 767–772. [Google Scholar] [CrossRef]
  17. Wei, S.C.; Hou, Y.C.; Lu, Y.C. A technique for sharing a digital image. Comput. Stand. Interfaces 2015, 40, 53–61. [Google Scholar] [CrossRef]
  18. Yang, C.N.; Chen, C.H.; Cai, S.R. Enhanced Boolean-based multi secret image sharing scheme. J. Syst. Softw. 2016, 116, 22–34. [Google Scholar] [CrossRef]
  19. Yang, C.N.; Wu, C.H.; Yeh, Z.X.; Wang, D.; Kim, C. A new sharing digital image scheme with clearer shadow images. Comput. Stand. Interfaces 2017, 51, 118–131. [Google Scholar] [CrossRef]
  20. Liu, Y.X.; Yang, C.N.; Wu, S.Y.; Chou, Y.S. Progressive (k, n) secret image sharing schemes based on Boolean operations and covering codes. Signal Process. Image Commun. 2018, 66, 77–86. [Google Scholar] [CrossRef]
Figure 1. Blocks of ( 2 , 2 ) -SDIS: (a) secret block B, shadow blocks B ( 1 ) and B ( 2 ) (b) diagrammatical representation of Wei et al.’s ( 2 , 2 ) -SDIS with binary meaningful shadows.
Figure 1. Blocks of ( 2 , 2 ) -SDIS: (a) secret block B, shadow blocks B ( 1 ) and B ( 2 ) (b) diagrammatical representation of Wei et al.’s ( 2 , 2 ) -SDIS with binary meaningful shadows.
Electronics 08 00802 g001
Figure 2. Shadows of the proposed ( n , n ) -SDIS: (a) using Wei et al.’s ( 2 , 2 ) -SDIS for B ( j 1 ) and B ( j 2 ) (b) using Yang et al.’s ( 2 , 2 ) -SDIS for B ( j 1 ) and B ( j 2 ) .
Figure 2. Shadows of the proposed ( n , n ) -SDIS: (a) using Wei et al.’s ( 2 , 2 ) -SDIS for B ( j 1 ) and B ( j 2 ) (b) using Yang et al.’s ( 2 , 2 ) -SDIS for B ( j 1 ) and B ( j 2 ) .
Electronics 08 00802 g002
Figure 3. Block diagram of the proposed ( n , n ) -SDIS.
Figure 3. Block diagram of the proposed ( n , n ) -SDIS.
Electronics 08 00802 g003
Figure 4. Blocks for sharing true clor image: (a) 25-bit B T (b) 9-bit B r , B g , B b l .
Figure 4. Blocks for sharing true clor image: (a) 25-bit B T (b) 9-bit B r , B g , B b l .
Electronics 08 00802 g004
Figure 5. Block patterns: (a) a pixel with a color in C C I (b) the corresponding block B ( i ) in N S i (c) the corresponding 6 B 3 W block in N S i (d) the corresponding block in C S i .
Figure 5. Block patterns: (a) a pixel with a color in C C I (b) the corresponding block B ( i ) in N S i (c) the corresponding 6 B 3 W block in N S i (d) the corresponding block in C S i .
Electronics 08 00802 g005
Figure 6. Block patterns: (a) 9 color pixels with color C 1 C 9 in C C I (b) the corresponding block B ( i ) in N S i (c) the corresponding color block in C S i .
Figure 6. Block patterns: (a) 9 color pixels with color C 1 C 9 in C C I (b) the corresponding block B ( i ) in N S i (c) the corresponding color block in C S i .
Electronics 08 00802 g006
Figure 7. Five color cover images with photos of birds: (a) B C I 1 (b) B C I 2 (c) B C I 3 (d) B C I 4 (e) B C I 5 .
Figure 7. Five color cover images with photos of birds: (a) B C I 1 (b) B C I 2 (c) B C I 3 (d) B C I 4 (e) B C I 5 .
Electronics 08 00802 g007
Figure 8. Five color cover images with photos of birds: (a) C C I 1 (b) C C I 2 (c) C C I 3 (d) C C I 4 (e) C C I 5 .
Figure 8. Five color cover images with photos of birds: (a) C C I 1 (b) C C I 2 (c) C C I 3 (d) C C I 4 (e) C C I 5 .
Electronics 08 00802 g008
Figure 9. Two secret images: (a) S I 1 : 256-color Lena (b) S I 2 : true color Kaleidoscope.
Figure 9. Two secret images: (a) S I 1 : 256-color Lena (b) S I 2 : true color Kaleidoscope.
Electronics 08 00802 g009
Figure 10. Noise-like shadows of the proposed ( 3 , 3 ) -SDIS: (a) N S 1 (b) N S 2 (c) N S 3 .
Figure 10. Noise-like shadows of the proposed ( 3 , 3 ) -SDIS: (a) N S 1 (b) N S 2 (c) N S 3 .
Electronics 08 00802 g010
Figure 11. Binary meaningful shadows of the proposed ( 3 , 3 ) -SDIS: (a) B S 1 (b) B S 2 (c) B S 3 .
Figure 11. Binary meaningful shadows of the proposed ( 3 , 3 ) -SDIS: (a) B S 1 (b) B S 2 (c) B S 3 .
Electronics 08 00802 g011
Figure 12. Color meaningful shadows of the proposed ( 3 , 3 ) -SDIS: (a) C S 1 (b) C S 2 (c) C S 3 .
Figure 12. Color meaningful shadows of the proposed ( 3 , 3 ) -SDIS: (a) C S 1 (b) C S 2 (c) C S 3 .
Electronics 08 00802 g012
Figure 13. Color meaningful shadows of the proposed ( 3 , 3 ) -SDIS sharing a true color secret image: (a) C S 1 (b) C S 2 (c) C S 3 .
Figure 13. Color meaningful shadows of the proposed ( 3 , 3 ) -SDIS sharing a true color secret image: (a) C S 1 (b) C S 2 (c) C S 3 .
Electronics 08 00802 g013
Figure 14. Binary snd color meaningful shadows of the proposed: (a) B S 1 B S 4 (b) C S 1 C S 4 .
Figure 14. Binary snd color meaningful shadows of the proposed: (a) B S 1 B S 4 (b) C S 1 C S 4 .
Electronics 08 00802 g014
Figure 15. Binary snd color meaningful shadows of the proposed: (a) B S 1 B S 5 (b) C S 1 C S 5 .
Figure 15. Binary snd color meaningful shadows of the proposed: (a) B S 1 B S 5 (b) C S 1 C S 5 .
Electronics 08 00802 g015
Figure 16. Color meaningful shadows of ( 3 , 3 ) -SDIS by the approach of enhancing visual quality: (a) C S 1 (b) C S 2 (c) C S 3 .
Figure 16. Color meaningful shadows of ( 3 , 3 ) -SDIS by the approach of enhancing visual quality: (a) C S 1 (b) C S 2 (c) C S 3 .
Electronics 08 00802 g016
Figure 17. Color meaningful shadows and enlarged parts of cropped image area for ( 3 , 3 ) -SDIS: (a) using the original method (b) using the approach of enhancing visual quality.
Figure 17. Color meaningful shadows and enlarged parts of cropped image area for ( 3 , 3 ) -SDIS: (a) using the original method (b) using the approach of enhancing visual quality.
Electronics 08 00802 g017
Figure 18. The proposed ( 5 , 5 ) -SDIS using 8 B 1 W block (a) five color meaningful shadows (b) 256-color S I and its corresponding C P (c) the recovered 256-color S I 1 and color palette C P under ( n 1 ) -colluder attack.
Figure 18. The proposed ( 5 , 5 ) -SDIS using 8 B 1 W block (a) five color meaningful shadows (b) 256-color S I and its corresponding C P (c) the recovered 256-color S I 1 and color palette C P under ( n 1 ) -colluder attack.
Electronics 08 00802 g018
Table 1. Notations and Descriptions.
Table 1. Notations and Descriptions.
NotationDescription
C P a 256-color color palette
S I a secret image with the size with the size ( M × N ) pixels
C C I , B C I binary (black-and-white) over image and color cover image with the size ( M × N ) pixels
N S i n noise-like shadows with the size ( 3 M × 3 N ) (respectively, ( 5 M × 5 N ) ) subpixels for 256-color (respectively, true color) secret image, where i = 1 , 2 , , n
B S i binary meaningful shadows with the size ( 3 M × 3 N ) (respectively, ( 5 M × 5 N ) ) subpixels for 256-color (respectively, true color) secret image
C S i color meaningful shadows with the size ( 3 M × 3 N ) (respectively, ( 5 M × 5 N ) ) subpixels for 256-color (respectively, true color) secret image
Ba 3 × 3 -subpixel block B including 8-bit color index b 1 b 8 and one bit b 9 (Note: the bit b 9 in B is collected to covey the C P information for the proposed ( n , n ) -SDIS)
B r a 3 × 3 -subpixel block B r including the first three 8-tuples, ( r 1 r 8 ) , ( g 1 g 8 ) , and ( b l 1 b l 8 ) , are used to represent R , G and B color planes, and the other one bit in B r is p 9 .
B ( i ) a 3 × 3 -pixel block on shadow i, where i = 1 , 2 , , n , including 8-bit b 1 i b 8 i and one bit b 9 i . (Note: the ninth bit in every block B ( 1 ) (i.e., b 9 ( 1 ) ) of N S 1 is collected to covey the C P information for Wei et al.’s ( 2 , 2 ) -SDIS and Yang et al.’s ( 2 , 2 ) -SDIS)
x B y W x black subpixels and y white subpixels in a block
X , Y X and Y blocks have 6 B 3 W and 5 B 4 W subpixels, respectively
H ( ) Hamming weight function, the number of 1 in a binary vector
W ( ) Operation of Wei et al.’s ( 2 , 2 ) -SDIS, i.e., W ( B ) = B ( 1 ) B ( 2 ) where both are Y blocks
Y ( ) Operation of Yang et al.’s ( 2 , 2 ) -SDIS, i.e., Y ( B ) = B ( 1 ) B ( 2 ) where one is X block and the other is Y block
Table 2. Comparison of Three SDIS Schemes.
Table 2. Comparison of Three SDIS Schemes.
Wei et al.’s ( 2 , 2 ) -SDISYang et al.’s ( 2 , 2 ) -SDISThe Proposed ( n , n ) -SDIS
number of shadows22 n 3
structure of block Y block X and Y blocks X and Y blocks
percentage of block Y : 100 % X : 50 % , Y : 50 % X : 2 n 3 2 n , Y : 3 2 n
 region in color shadows revealing cover image R W = 5 9 R Y = 5.5 9 R P = 6 1.5 / n 9
R W < R Y R P
 contrast of binary meaningful shadows C W = 1 9 C Y = 2 9 C P = 3 3 / n 9
C W < C Y C P
enhancement of R P NoNoYes
embedding the data of color palette datahaving a problem for the color index 255using partitioned sets for some color indicesusing a simple approach by reducing Hamming weight
where to embed color palette datathe bit b 9 ( 1 ) in B ( 1 ) the bit b 9 ( 1 ) in B ( 1 ) the bit b 9 in the XOR-ed B
enhancing visual quality of color meaningful shadowsNoNoYes
encoding/decoding complexityXOR operationXOR operation; lookup tableXOR operation
securityprobability to recover B under ( n 1 ) -colluder P W = 1 C 9 5 P Y = 1 / C 9 5 + 1 / C 9 6 2 P P = 1 C 9 6 3 2 n ( 1 C 9 6 1 C 9 5 )
P W < P Y P P
probability to obtain C P under ( n 1 ) -colluder C P can be obtained from only one shadow C P can be obtained from only one shadow P C = ( 2 3 1 / 6 n ) 24

Share and Cite

MDPI and ACS Style

Yang, C.-N.; Sun, Q.-D.; Liu, Y.-X.; Wu, C.-M. A n-out-of-n Sharing Digital Image Scheme by Using Color Palette. Electronics 2019, 8, 802. https://doi.org/10.3390/electronics8070802

AMA Style

Yang C-N, Sun Q-D, Liu Y-X, Wu C-M. A n-out-of-n Sharing Digital Image Scheme by Using Color Palette. Electronics. 2019; 8(7):802. https://doi.org/10.3390/electronics8070802

Chicago/Turabian Style

Yang, Ching-Nung, Qin-Dong Sun, Yan-Xiao Liu, and Ci-Ming Wu. 2019. "A n-out-of-n Sharing Digital Image Scheme by Using Color Palette" Electronics 8, no. 7: 802. https://doi.org/10.3390/electronics8070802

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop