I need to implement a program that embeds text message inside an image (PNG or BMP it doesn't matter) using DCT matrix for hiding message. I read some articles but most of them very complex. Here is the basic steps:
- Break an image into 8x8 blocks (pixel intensity matrices).
- Do Discrete Cosine Transform (DCT) on each block. So we get 8x8 DCT coefficients matrix.
- Somehow insert a message into least significant elements in DCT coefficients matrix.
- Perform IDCT and get a normal image representation with secret message inside.
I don't understand what exactly I should do on 3rd step? Maybe there are some existing implementations of this technique in C# or Java?