how can i embedding secret image into transformed (integer wavelet ) cover image.
2 views (last 30 days)
Show older comments
I use lwt2(image,'haar') to decompose an image to approximation matrix and detail coefficients. values in detail coefficients are integer(negative and positive).
I use dec2bin(d,n) function to convert a integer to binary, but detail coefficients values are negative and positive, so this function release an error for negative numbers.
how i can decompose an image to positive matrices or how i convert a negative number to binary? i do this work for a course project for steganography.
thanks.
0 Comments
Answers (1)
Walter Roberson
on 26 Nov 2016
Edited: Walter Roberson
on 26 Nov 2016
d_int = int16(d);
d_uint = typecast(d_int, 'uint16');
Now do your bitsets or dec2bin or whatever, altering d_uint. Then
d_int = typecast(d_uint, 'int16');
d = double(d_int);
0 Comments
See Also
Categories
Find more on Wavelet Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!