Ask Your Question

Revision history [back]

Image steganography

I read the book "Instant OpencCV Starter" and code the steganography (Create image C by copy 4 most significant bits of image A to 4 least significant bits of image B). The encode and decode work well when i run directly. But in the case of decode, when i save the steged image to file (e.g. steged.jpg) and then decode this file, the hidden image is not the same as when i run directly, there are some problems with the colors. Could any one help me with this, why decode the saved file is different from decode the Mat directly?

Image steganography

I read the book "Instant OpencCV Starter" and code the steganography (Create image C by copy 4 most significant bits of image A to 4 least significant bits of image B). The encode and decode work well when i run directly. But in the case of decode, when i save the steged image to file (e.g. steged.jpg) and then decode this file, the hidden image is not the same as when i run directly, there are some problems with the colors. Could any one help me with this, why decode the saved file is different from decode the Mat directly?