This demo lets the user type in a text message, choose an image to hide the message in (from the list of demo images shipped with MATLAB), and choose the bit plane to encode the message in. It converts the message string into ASCII code and then into a binary string. It assigns the bits to the selected bit plane of the image pixels starting at the upper left pixel and going down the column(s). Because the text is encoded in ASCII and mixed with the gray levels bits, it's not noticeable.
Image Analyst (2022). Encoding text into image gray levels (https://www.mathworks.com/matlabcentral/fileexchange/54155-encoding-text-into-image-gray-levels), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!