| Algorithm 2: Extraction | ||
| 1: Retrieve the compressed image from the medical database and perform wavelet decompression. trans = decompress (Z) | ||
2: Apply Inverse DWT (IDWT).
| ||
| 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. |