Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

**************Use Matlab************ PROBLEM 4 The goal of this problem is to study some of the properties of the discrete cosine transform. We want to compare

**************Use Matlab************

PROBLEM 4 The goal of this problem is to study some of the properties of the discrete cosine transform. We want to compare between the upper left corner and the bottom right corner in terms of the information contained in the DCT, and the possibility to compress the image using the DCT and its properties. When you display images, be sure that they the same physical size on paper (not pixel size). This will allow you to compare in terms of the quality.

1) Apply the DCT to an image of your choice. To display the DCT, you can use instruction: imshow(log(abs(ImageDCT)),[]) colormap(jet), colorbar (2) where ImageDCT is the DCT of your image. We assume that the size of the original image is (n1, n2).

2) Now we want to reduce the size of ImageDCT by keeping only the top left corner as shown in figure 2. We do this twice: ImageDCTToPLeft1: We keep (n1/2, n2/2) elements from the top left of ImageDCT. 2 ImageDCTToPLeft2: We keep (n1/4, n2/4) elements from the top left of ImageDCT. Write code to do this.

3) Perform the inverse DCT on these matrices (ImageDCTToPLeft1, ImageDCTToPLeft2), show and discuss your results. Hint: If you are using Matlab, you can use command imshow(K,[ ]) to display the images where K is the inverse DCT.

4) Now we keep only the bottom right corner of the matrix representing ImageDCT as shown in figure 2. Again, we do this twice: ImageDCTBottomRight1: We keep (n1/2, n2/2) elements from the bottom right of ImageDCT. ImageDCTBottomRight2: We keep (n1/4, n2/4) elements from the bottom right of ImageDCT. Write code to do this.

5) Perform the inverse DCT on these matrices (ImageDCTBottomRight1, ImageDCTBottomRight2), show, and discuss your results. Hint: If you are using Matlab, you can use the command imshow(K,[ ]) to display the images where K is the inverse DCT. 6) Discuss and compare the results of questions 3 and 5.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M Kroenke, David J Auer

6th Edition

ISBN: 0132742926, 978-0132742924

More Books

Students also viewed these Databases questions

Question

What are Measures in OLAP Cubes?

Answered: 1 week ago

Question

How do OLAP Databases provide for Drilling Down into data?

Answered: 1 week ago

Question

How are OLAP Cubes different from Production Relational Databases?

Answered: 1 week ago