Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help me write a matlab code to compress the image using the global DCT method to select the small magnitude coefficients and set them

Please help me write a matlab code to compress the image using the global DCT method to select the small magnitude coefficients and set them to zeros.

image text in transcribed

Also apply the following nose to the image.

im1=imnoise(im,gaussian,0,0.09);

im2=imnoise(im,salt & pepper,0.25);

Im3=imnoise(im,speckle,0.20);

Compress the image using the following ratios:

a. Retain 2% of the coefficients. (This requires sorting the coefficients and retaining the largest 2%, while the rest are set to zero.)

b. Retain 10% of the coefficients.

c. Retain 50% of the coefficients

d. Find the root mean square error between the original and reconstructed images in each case

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_2

Step: 3

blur-text-image_3

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

The Temple Of Django Database Performance

Authors: Andrew Brookins

1st Edition

1734303700, 978-1734303704

More Books

Students also viewed these Databases questions

Question

Did you build a strong close, with a call to action as needed?

Answered: 1 week ago

Question

Use service tiering to manage the customer base and build loyalty.

Answered: 1 week ago