Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

To save the storage space, the image uploaded in social media is often compressed and stored in JPEG format. Those images may be downloaded by

To save the storage space, the image uploaded in social media is often compressed and stored in JPEG format. Those images may be downloaded by other users and reposted to the social media.

Now, you would like to investigate how the quality of the image changes if that same image is reposted for 10 times.

Here is the experimental procedure: You uploaded an image to, for example Instagram, and the server at Instagram will compress you image to 70% of quality and store it in .jpg (.jpeg) format You then download that image on Instagram, and post it again. Now the image quality will be 0.72*100%=49% Then you will repeat step 2 until the image is posted for 10 times. You will need to calculate the image quality for each image posting Now,

1) you will need to write a short MATLAB code (skeleton code below can be useful) to show the image after each posting;

2) what do you observe?

3) plot the image size v.s. the number of posting. Skeleton code q=0.7; %initial image quality for i=1:10 %your code to calculate the image quality for current iteration %your code to save the image with the calculated image quality

End Hint: The functions you will need are: imread and imwrite

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

Business Process Driven Database Design With Oracle PL SQL

Authors: Rajeev Kaula

1st Edition

1795532386, 978-1795532389

More Books

Students also viewed these Databases questions

Question

Discuss how technology impacts HRD evaluation

Answered: 1 week ago