image thumbnail

Encoding text into image gray levels

version 1.0.0.0 (13.9 KB) by Image Analyst
Lets the user hide a text string into the lowest bits of image pixels so that it is unnoticeable.

1.7K Downloads

Updated 11 Dec 2015

View License

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.

Cite As

Image Analyst (2021). 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
Created with R2015b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!