Click here to Skip to main content
15,672,129 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi friends.

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.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900