Wavelet Transform energy preservation

1 view (last 30 days)
Brian
Brian on 21 Nov 2014
Commented: Brian on 25 Nov 2014
Some brief understanding of this topic is required as I describe my problem. In Wavelet image compression, one has two main components: an image and a Wavelet matrix. An important property of wavelets is that its inverse is also its transpose. Here are the matrices we're using * I=('kochflake.png'); * T1 is a 256x256 matrix whose inverse is its transpose * W=T1*double(I)*transpose(T1); When we compute W, we are not supposed to lose or gain energy. Here is our problem. Images are often of type uint8, and when computing many (large) numbers, the computer asks that the data be converted to double. I have tested these two different types and found that they have different energies.
*energy is defined as the sum of the squared elements of a matrix.
For image compression, this understanding is key in reducing data space required by the computer. So we come down to two unique problems:
#1 Which sumsqr algorithm is the correct one? uint8 method or double? #2 Why, when we run the program, do we get different energies for I and W?
  2 Comments
Brian
Brian on 24 Nov 2014
Anyone with experience computing energy of an image?
Brian
Brian on 25 Nov 2014
Is this an impossible question to answer?

Sign in to comment.

Answers (0)

Categories

Find more on Denoising and Compression 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!