Skip to main content
. 2022 Feb 24;22(5):1773. doi: 10.3390/s22051773
Algorithm 2: Watermark and secret data extraction from Stego-Image
INPUT: Stego Image “S”
Step: 1 Let “S” be the received stego image sized (M × 2N).
Step: 2 Extract the original image “I” of size (M × N) from the seed pixels.
Step: 3
Technique-1: Extract the data embedded in the three least significant bits of each pixel.
Technique-2: Reverse the boundary conditions deployed during the process of embedding and extract the last three bits from each non-seed pixel
Step: 4 Save the decimal equivalents in a data extraction row matrix.
Step: 5 Convert the matrix into a binary row with the help of decimal to binary conversion.
Step: 6 Reshape the matrix to a 48-column matrix and extract the 48th column, which contains the data of the fragile watermark.
Step:7 Reshape the 48th column bits obtained in step 6 into a (64 × 64) binary matrix, which is then extracted fragile watermark.
Step:8 Reshape the remaining 47 columns matric obtained in step 6 into a row matrix to yield the embedded secret. Apply AES-128 decryption to obtain the actual secret information.
OUTPUT: Original Image “I”, Watermark “W”, and Secret Data “D”