如何将一些文本信息封装在图像中并使用 MATLAB 提取它?
new_img = convert(img, text);
(img, text) = convert_back(new_img);
有人可以用 MATALB 的内置图像来说明吗?
new_img = convert(img, text);
(img, text) = convert_back(new_img);
Can someone illustrate with a built-in image of MATALB?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我相信您正在寻找隐写术。您可以从 LSB 隐写术 的 MATLAB 实现开始。
进行 LSB 隐写术的一种简单方法是获取无损压缩图像并设置每个分量(R、G、B)的 LSB。然后,对于 m x n 图像,您将获得 3mn 位来存储信息。由于您正在修改 LSB,因此差异不会图像中可感知。
更新
所以我决定编写一个小型、低效但具有示范性的示例:
I believe you're looking for steganography. You can start with this MATLAB implementation of LSB steganography.
A simple way of doing LSB steganography is to take an lossless-compressed image and set the LSB of each component (R,G,B). Then for a m x n image you get 3mn bits to store information in. Since you're modifying the LSB, the difference will not be perceivable in the image.
Update
SO I decided to code up a small, inefficient but demonstrative example: