CN114913049A - Shadow image understandable secret image sharing method and system based on color image - Google Patents

Shadow image understandable secret image sharing method and system based on color image Download PDF

Info

Publication number
CN114913049A
CN114913049A CN202210582669.0A CN202210582669A CN114913049A CN 114913049 A CN114913049 A CN 114913049A CN 202210582669 A CN202210582669 A CN 202210582669A CN 114913049 A CN114913049 A CN 114913049A
Authority
CN
China
Prior art keywords
channel
image
shadow
images
secret
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210582669.0A
Other languages
Chinese (zh)
Inventor
程静文
刘林涛
姜越
钟晓峰
骆胜阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
National University of Defense Technology
Original Assignee
National University of Defense Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by National University of Defense Technology filed Critical National University of Defense Technology
Priority to CN202210582669.0A priority Critical patent/CN114913049A/en
Publication of CN114913049A publication Critical patent/CN114913049A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/0021Image watermarking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10024Color image

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

The invention provides a shadow image understandable secret image sharing method based on a color image, which comprises the following steps of: acquiring 1 color secret image and n color carrier images; three-channel separation is respectively carried out on the color secret image and the n color carrier images; carrying out importance sequencing on the n corresponding single-channel carrier images; determining the initial value of the same total high bit number of each pixel point; distributing the initial value of the same total bit number of high order to each pixel point on the n corresponding single channel shadow images; screening and sharing the pixel values of all pixel points on the corresponding channel secret image; and synthesizing the n R channel shadow images, the corresponding G channel shadow image and the corresponding B channel shadow image to obtain n color shadow images. The invention provides a shadow image understandable secret image system based on a color image, a storage medium and electronic equipment. The color shadow image generated by the invention has good visual quality, and the comprehensibility of the shadow image is realized.

Description

Shadow image understandable secret image sharing method and system based on color image
Technical Field
The invention belongs to the technical field of image security processing, and particularly relates to a method and a system for sharing a understandable secret image of a shadow image based on a color image.
Background
The traditional image security protection technology, such as image encryption and image information hiding, can ensure the security in image transmission to a certain extent, and the image encrypted by using the image encryption technology is noise-like and is easy to cause suspicion when being transmitted on an open channel, so that an attacker can possibly damage, tamper or delete the original encrypted image. The image information hiding technology is to embed and hide secret information in a natural image carrier, and a generated image of the carrier with the secret information is similar to a normal natural image in perception, is not easy to be perceived by a third party in a transmission process, and can better reduce suspicion of a malicious attacker.
Secret image sharing is similar to an image encryption technology, secret information is encrypted through scrambling, replacing and other means to generate a plurality of shadow images and the shadow images are distributed to different participants, secret information can be recovered only when the shadow images held by the participants in an authorized set are collected, and unauthorized participants cannot recover the secret information by using the held shadow images. These features enable secret image sharing to have advantages not available from information hiding and image encryption techniques, such as the loss tolerance feature of recovering secrets when portions of the shadow image are lost. This makes secret image sharing more suitable for some application scenarios, such as block chaining, key distribution, distributed storage, digital watermarking, and identity authentication.
At present, more branches of research on secret image sharing include polynomial-based secret image sharing, visual secret image sharing and Chinese remainder theorem-based secret image sharing, which are respectively realized based on the sharing principles of polynomials, human visual characteristics, Chinese remainder theorem and the like.
In the polynomial secret sharing of the (k, n) threshold, firstly, a (k-1) degree polynomial on a number field P is constructed:
f(x)=a 0 +a 1 x+…+a k-1 x k-1 (modP);
in the sharing phase, the currently processed pixel value s of the secret image is made equal to the polynomial constant term a 0 . Coefficient a 1 ,a 2 ,...,a k-1 Taking random value on [0, P), x can be the serial number i of the ith participant, substituting into formula to obtain shadow pixel value SC i =f(x i ) Will sequence number x i And f (x) i ) And sending the sharing pair to the ith participant. When all the secret pixels are shared, n shadow images can be obtained.
In the recovery stage, for the pixel value s which needs to be recovered currently, when any k of n sharing pairs are obtained, k coefficients can be solved according to the Lagrange's interpolation theorem, and a constant term a 0 I.e. the recovered secret pixel values, while less than k shares the value to solve for an infinite number of solutions, no secret information is obtained.
For polynomial secret sharing, coefficient a 1 ,a 2 ,...,a k-1 Is a random value on [0, P), different random values can be taken to obtain different sharing values, therefore, the coefficient a 1 ,a 2 ,...,a k-1 The generated sharing value can be used as a random element in the sharing process for screening.
The main nature of the secret image sharing scheme provides guarantee for the security of the secret image to a certain extent, but the existing secret image sharing scheme still has partial problems to be solved. For example, in the conventional secret sharing scheme, shared values generated by a probabilistic sharing algorithm are uniformly distributed in a value range, if the conventional secret sharing scheme is directly used for sharing a secret image, the generated shadow image is a random noise image, the understandability and readability are lost while the information content is protected, the doubts of attackers are easily caused, and the disadvantage of information hiding is also relatively overcome. Shadow images it is understood that secret sharing schemes (MSIS) refer to a class of secret image sharing schemes that are capable of sharing images that produce meaningful shadow images. If the shadow image has understandability of a natural image, the characteristic of secret sharing is kept, the effect of hiding similar information can be achieved, an attacker is difficult to perceive the existence of secret information, tampering or interception caused by suspicion can be avoided to a certain extent, and meanwhile, storage management of a participant on the shadow image is facilitated. Thereby increasing the security of the shadow image and the secret information.
The current MSIS scheme for color images is to embed a shadow image similar to noise into a natural image to realize comprehensibility of the shadow image. In the scheme, three channels of the color image are used as independent three-layer gray images, and the shared values are randomly embedded into the three channels without considering the relevance among the three channels of the color image. These combined with information hiding schemes are limited by the embedding capacity, and there is mostly pixel expansion, which increases the bandwidth burden and is easily doubted by attackers. Most of these schemes therefore focus on reducing the shadow image or enlarging the embedding capacity, which may cause security problems and do not enable lossless recovery of the secret image.
Another scheme for implementing MSIS is to add a certain constraint condition during sharing, and use a random element for screening, so that the generated shadow pixel value is close to the carrier pixel value, and thus the shadow image is similar to the carrier image, so as to implement comprehensibility of the shadow image. Such schemes typically have no pixel dilation and can recover the secret image without loss. However, such MSIS schemes are based on a binary image or a grayscale image, influence of an internal structure of the image is not considered, visual quality of the binary image is poor, visual quality of a generated shadow image is not high, a color image has stronger information expression capability compared with the grayscale image, the color image is used more widely, how to realize comprehensibility of the shadow image while avoiding pixel expansion and try to improve quality of the shadow image when the color image is shared is a topic worthy of research.
Disclosure of Invention
One of the objects of the present invention is to provide a method for sharing a shadow image understandable secret image based on a color image, in which the color shadow image generated by the method for sharing a shadow image understandable secret image has good visual quality, does not cause pixel expansion, and can be restored without loss, thereby realizing comprehension of the shadow image.
Another object of the present invention is to provide a secret image sharing system capable of understanding a shadow image based on a color image.
It is a further object of the present invention to provide a storage medium.
The fourth objective of the present invention is to provide an electronic device.
In order to achieve one of the purposes, the invention adopts the following technical scheme.
A shadow image understandable secret image sharing method based on a color image comprises the following steps:
step one, obtaining 1 color secret image and n color carrier images;
step two, three-channel separation is carried out on the color secret image and the n color carrier images respectively to obtain a single-channel secret image and a single-channel carrier image set;
the single-channel secret image comprises an R-channel secret image, a G-channel secret image and a B-channel secret image;
the single-channel carrier image set comprises an R-channel carrier image set, a G-channel carrier image set and a B-channel carrier image set;
the number of R channel carrier images in the R channel carrier image set, the number of G channel carrier images in the G channel carrier image set and the number of B channel carrier images in the B channel carrier image set are all n;
thirdly, according to the pixel value of each pixel point, respectively carrying out importance sequencing on n corresponding single-channel carrier images in the R channel carrier image set, the G channel carrier image set and the B channel carrier image set;
setting the minimum number k of color shadow images required for recovering the color secret image to determine the initial value of the high-order same total bit number distributed to each pixel point of the n corresponding single-channel shadow images;
fifthly, distributing the initial value of the high-order same total bit number to each pixel point on the n corresponding single-channel shadow images according to an importance sorting result;
step six, according to a preset sharing serial number value and a preset distribution result, respectively screening and sharing pixel values of all pixel points on the R channel secret image, the G channel secret image and the B channel secret image to obtain n R channel shadow images, n G channel shadow images and n B channel shadow images;
and seventhly, synthesizing the n R channel shadow images, the corresponding G channel shadow image and the corresponding B channel shadow image to obtain n color shadow images.
Further, in step four, the initial value of the high-order same total bit number is:
Figure BDA0003664688240000051
wherein, b is the initial value of the same total bit number of high order; k is the number of color shadow images at least needed when the color secret image is recovered; w is a i And i is equal to 1, 2.
Further, in step five, the specific implementation process of the allocation includes:
step 51, equally dividing the initial value of the high-order same total bit number;
step 52, judging whether the equalized high-order same total bit number initial value has surplus, if so, redistributing the surplus bit numbers according to an importance sorting result, and entering a step six; if not, directly entering the step six.
Further, in the sixth step, the specific implementation process of screening and sharing includes:
step 61, setting an initial value of the sharing and screening times h as 0;
step 62, setting the initial value of the high-order same total bit number as b,
step 63, setting the initial value of the position serial number t of the pixel point in the color secret image as 1;
step 64, setting a number field [0, P), and randomly generating k-1 random values in the number field [0, P);
step 65, obtaining pixel values of pixel points at the t position of the single-channel secret image, sharing serial number values and k-1 random values, and calculating n single-channel shadow sub-pixel values corresponding to the pixel values at the t position of the single-channel secret image;
step 66, performing binary conversion on the n single-channel image sub-pixel values corresponding to the t-position pixel points and the pixel values of the t-position pixel points on the corresponding n same single-channel carrier images respectively, and then comparing the high-phase same-bit numbers;
step 67, judging whether the comparison result is the same as the corresponding distribution result, if so, outputting single-channel shadow pixel values at n t positions, and entering step 68; if not, let h be h +1, go to step 69;
step 68, judging whether all position pixel points in the single-channel secret image are shared, if so, outputting n identical single-channel shadow images, and entering a step seven; if not, let t be t +1, return to step 65;
step 69, judging whether h is equal to a threshold value, if so, making b equal to b-1, and returning to step 63; if not, randomly regenerating k-1 random values in the number field [0, P), and returning to the step 65.
Further, the P value is 257;
the threshold value is 4P k-1
In order to achieve the second purpose, the invention adopts the following technical scheme.
A shadow image understandable secret image sharing system based on a color image, the shadow image understandable secret image sharing system comprising:
the acquisition module is used for acquiring 1 color secret image and n color carrier images;
the three-channel separation module is used for performing three-channel separation on the color secret image and the n color carrier images respectively to obtain a single-channel secret image and a single-channel carrier image set;
the single-channel secret image comprises an R-channel secret image, a G-channel secret image and a B-channel secret image;
the single-channel carrier image set comprises an R-channel carrier image set, a G-channel carrier image set and a B-channel carrier image set;
the number of R channel carrier images in the R channel carrier image set, the number of G channel carrier images in the G channel carrier image set and the number of B channel carrier images in the B channel carrier image set are all n;
the importance ordering module is used for respectively ordering the importance of the n corresponding single-channel carrier images in the R channel carrier image set, the G channel carrier image set and the B channel carrier image set according to the pixel value of each pixel point;
the setting module is used for setting the minimum quantity k of the color shadow images required by recovering the color secret images so as to determine the initial value of the high-order same total bit number distributed to each pixel point of the n corresponding single-channel shadow images;
the distribution module is used for distributing the initial value of the high-order same total bit number to each pixel point on the n corresponding single-channel shadow images according to the importance sorting result;
the screening and sharing module is used for screening and sharing pixel values of all pixel points on the R channel secret image, the G channel secret image and the B channel secret image respectively according to a preset sharing serial number value and a preset distribution result to obtain n R channel shadow images, n G channel shadow images and n B channel shadow images;
and the synthesis module is used for synthesizing the n R channel shadow images, the corresponding G channel shadow image and the corresponding B channel shadow image to obtain n color shadow images.
Further, the allocation module includes:
the equipartition submodule is used for equipartition of the high-order same total bit number initial value;
the first judgment submodule is used for judging whether the equalized high-order total bit number initial value has surplus or not, if so, redistributing the surplus bit numbers according to an importance sorting result, and transmitting an integrated result of equalization and redistribution to the sharing module; if not, the average result is directly transmitted to the sharing module.
Further, the screening and sharing module includes:
the first setting submodule is used for setting the initial value of the sharing and screening times h to be 0;
a second setting submodule for setting the initial value of the high-order same total bit number as b,
the third setting submodule is used for setting the initial value of the position serial number t of the pixel point in the color secret image to be 1;
a fourth setting submodule, configured to set a number field [0, P), and randomly generate k-1 random values in the number field [0, P);
the calculation submodule is used for acquiring pixel values of t-position pixel points of the single-channel secret image, sharing serial number values and k-1 random values, and calculating n single-channel shadow sub-pixel values corresponding to the t-position pixel points of the single-channel secret image;
the binary conversion submodule is used for respectively carrying out binary conversion on the n single-channel shadow sub-pixel values corresponding to the t-position pixel points and the pixel values of the t-position pixel points on the corresponding n same single-channel carrier images so as to carry out high-phase same-bit number comparison;
the second judgment submodule is used for judging whether the comparison result is the same as the corresponding distribution result or not, if so, outputting single-channel shadow sub-pixel values at n positions and transmitting the single-channel shadow sub-pixel values to the third judgment submodule; if not, making h equal to h +1 for transmission to a fourth judgment sub-module;
the third judgment submodule is used for judging whether all position pixel points in the single-channel secret image are shared, if so, outputting n identical single-channel shadow images to be transmitted to the synthesis module; if not, enabling t to be t +1 so as to transmit to the computing submodule;
a fourth judgment submodule, configured to judge whether h is equal to a threshold, and if h is equal to the threshold, make b equal to b-1, so as to transmit the result to the third setting submodule; if not, then k-1 random values are randomly regenerated in the number field [0, P) for transmission to the computation submodule.
In order to achieve the third purpose, the invention adopts the following technical scheme.
A storage medium having computer program instructions stored thereon; the steps in the shadow image understandable secret image sharing method of any one of claims 1 to 5 are implemented by executing the computer program instructions.
In order to achieve the fourth purpose, the invention adopts the following technical scheme.
An electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the shadow image understandable secret image sharing method when executing the computer program.
The invention has the beneficial effects that:
three-channel separation is carried out on a color secret image and n color carrier images respectively, and importance ordering is carried out on n corresponding single-channel carrier images in an R channel carrier image set, a G channel carrier image set and a B channel carrier image set respectively according to the pixel value of each pixel point; the method comprises the steps of restoring the minimum quantity k of color shadow images required by color secret images through the preset setting to determine high-order same total bit number initial values distributed to each pixel point of n corresponding single-channel shadow images, and distributing the high-order same total bit number initial values to each pixel point of the n corresponding single-channel shadow images according to an importance sorting result; according to the preset sharing serial number value and the preset distribution result, the pixel values of all pixel points on the R channel secret image, the G channel secret image and the B channel secret image are respectively screened and shared to obtain n R channel shadow images, n G channel shadow images and n B channel shadow images, the constraint condition of adding high-order same total bit number is realized during sharing, the generated single channel shadow pixel value is close to the pixel value of the pixel point corresponding to the single channel carrier image, the visual quality of the synthesized color shadow image is good, pixel expansion is not generated, the secret image can be restored in a lossless mode, the color shadow image is similar to the corresponding color carrier image as far as possible, and comprehensibility of the shadow image is realized.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts according to the drawings:
FIG. 1 is a schematic flow chart of a method for sharing a secret image understandable by a shadow image based on a color image according to the present invention;
FIG. 2 is a block diagram of a secret image sharing scheme understandable based on color image shadow images according to an embodiment of the present invention;
fig. 3 is a diagram illustrating a single secret pixel value sharing process according to an embodiment of the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment provides a shadow image understandable secret image sharing method based on a color image, and as shown in fig. 1, the shadow image understandable secret image sharing method includes:
step one, obtaining 1 color secret image and n color carrier images.
This exampleThe color secret image S and the color carrier image C in (1) i The size of (a) is W × H, i ═ 1, 2.
And secondly, three-channel separation is carried out on the color secret image and the n color carrier images respectively to obtain a single-channel secret image and a single-channel carrier image set.
A color image is made up of R, G, B channels, each of which can be viewed as a gray scale image with pixel values in the image ranging from 0 to 255. A color image can therefore be seen as being made up of three grayscale images. And three channels of the color secret image are shared once respectively during sharing, namely, three times of single-channel secret picture sharing are completed. Therefore, the present embodiment performs three-channel separation on the color secret image and the n color carrier images, respectively, to perform three-time single-channel secret picture sharing.
In this embodiment, 1 color secret image and n color carrier images are separated into three layers R, G and B channels, and 1R-channel secret image, 1G-channel secret image, and 1B-channel secret image, and an R-channel carrier image set, a G-channel carrier image set, and a B-channel carrier image set are obtained. When the R-channel secret image is shared, the corresponding channel carrier image is n R-channel carrier images in the R-channel carrier image set. And when the G-channel secret image is shared, the corresponding channel carrier image is n G-channel carrier images in the G-channel carrier image set. And when the B-channel secret image is shared, the corresponding channel carrier image is n B-channel carrier images in the B-channel carrier image set.
And thirdly, according to the pixel value of each pixel point, respectively carrying out importance sequencing on the n corresponding single-channel carrier images in the R channel carrier image set, the G channel carrier image set and the B channel carrier image set.
The larger the pixel value of a pixel point at a certain position is, the higher the importance of a corresponding single-channel carrier image is. When sharing the t-position pixel point of the R-channel secret image, acquiring the pixel values of the same t-position pixel point in n R-channel carrier images
Figure BDA0003664688240000111
And carrying out importance sequencing according to the pixel value of the t-position pixel point to determine the importance sequencing of the n R-channel carrier images corresponding to the t-position pixel point. As in the example of the (2, 3) threshold, assume that the 3 pixel value magnitude relations of the same t position in 3R-channel carrier images are
Figure BDA0003664688240000112
Then the R channel carrier image is considered to be when sharing the secret pixel at the t position
Figure BDA0003664688240000113
Most importantly, R channel carrier image
Figure BDA0003664688240000114
Next, R-channel carrier image
Figure BDA0003664688240000115
The least important. Similarly, according to the pixel values of the pixel points at the t position of the n G-channel carrier images
Figure BDA0003664688240000121
The importance sequence of the pixel points at the t position corresponding to the n G channel carrier images is determined. According to the pixel values of the pixel points at the t positions of the n B-channel carrier images
Figure BDA0003664688240000122
The importance sequence of the pixel points at the t position corresponding to the n B channel carrier images is determined.
And step four, setting the minimum quantity k of the color shadow images required for recovering the color secret image to determine the initial value of the high-order same total bit number distributed to each pixel point of the n corresponding single-channel shadow images.
The initial value of the high-order same total bit number in this embodiment is:
Figure BDA0003664688240000123
wherein, b is the initial value of the same total bit number of high order; k is the number of color shadow images at least needed when the color secret image is recovered; w is a i And i is equal to 1, 2.
And fifthly, distributing the high-order same total bit number initial value to each pixel point on the corresponding n single-channel shadow images according to the importance sorting result.
For example, in the example of the threshold (2, 3), referring to fig. 2, the pixel point at the t position of the R channel secret image is shared, and it is assumed that the magnitude relation of 3 pixel values at the same t position in 3R channel carrier images is the same
Figure BDA0003664688240000124
When the same total number of high-order bits allocated to the t-position pixel points of the 3R single-channel shadow images is 7, 6 are evenly allocated to the t-position pixel points on the 3R single-channel shadow images, the same number of high-order bits of the t-position pixel points (namely the shadow pixel points) of the 3 corresponding R-channel shadow images is 2, 2 and 2 respectively, and the same number of high-order bits of the t-position pixel points (namely the shadow pixel points) of the 3 corresponding R-channel shadow images is 2, 2 and 2 according to the comparison result
Figure BDA0003664688240000125
Assigning the remaining unassigned 1-bit identical bit number to the most important R-channel carrier image
Figure BDA0003664688240000126
And the corresponding pixel point at the t position of the R channel shadow image, the high-phase same bit number distributed to 3 corresponding pixel points at the t position of the R channel shadow image by the pixel point at the t position of the R channel secret image is respectively 2, 2 and 3.
Similarly, the sharing of the secret image of the G channel and the secret image of the B channel is also distributed as above, and is not described here again.
In summary, the specific implementation process of the allocation in this step includes:
step 51, equally dividing the initial value of the high-order same total bit number;
step 52, judging whether the equalized high-order same total bit number initial value has surplus, if so, redistributing the surplus bit numbers according to an importance sorting result, and entering a step six; if not, directly entering the step six.
When the remaining number of bits is a (a is smaller than n), the first a R-channel carrier images with high importance are selected from the n R-channel carrier images and distributed. This is also true for n G-channel carrier images and n B-channel carrier images.
And step six, respectively screening and sharing the pixel values of all pixel points on the R channel secret image, the G channel secret image and the B channel secret image according to a preset sharing serial number value and a preset distribution result to obtain n R channel shadow images, n G channel shadow images and n B channel shadow images.
And during sharing, three channels of the color secret image are shared once respectively, and three-time single-channel picture sharing is completed. And when sharing each time, the secret information is the pixel value of one pixel point of the single-channel secret image, and after sharing is successful, the next pixel value is shared until all the pixel values are successfully shared. For example, a 256 × 256 color secret picture is shared 256 × 256 × 3 times. And sequentially taking the generated sharing values as single-channel shadow pixel values of corresponding positions. In the embodiment, a polynomial sharing principle is adopted, and a sharing threshold value is set to be (k, n) according to the number of color shadow images and color carrier images required for recovering the color secret image, wherein k is less than or equal to n.
For example, in the threshold sharing in (2, 3), when the generated shared values of the t-position pixel points on the R-channel secret image are 136, 80 and 199 respectively, and the pixel values of the t-position pixel points on the 3R-channel carrier images are 180, 120 and 219 respectively, the high-order bit numbers after conversion into the binary system of 136 and 180, 80 and 120, 199 and 219 are compared respectively, the comparison result is (2, 2, 3), whether the high-order bit numbers allocated to the t-position pixel points of the corresponding R-channel shadow image in the step five are the same or not is judged, if the high-order bit numbers are the same, the screening condition is met, and the shared values 136, 80 and 199 are output as the t-position shadow pixel values of the corresponding R-channel shadow image in 3 respectively. If not, discarding the group of sharing values, reselecting the random value, regenerating a group of new sharing values by utilizing the polynomial sharing principle, and comparing again until the generated sharing values meet the condition of (2, 2, 3). Referring to fig. 3, a specific implementation process of screening and sharing in this step includes:
step 61, setting an initial value of the sharing and screening times h as 0;
step 62, setting the initial value of the high-order same total bit number as b,
step 63, setting the initial value of the position serial number t of the pixel point in the color secret image as 1;
step 64, setting a number field [0, P), and randomly generating k-1 random values in the number field [0, P);
to achieve lossless recovery of the secret image, P in the number domain [0, P) is typically 257 (the smallest number of pixels greater than the maximum pixel value of 255).
Step 65, obtaining pixel values of pixel points at the t position of the single-channel secret image, sharing serial number values and k-1 random values, and calculating n single-channel shadow sub-pixel values corresponding to the pixel values at the t position of the single-channel secret image;
step 66, respectively performing binary conversion on the n single-channel image sub-pixel values corresponding to the t-position pixel points and the pixel values of the t-position pixel points on the corresponding n same single-channel carrier images, and then performing same high-order bit number comparison;
step 67, judging whether the comparison result is the same as the corresponding distribution result, if so, outputting single-channel shadow pixel values at n t positions, and entering step 68; if not, let h be h +1, go to step 69;
step 68, judging whether all position pixel points in the single-channel secret image are shared, if so, outputting n identical single-channel shadow images, and entering a step seven; if not, let t be t +1, return to step 65;
step 69, judging whether h is equal to a threshold value, if so, making b equal to b-1, and returning to step 63; if not, then k-1 random values are randomly regenerated in the number field [0, P), and the process returns to step 65.
This implementationThe threshold value in the example is generally 4P k-1
And seventhly, synthesizing the n R channel shadow images, the corresponding G channel shadow image and the corresponding B channel shadow image to obtain n color shadow images.
In the embodiment, three channels are separated from a color secret image and n color carrier images respectively, and according to the pixel value of each pixel point, n corresponding single-channel carrier images in an R channel carrier image set, a G channel carrier image set and a B channel carrier image set are subjected to importance sorting respectively; the method comprises the steps of restoring the minimum quantity k of color shadow images required by color secret images through the preset setting to determine high-order same total bit number initial values distributed to each pixel point of n corresponding single-channel shadow images, and distributing the high-order same total bit number initial values to each pixel point of the n corresponding single-channel shadow images according to an importance sorting result; according to the preset sharing serial number value and the distribution result, the pixel values of all pixel points on the R channel secret image, the G channel secret image and the B channel secret image are respectively screened and shared to obtain n R channel shadow images, n G channel shadow images and n B channel shadow images, the constraint condition of adding high-order same total bit number is realized during sharing, the generated shadow pixel value is close to the pixel value of the pixel point corresponding to the single-channel carrier image, the generated color shadow image has good visual quality, pixel expansion cannot be generated, the secret image can be restored in a lossless mode, the comprehension of the shadow image is realized, and the color shadow image is similar to the corresponding color carrier image.
The above embodiment can be implemented by the following embodiments:
another embodiment provides a shadow image understandable secret image sharing system based on a color image, the shadow image understandable secret image sharing system including:
the acquisition module is used for acquiring 1 color secret image and n color carrier images;
the three-channel separation module is used for performing three-channel separation on the color secret image and the n color carrier images respectively to obtain a single-channel secret image and a single-channel carrier image set;
the single-channel secret image comprises an R-channel secret image, a G-channel secret image and a B-channel secret image;
the single-channel carrier image set comprises an R-channel carrier image set, a G-channel carrier image set and a B-channel carrier image set;
the number of R channel carrier images in the R channel carrier image set, the number of G channel carrier images in the G channel carrier image set and the number of B channel carrier images in the B channel carrier image set are all n;
the importance ordering module is used for respectively ordering the importance of the n corresponding single-channel carrier images in the R channel carrier image set, the G channel carrier image set and the B channel carrier image set according to the pixel value of each pixel point;
the setting module is used for setting the minimum quantity k of the color shadow images required by recovering the color secret images so as to determine the initial value of the high-order same total bit number distributed to each pixel point of the n corresponding single-channel shadow images;
and the distribution module is used for distributing the initial value of the high-order same total bit number to each pixel point on the n corresponding single-channel shadow images according to the importance sorting result. The distribution module includes: the equipartition submodule is used for equipartition for the initial value of the high-order same total bit number; the first judgment submodule is used for judging whether the equalized high-order total bit number initial value has surplus or not, if so, redistributing the surplus bit numbers according to an importance sorting result, and transmitting an integrated result of equalization and redistribution to the sharing module; if not, the average result is directly transmitted to the sharing module.
And the screening and sharing module is used for screening and sharing the pixel values of the pixels on the R channel secret image, the G channel secret image and the B channel secret image respectively according to a preset sharing serial number value and a preset distribution result to obtain n R channel shadow images, n G channel shadow images and n B channel shadow images. The screening and sharing module comprises:
the first setting submodule is used for setting the initial value of the sharing and screening times h to be 0;
a second setting submodule for setting the initial value of the high-order same total bit number as b,
the third setting submodule is used for setting the initial value of the position serial number t of the pixel point in the color secret image to be 1;
a fourth setting submodule, configured to set a number field [0, P), and randomly generate k-1 random values in the number field [0, P);
the calculation submodule is used for acquiring pixel values of t-position pixel points of the single-channel secret image, sharing serial number values and k-1 random values, and calculating n single-channel shadow sub-pixel values corresponding to the t-position pixel points of the single-channel secret image;
the binary conversion submodule is used for respectively carrying out binary conversion on the n single-channel shadow sub-pixel values corresponding to the t-position pixel points and the pixel values of the t-position pixel points on the corresponding n same single-channel carrier images so as to carry out high-phase same-bit number comparison;
the second judgment submodule is used for judging whether the comparison result is the same as the corresponding distribution result or not, if so, outputting single-channel shadow sub-pixel values at n positions and transmitting the single-channel shadow sub-pixel values to the third judgment submodule; if not, making h equal to h +1 for transmission to a fourth judgment submodule;
the third judgment submodule is used for judging whether all position pixel points in the single-channel secret image are shared, if so, outputting n identical single-channel shadow images to be transmitted to the synthesis module; if not, enabling t to be t +1 so as to transmit to the computing submodule;
a fourth judgment submodule, configured to judge whether h is equal to a threshold, and if h is equal to the threshold, make b equal to b-1, so as to transmit the result to the third setting submodule; if not, then k-1 random values are randomly regenerated in the number field [0, P) for transmission to the computation submodule. And the synthesis module is used for synthesizing the n R channel shadow images, the corresponding G channel shadow image and the corresponding B channel shadow image to obtain n color shadow images.
The terms and formulas and their parameter definitions in the above embodiments can be used, and are not described in detail here.
Yet another embodiment provides a storage medium having a computer program stored thereon, where the computer program, when executed by a processor, implements the steps in a method for sharing a understandable secret image based on a shadow image of a color image according to the above embodiment.
Still another embodiment provides an electronic device, which includes a memory and a processor, where the memory stores a computer program, and the processor, when executing the computer program, implements the steps in the method for sharing a secret image understandable by a shadow image based on a color image provided in the foregoing embodiment. The electronic device comprises a processor, a memory, a communication interface, a display screen and an input device which are connected through a system bus. Wherein the processor of the electronic device is configured to provide computing and control capabilities. The memory of the electronic equipment comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the electronic device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, Near Field Communication (NFC) or other technologies. The display screen of the electronic equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the electronic equipment, an external keyboard, a touch pad or a mouse and the like.
It will be understood by those skilled in the art that the foregoing embodiments are merely block diagrams of portions related to the technical solutions disclosed in the present invention, and do not constitute a limitation on the electronic devices to which the solution of the present application is applied, and a specific electronic device may include more or less components than those shown in the drawings, or combine some components, or have different component arrangements.
Note that, the technical features of the above embodiments may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description in the present specification. The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not to be construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, and these are all within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A shadow image understandable secret image sharing method based on a color image is characterized by comprising the following steps:
step one, obtaining 1 color secret image and n color carrier images;
step two, three-channel separation is carried out on the color secret image and the n color carrier images respectively to obtain a single-channel secret image and a single-channel carrier image set;
the single-channel secret image comprises an R-channel secret image, a G-channel secret image and a B-channel secret image;
the single-channel carrier image set comprises an R-channel carrier image set, a G-channel carrier image set and a B-channel carrier image set;
the number of R channel carrier images in the R channel carrier image set, the number of G channel carrier images in the G channel carrier image set and the number of B channel carrier images in the B channel carrier image set are all n;
thirdly, according to the pixel value of each pixel point, respectively carrying out importance sequencing on n corresponding single-channel carrier images in the R channel carrier image set, the G channel carrier image set and the B channel carrier image set;
setting the minimum color shadow image number k required for recovering the color secret image to determine the high-order same total bit number initial value distributed to each pixel point of the single-channel shadow image corresponding to the n pieces of single-channel shadow images;
fifthly, distributing the initial value of the high-order same total bit number to each pixel point on the n corresponding single-channel shadow images according to an importance sorting result;
step six, according to a preset sharing serial number value and a preset distribution result, respectively screening and sharing pixel values of all pixel points on the R channel secret image, the G channel secret image and the B channel secret image to obtain n R channel shadow images, n G channel shadow images and n B channel shadow images;
and seventhly, synthesizing the n R channel shadow images, the corresponding G channel shadow image and the corresponding B channel shadow image to obtain n color shadow images.
2. The shadow image understandable secret image sharing method of claim 1, wherein in step four, the initial value of the high-order same total bit number is:
Figure FDA0003664688230000021
b is an initial value of high-order same total bit number; k is the number of color shadow images at least needed when the color secret image is recovered; w is a i And i is equal to 1, 2.
3. The shadow image understandable secret image sharing method according to claim 2, wherein in step five, the specific implementation process of the distribution includes:
step 51, equally dividing the initial value of the high-order same total bit number;
step 52, judging whether the equalized high-order same total bit number initial value has surplus, if so, redistributing the surplus bit numbers according to an importance sorting result, and entering a step six; if not, directly entering the step six.
4. The shadow image understandable secret image sharing method according to claim 2, wherein in the sixth step, the specific implementation process of screening and sharing includes:
step 61, setting an initial value of the sharing and screening times h as 0;
step 62, setting the initial value of the high-order same total bit number as b,
step 63, setting the initial value of the position serial number t of the pixel point in the color secret image as 1;
step 64, setting a number field [0, P), and randomly generating k-1 random values in the number field [0, P);
step 65, obtaining pixel values of pixel points at the t position of the single-channel secret image, sharing serial number values and k-1 random values, and calculating n single-channel shadow sub-pixel values corresponding to the pixel values at the t position of the single-channel secret image;
step 66, performing binary conversion on the n single-channel image sub-pixel values corresponding to the t-position pixel points and the pixel values of the t-position pixel points on the corresponding n same single-channel carrier images respectively, and then comparing the high-phase same-bit numbers;
step 67, judging whether the comparison result is the same as the corresponding distribution result, if so, outputting single-channel shadow pixel values at n t positions, and entering step 68; if not, let h be h +1, go to step 69;
step 68, judging whether all position pixel points in the single-channel secret image are shared, if so, outputting n identical single-channel shadow images, and entering a step seven; if not, let t be t +1, return to step 65;
step 69, judging whether h is equal to a threshold value, if so, making b equal to b-1, and returning to step 63; if not, randomly regenerating k-1 random values in the number field [0, P), and returning to the step 65.
5. The shadow image understandable secret image sharing method of claim 4, wherein the P value is 257;
the threshold value is 4P k-1
6. A shadow-image-understandable secret image sharing system based on a color image, the shadow-image-understandable secret image sharing system comprising:
the acquisition module is used for acquiring 1 color secret image and n color carrier images;
the three-channel separation module is used for performing three-channel separation on the color secret image and the n color carrier images respectively to obtain a single-channel secret image and a single-channel carrier image set;
the single-channel secret image comprises an R-channel secret image, a G-channel secret image and a B-channel secret image;
the single-channel carrier image set comprises an R-channel carrier image set, a G-channel carrier image set and a B-channel carrier image set;
the number of R channel carrier images in the R channel carrier image set, the number of G channel carrier images in the G channel carrier image set and the number of B channel carrier images in the B channel carrier image set are all n;
the importance ordering module is used for respectively ordering the importance of the n corresponding single-channel carrier images in the R channel carrier image set, the G channel carrier image set and the B channel carrier image set according to the pixel value of each pixel point;
the setting module is used for setting the minimum color shadow image number k required by recovering the color secret image so as to determine the initial value of the high-order same total bit number distributed to each pixel point of the single-channel shadow image corresponding to the n pieces of single-channel shadow images;
the distribution module is used for distributing the initial value of the high-order same total bit number to each pixel point on the n corresponding single-channel shadow images according to the importance sorting result;
the screening and sharing module is used for screening and sharing pixel values of all pixel points on the R channel secret image, the G channel secret image and the B channel secret image respectively according to a preset sharing serial number value and a preset distribution result to obtain n R channel shadow images, n G channel shadow images and n B channel shadow images;
and the synthesis module is used for synthesizing the n R channel shadow images, the corresponding G channel shadow image and the corresponding B channel shadow image to obtain n color shadow images.
7. The shadow image understandable secret image sharing system of claim 6, wherein the distribution module comprises:
the equipartition submodule is used for equipartition for the initial value of the high-order same total bit number;
the first judgment submodule is used for judging whether the equalized high-order total bit number initial value has surplus or not, if so, redistributing the surplus bit numbers according to an importance sorting result, and transmitting an integrated result of equalization and redistribution to the sharing module; if not, the average result is directly transmitted to the sharing module.
8. The shadow image understandable secret image sharing system of claim 7, wherein the screening sharing module comprises:
the first setting submodule is used for setting the initial value of the sharing and screening times h to be 0;
a second setting submodule for setting the initial value of the high-order same total bit number as b,
the third setting submodule is used for setting the initial value of the position serial number t of the pixel point in the color secret image to be 1;
a fourth setting submodule, configured to set a number field [0, P), and randomly generate k-1 random values in the number field [0, P);
the calculation submodule is used for acquiring pixel values of t-position pixel points of the single-channel secret image, sharing serial number values and k-1 random values, and calculating n single-channel shadow sub-pixel values corresponding to the t-position pixel points of the single-channel secret image;
the binary conversion submodule is used for respectively carrying out binary conversion on the n single-channel shadow sub-pixel values corresponding to the t-position pixel points and the pixel values of the t-position pixel points on the corresponding n same single-channel carrier images so as to carry out high-phase same-bit number comparison;
the second judgment submodule is used for judging whether the comparison result is the same as the corresponding distribution result or not, if so, outputting single-channel shadow sub-pixel values at n positions and transmitting the single-channel shadow sub-pixel values to the third judgment submodule; if not, making h equal to h +1 for transmission to a fourth judgment submodule;
the third judgment submodule is used for judging whether all position pixel points in the single-channel secret image are shared, if so, outputting n identical single-channel shadow images to be transmitted to the synthesis module; if not, enabling t to be t +1 so as to transmit to the computing submodule;
a fourth judgment submodule, configured to judge whether h is equal to a threshold, and if h is equal to the threshold, make b equal to b-1, so as to transmit the result to the third setting submodule; if not, then k-1 random values are randomly regenerated in the number field [0, P) for transmission to the computation submodule.
9. A storage medium, wherein the storage medium stores computer program instructions; the steps of the method for sharing a shadow image understandable secret image according to any one of claims 1 to 5 are implemented by executing the computer program instructions.
10. An electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the shadow image understandable secret image sharing method according to any one of claims 1 to 5 when executing the computer program.
CN202210582669.0A 2022-05-26 2022-05-26 Shadow image understandable secret image sharing method and system based on color image Pending CN114913049A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210582669.0A CN114913049A (en) 2022-05-26 2022-05-26 Shadow image understandable secret image sharing method and system based on color image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210582669.0A CN114913049A (en) 2022-05-26 2022-05-26 Shadow image understandable secret image sharing method and system based on color image

Publications (1)

Publication Number Publication Date
CN114913049A true CN114913049A (en) 2022-08-16

Family

ID=82769150

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210582669.0A Pending CN114913049A (en) 2022-05-26 2022-05-26 Shadow image understandable secret image sharing method and system based on color image

Country Status (1)

Country Link
CN (1) CN114913049A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113361353A (en) * 2021-05-28 2021-09-07 同济大学 Zebrafish morphological scoring method based on DeepLabV3Plus
CN114245116A (en) * 2021-11-29 2022-03-25 中山大学 Color image steganography method based on edge enhancement and channel correlation algorithm
CN114418818A (en) * 2021-12-15 2022-04-29 深圳先进技术研究院 Method and system for sharing and reconstructing secret image in permission grading manner

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113361353A (en) * 2021-05-28 2021-09-07 同济大学 Zebrafish morphological scoring method based on DeepLabV3Plus
CN114245116A (en) * 2021-11-29 2022-03-25 中山大学 Color image steganography method based on edge enhancement and channel correlation algorithm
CN114418818A (en) * 2021-12-15 2022-04-29 深圳先进技术研究院 Method and system for sharing and reconstructing secret image in permission grading manner

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈桂强;王丽琴;李玉鉴;: "基于拉格朗日插值多项式的彩色图像分存方案", 计算机测量与控制, no. 07, 25 July 2008 (2008-07-25) *

Similar Documents

Publication Publication Date Title
CN105847629B (en) A kind of reversible information hidden method of encrypted image
Liu et al. Reversible data hiding in encrypted images using chunk encryption and redundancy matrix representation
Sethi et al. A proposed novel architecture for information hiding in image steganography by using genetic algorithm and cryptography
CN104200424B (en) Difference conversion based (K, N) meaningful image sharing and recovering method
Bansod et al. Modified BPCS steganography using Hybrid cryptography for improving data embedding capacity
Yi et al. Parametric reversible data hiding in encrypted images using adaptive bit-level data embedding and checkerboard based prediction
Houssein et al. An image steganography algorithm using haar discrete wavelet transform with advanced encryption system
US10853917B2 (en) Color image authentication method based on palette compression technique
Chang et al. A sudoku-based secret image sharing scheme with reversibility
Anbarasi et al. Secured secret color image sharing with steganography
Xu et al. Reversible data hiding in encrypted images with separability and high embedding capacity
CN112422269A (en) Combined chaotic pseudo-random number generator and digital image encryption method thereof
Wang et al. TPE-ISE: approximate thumbnail preserving encryption based on multilevel DWT information self-embedding
Ren et al. Reversible data hiding scheme in encrypted images based on homomorphic encryption and pixel value ordering
Biswas et al. Digital image steganography using dithering technique
CN112529974A (en) Color visual password sharing method and device for binary image
CN112330551A (en) Remote sensing image outsourcing noise reduction method based on secret sharing
CN114998170A (en) Reversible secret image sharing method and system based on palette image
Chiu et al. An XOR-based progressive visual cryptography with meaningful shares
CN114782563B (en) Secret image sharing method and system for JPEG image
Teotia et al. Enhancing audio and video steganography technique using hybrid algorithm
CN114913049A (en) Shadow image understandable secret image sharing method and system based on color image
Wang et al. A novel (n, n) secret image sharing scheme based on Sudoku
Kukreja et al. A secure reversible data hiding scheme for digital images using random grid visual secret sharing
Hu et al. Reversible secret image sharing with steganography and dynamic embedding

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination