Embed new message to a image

Embed new message to a image

4 Comments

I understanding is: We have a image, then we have matrix of it. Then we calculate the quantized DCT coeffcient. Then add something to this image, then we have a new quantized DCT coefficient? Am I correct of understanding above sentence. Any idea or sample code or reference link to do that?
I went through these 152 posted questions, I did not find the suitable one for my questions? Could you provide me more information. Thanks
Try again. I went through and tagged more that were missing the tag. However, with there being over 500 questions about steganography, I got tired and gave up after about 100.

Sign in to comment.

Answers (1)

Image Analyst
Image Analyst on 10 Jan 2016
I'm not using DCT, but I attach some hiding demos for you. One to encode text and one to encode images.
P.S. We need to be careful about what code we share, and what language we use because the Mathworks is very cautious about hosting anything that can be considered encryption or steganography (I know from personal experience).

8 Comments

You can use dct2(), then do LSB watermarking on one or more of the coefficient arrays, and then idct2().
matlabgeek
matlabgeek on 11 Jan 2016
Edited: matlabgeek on 11 Jan 2016
Hi Image Analyst, For your hide_text_in_image.m, when you insert hidden string into image, how do you check if you insert successfully since we cannot see the inserted string using our eyes
Hi Walter,
Do you have sample code to do that? Thanks
Insertion is always successful if the array is changed. Whether the insertion is in the right place is a different matter.
If you run my demos, you see I first hide stuff, then you observe that you cannot see the hidden stuff, then I recall it and get the exact stuff that I hid, so that's how I check that I hid it successfully.
Hi Image Analst, "If you run my demos, you see I first hide stuff, then you observe that you cannot see the hidden stuff, then I recall it and get the exact stuff that I hid, so that's how I check that I hid it successfully."
You have two files: hide_text_in_image.m and LSB_Watermarking.m. Which file do you refer to in your sentences. Thanks
Both of them. Both demos first hide, then recover.
For that other person's question in your link, I doubt it's still a problem for them after 7 months of no activity. Anyway, I don't research compression methods. It's not worth my time when I can just use built in compression methods, like imwrite(), that other people have already written and perfected.

Sign in to comment.

Asked:

on 10 Jan 2016

Edited:

on 11 Feb 2016

Community Treasure Hunt

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

Start Hunting!