Method and device for imbedding and extracting watermark in digital image
A digital image, embedding watermark technology, applied in the field of information hiding and image steganography, can solve problems such as hiding, and achieve the effect of resisting steganalysis and good steganalysis
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0111] Embodiment 1, the method for embedding a watermark in a digital image:
[0112] 1. Obtain the grayscale image “Man” as shown in FIG. 2A , the size of which is 512×512.
[0113] 2. Obtain the watermark bit stream string composed of 0 and 1 whose length is 512×512-1=262143:
[0114] W=(W 1 , W 2 ,...,W 262143 ).
[0115] 3. Sort all the pixels of the grayscale image from left to right and then from top to bottom, and then divide the first 262143 pixels into 262143÷3=87381 groups according to the arrangement order, and each group contains three pixels. Assume that the pixel values of the three pixels contained in the i-th pixel group are X i,1 、X i,2 and x i,3 , thus obtaining the pixel value signal sequence,
[0116] x 1 , X 2 ,...,X 87381
[0117] The pixel value signal labeled i is X i =(X i,1 , X i,2 , X i,3 ), i ∈ {1, 2, ..., 87381}.
[0118] 4. Divide the watermark bit stream string W into 262143÷3=87381 groups, each group contains three bit stream...
Embodiment 2
[0221] Embodiment 2, the method for extracting watermark in digital image:
[0222] 1. Obtain a grayscale image embedded with a watermark as shown in FIG. 2B , the size of which is 512×512.
[0223] 2. Group all or part of the pixels of the grayscale image in the same way as embedding the watermark, and a total of 87381 groups are obtained, and each group contains three pixels. Assume that the pixel values of the three pixels contained in the i-th pixel group are Y in turn i,1 , Y i,2 and Y i,3 , where i ∈ {1, 2, ..., 87381}.
[0224] 3. Calculate the pixel value signal,
[0225] Y i =(Y i,1 , Y i,2 , Y i,3 )
[0226] with a digital signal,
[0227] V=(V 1 , V 2 , V 3 )=(1, 2, 3) and determine the watermark signal according to the calculated inner product. Specifically, first calculate,
[0228] H=Y i,1 ·V 1 +Y i,2 ·V 2 +Y i,3 ·V 3 =Y i,1 +2Y i,2 +3Y i,3 ;
[0229] Then calculate H divided by 2 3 Get the remainder, i.e. find M∈{0,1,...,7} such that,...
Embodiment 3
[0267] Use the method for embedding watermark described in the present invention and select the digital signal V=(1,2,4,8,15) that satisfies the requirements, for the gray levels shown in Fig. 2A and Fig. 3, Fig. 4, Fig. 5 and Fig. 6 The image is respectively embedded with a watermark bit stream string composed of 0 and 1 with a length of 512×512-4=262140. This process makes the average watermark embedding amount of each pixel of the image be (512×512-4) / (512×512 ) ≈ 1, the average change of the pixel value of each point in the image is 0.3343, 0.3252, 0.3259, 0.3251 and 0.3250, which are consistent with the theoretical value of 0.325. Note that the selection of the vector S representing the modular residual class corresponding to the digital signal V=(1,2,4,8,15) satisfying the requirements is as follows:
[0268] M
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com