필터 지우기
필터 지우기

how can i embedding secret image into transformed (integer wavelet ) cover image.

조회 수: 3 (최근 30일)
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.

답변 (1개)

Walter Roberson
Walter Roberson 2016년 11월 26일
편집: Walter Roberson 2016년 11월 26일
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);

Community Treasure Hunt

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

Start Hunting!

Translated by