Skip to main content
. 2023 Mar 6;10(3):333. doi: 10.3390/bioengineering10030333
Algorithm 2: Extraction
1: Retrieve the compressed image from the medical database and perform wavelet decompression.
trans = decompress (Z)
2: Apply Inverse DWT (IDWT).
it=abIDWTa,b2a/2ψ2atb (3)
3: Extract the red, blue, and green components from the reconstructed image, and combine them.
4: Make the image matrix traversable by adding an extra row or column and pad with the value ‘256′.
5: Apply the KT to extract the LSB values from the pixels of the image traversing in an ‘L’ pattern.
6: Delete the extra padded row or column.
7: Convert the obtained binary bits to ASCII values and the character.
Binary (D) = ASCII (D) = char (D) = D
8: Update the patient data = D and medical image = X.