Write a MATLAB script to complete the following tasks: balloon.tif below 1. Down
ID: 3815215 • Letter: W
Question
Write a MATLAB script to complete the following tasks:
balloon.tif below
1. Download "Balloon.tif image. Write a MATLAB script to complete the following tasks: Load image 'Balloon.tif and convert it into a grayscale image, denoted with 'img1' Decompose img1 with wavelet transform using function wavedec2 (you can decide the number of decomposition level). Display the wavelet coefficients as an image. Note: you will need to rescale the values to be in the range of [0 255]; otherwise, the image appears black. (30 points) Reconstruct the edge map from the detail subbands using function waverec2. Hint: set the approximation subband to zero. Save the reconstructed edge map into an image. (30 points Using morphology operator to remove the minor edge segments and reduce the width of the edges to one pixel size. Save the result image. (20 points) Compute the energy, entropy, and homogeneity features for both processed edge maps and calculated the differences. (20 points) 2. The program(S) must be implemented with MATLAB.Explanation / Answer
1. load an image and convert it into grayscale
2.
3.
4.
5.
GLCM3 = graycomatrix(ImEdge,'Offset',[2 0;0 2]);
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.