Question

Wavelets. (12 p) (a.) Explain some of the advantages of wavelet transformation.   &nbs...

Wavelets. (12 p)

(a.) Explain some of the advantages of wavelet transformation.

            (b) Considering Haar wavelet transformation how the compression ratio is achieved?

            (c) Consider the following values of 8 pixels:

{x3, i} = {18, 16, 20, 26, 10, 8, 12, 25}, 0 < i < 7

Perform all Haar steps to calculate {x2, i}, {x1, i}, {x0, i}.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

a)

A Haar wavelet is the simplest type of wavelet. In discrete form, Haar wavelets are related to a mathematical operation called the Haar transform. The Haar transform serves as a prototype for all other wavelet transforms. Like all wavelet transforms, the Haar transform decomposes a discrete signal into two subsignals of half its length. One subsignal is a running average or trend; the other subsignal is a running difference or fluctuation. The Haar wavelet transform has a number of advantages

• It is conceptually simple.

• It is fast.

• It is memory efficient, since it can be calculated in place without a temporary Array.

• It is exactly reversible without the edge effects that are a problem with other Wavelet transforms. The Haar transform also has limitations which can be a problem with for some applications. In generating each of averages for the next level and each set of coefficients, the

Haar transform performs an average and difference on a pair of values. Then the algorithm shifts over by two values and calculates another average and difference on the next pair. The high frequency coefficient spectrum should reflect all high frequency changes. The Haar window is only two elements wide. If a big change takes place from an even value to an odd value, the change will not be reflected in the high frequency coefficients. The audio de-noising by Haar wavelet is not always so effective, because the transform can’t compress the energy of the original signal into a few high-energy values lying above the noise threshold. Also if we try to use the Haar wavelet for threshold compression of audio signal, we get poor results. So Haar wavelet transform is not useful in compression and noise removal of audio signal processing. Haar 2-tap wavelet can be used to perform the Haar wavelet transforms.

b)

System operation a) Convert the image in the matrix form: In the computer image is stored in the form of array of pixels. These pixel values are ranging from zero (for black) to some positive number (for white). In order to transform a matrix representing an image using Haar Wavelet Transform. We will first discuss the method of transforming vectors called averaging and differencing. Consider a pixel matrix P representing 8x8 image.

576 704 1152 1280 1344 1472 1536 1536 576 60 1216134 1536 1600600 704 640 1156 1088 1344 1408 1536 1600 768 832 1216 1472 147

b) Calculate the row-column transformed matrix (T) To demonstrate how wavelet transform works we first describe transforming data string called averaging and differencing. To understand what it actually does we treat each row as separate data string and the final results are:

576 704 1152 1280 1344 1472 1536 1536 640 1216 1408 1536 64 -64 -64 928 1472 288 64 64 64 -64 200 -272 288 64 64 64 64 1

Since the data string has length 2^3=8, there are three steps in transform process. The first four numbers in the second row are the averages of pairs in first row. Similarly, the first two numbers in the third row are the averages of those four averages taken two at a time and the first entry in the last row is the average of the preceding two computed averages. The remaining numbers, shown in bold, measure deviations from the various averages. The first from the first elements of the pairs that gave rise to them: subtracting 640, 1216, 140, 1536 from 576, 1152, 1344, 1536,element by element yields 64, 64, 64 and 0. These are called detail coefficients. They are repeated in each subsequent row of the table.The third and fourth entries in the third row are obtained by subtracting the first and second entries in that row from the first elements of the pairs that start row two subtracting 928, 1472 from 640,1408 element by element yields 288, 64.These two new detail coefficients are also repeated in each subsequent row of the table. Finally, the second entry in the last row,272 is the detail coefficient obtained by subtracting the overall average 1200 from the 928 that starts row three. Averaging and differencing is a reversible process. Here we have lost nothing during transformation. After completing this process on all rows, we move forward in doing the same transformation on columns. The final result is a new 8x8 matrix T, called the Haar wavelet transform of P.

Applying the averaging and differencing technique to P we get the transformed matrix T as follows:

212 306-14654 246840 4 -50-10-20 24 0 72-16 K?38.PA 68 48.M 30, -32 168-486 16 S161616 16 28-16-161616ó -8 44 36 0 80-16 16 0

This matrix has one overall average value in the top left hand corner, and 63 detail elements The point of the wavelet transform is that regions of little variation in the original data manifest themselves as small or zero elements in the wavelet transformed version. The 0's in T are due to the occurrences of identical adjacent elements in P , and the - 2; -4, and 4 in T can be explained by some of the nearly identical adjacent elements in P . A matrix with a high proportion of zero entries is said to be sparse

The real pay-off in the wavelet transmission game is not so much the expectation of sparsity of the transformed matrices, it's the fact that we can fiddle with the \mostly detail" versions to make lots of entries zero: we can alter the transformed matrices, taking advantage of \regions of low activity," and then apply the inverse wavelet transform to this doctored version, to obtain an approximation of the original data Thus we arrive at the door of wavelet compression: Fix a nonnegative threshold value ε and decree that any detail coefficient in the wavelet transformed data whose magnitude is less than or equal to ε will be reset to zero (hopefully, this leads to a relatively sparse matrix), then rebuild an approximation of the original data using this doctored version of the wavelet transformed data. The surprise is that in the case of image data, we can throw out a sizable proportion of the detail coefficients in this way and obtain visually acceptable results. This process is called lossless compression when no information is lost (e.g. if ε =0) otherwise it's referred to as lossy compression

Thresholding: For lossy image compression, we fix a non negative thresholding value and any detail coefficient wavelet data in the transformed matrix whose value is less than or equal to thresholding value is set to the zero. A matrix with high proportion of zero entries is said to be sparse. In lossy compression the transformed matrix is sparser than original

For the instant, we set a thresholding value i.e. ε =20. That means we reset the values in transformed matrix which are less than or equal to 20 to zero. We get the doctored matrix1212-306-146-54 24 -68-400 36 90 0 D- 24 0 72 0 8238.PA 68ぷ.钢32 56 0 0 32 0 0 -48 80 0

Applying the inverse wavelet transform to D, we get this reconstructed approximation R

R= 742 694 1 178 1074 1344 1424 1540 1540 776 //6 /60 勓ว้เ ร【งร์เ 135.4 14:38 1610 1610 456 760 668 676 1278 1422 1594 1594

The compression ratio is 99.5733

For application based knowlede you can refer to this link

http://aix1.uottawa.ca/~jkhoury/haar.htm

c) the algorithm is as follows

To calculate the Haar transform of an array of n samples:

  1. Treat the array as n/2 pairs called (a, b)
  2. Calculate (a + b) / sqrt(2) for each pair, these values will be the first half of the output array.
  3. Calculate (a - b) / sqrt(2) for each pair, these values will be the second half.
  4. Repeat the process on the first half of the array.
    (the array length should be a power of two)

The haar transform for given example is as follows

(18+16)/2, (20+26)/2, (10+8)/2, (12+25)/2 (18-16)/2, (20-26)/2, (10-8)/2, (12-25)/2

18, 16, 20, 26, 10, 8, 12, 25

24.040 32.527 12.728 26.163 1.414 -4.243 1.414 -9.192

39.998 27.500 -6.001 -9.924 1.414 -4.243 1.414 -9.192

47.728 8.837 -6.001 -9.924 1.414 -4.243 1.414 -9.192

Add a comment
Know the answer?
Add Answer to:
Wavelets. (12 p) (a.) Explain some of the advantages of wavelet transformation.   &nbs...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Consider the following set of dependent and independent variables. Using technology, check for the presence of...

    Consider the following set of dependent and independent variables. Using technology, check for the presence of multicollinearity. If multicollinearity is present, take the necessary steps to eliminate it. у X1 12 2 9 5 13 5 14 8 22 7 26 11 25 16 34 20 24 39 37 22 X2 15 10 13 10 2 8 7 4 8 5 X3 5 15 9 12 18 17 23 20 27 30 Select the correct choice and, if necessary, fill...

  • Please use Excel, and show all functions. 3. Answer the following question for where Y has...

    Please use Excel, and show all functions. 3. Answer the following question for where Y has been regressed on X1, X2, and X3. Use the linear regression output in the Excel file. Your answers should be rounded to 2 decimal places. a. What is the equation for the line of best fit or regression line? b. The proportion is for the amount of the variability of Y that is explained or accounted for by the model. C. The correlation between...

  • Reserve Problems Chapter 12 Section 1 Problem 11 An article in Technometrics (1974, Vol. 16, pp....

    Reserve Problems Chapter 12 Section 1 Problem 11 An article in Technometrics (1974, Vol. 16, pp. 523-531) considered the following stack-loss data from a plant oxidizing ammonia to nitric acid. Twenty-one daily responses of stack loss (the amount of ammonia escaping) were measured with air flow X1, temperature x2, and acid concentration X3. y 42 80 27 89 37 80 27 88 37 75 25 90 28 62 24 87 18 62 22 87 18 62 23 87 19 62...

  • Python 1 import matplotlib.pyplot as plt 2 import numpy as np 3 4 abscissa = np.arange(20) 5 plt....

    python 1 import matplotlib.pyplot as plt 2 import numpy as np 3 4 abscissa = np.arange(20) 5 plt.gca().set_prop_cycle( ’ color ’ , [ ’ red ’ , ’ green ’ , ’ blue ’ , ’ black ’ ]) 6 7 class MyLine: 8 9 def __init__(self, * args, ** options): 10 #TO DO: IMPLEMENT FUNCTION 11 pass 12 13 def draw(self): 14 plt.plot(abscissa,self.line(abscissa)) 15 16 def get_line(self): 17 return "y = {0:.2f}x + {1:.2f}".format(self.slope, self.intercept) 18 19 def __str__(self):...

  • All Greens is a franchise store that sells house plants and lawn and garden supplies. Although All Greens is a franchise, each store is owned and managed by private individuals. Some friends have aske...

    All Greens is a franchise store that sells house plants and lawn and garden supplies. Although All Greens is a franchise, each store is owned and managed by private individuals. Some friends have asked you to go into business with them to open a new All Greens store in the suburbs of San Diego. The national franchise headquarters sent you the following information at your request. These data are about 27 All Greens stores in California. Each of the 27...

  • 3. Consider the following plot for TCP window size as a function of time. Some of...

    3. Consider the following plot for TCP window size as a function of time. Some of the data points are indicated by the bullets below. Congestion Window Size (Segments) 45 21 35 S1 1.5 110 Transmission Round 2 4 6 8 10 12 14 16 18 20 22 24 26 (a) Identify the loss events that are detected by TCP. Determine when and how each loss is detected by TCP and mention the next phase after each loss. (b) State...

  • I could really use some help. 8. The relationship between marginal and average costs Consider the...

    I could really use some help. 8. The relationship between marginal and average costs Consider the following scenario to understand the relationship between marginal and average values. Suppose Eric is a professional basketbali player, and his game log for free throws can be summarized in the following table. Fill in the columns with Eric's free-throw percentage for each game and his overall free-throw average after each game. Percentage 75 75 2/8EEEEE8/16 2/4 8/10 8/10 10/20 18/30 26/40 On the following...

  • Matlab Regula Falsi Method A zero of f(x) = x^2 -4x-12.2 is known to exist on...

    Matlab Regula Falsi Method A zero of f(x) = x^2 -4x-12.2 is known to exist on the interval [1.2 , 2.2 , 3.2,...9.2] and respective right endpoints x1 =[2.2 ,3.2, 4.2....10.2], find the sub-interval in which the zero exists. Set the left endpoint of this sub-interval =a and the right endpoint=b With tolerance of 10^-9, use the Regular Falsi method to compute the root of (f) in [a,b] User input is required at ##### CONTENTS Close Courses LMS Integration Documentation...

  • Please answer and explain the steps involved in each. 20. The rate of product transformation refers...

    Please answer and explain the steps involved in each. 20. The rate of product transformation refers to a. how a consumer can trade one good for another while still maximizing his or her utility. b. how a firm can substitute one input for another and still maintain the same production level. c. how production of one good can be substituted for another while still using a fixed supply of inputs efficiently. d. how quickly a firm can produce a final...

  • Need Help on Matlab matrix system. Have your code return the solution x and show this...

    Need Help on Matlab matrix system. Have your code return the solution x and show this solution in a command prompt printout. Note that you can, of course, check your answer easily with the Matlab backslash command, A\b. Naive LU Decomposition Now, starting with your functioning Gauss Elimination code, modify it to keep the factors in the same matrix that it is passed. You of course will not modify the b-vector. Have this code return the L and U matrices...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT