Ask Your Question
0

Image steganography

asked 2014-06-09 00:28:59 -0600

ho__oh gravatar image

updated 2020-12-15 10:04:00 -0600

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?

edit retag flag offensive close merge delete

Comments

1

The JPG is a lossy format, so saving in JPG will alter your image to get a better compression ratio.

For this application use TIFF or PNG losless formats.

kbarni gravatar imagekbarni ( 2014-06-10 03:24:25 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-06-16 11:26:03 -0600

ho__oh gravatar image

Thank you, It works now!

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-06-09 00:28:59 -0600

Seen: 1,107 times

Last updated: Jun 09 '14