Question: Please use MATLAB When images are scaled or resized, the values between pixels need to be guessed/interpolated in order to fill in the missing gaps.

Please use MATLAB

When images are scaled or resized, the values between pixels need to be guessed/interpolated in order to fill in the missing gaps. Write a function that takes a grayscale image and a scaling factor (any positive decimal value) as input and resizes the image using the following methods;

a) Nearest neighbouring pixel

b) Linear interpolation

c) Spline interpolation

Use the test image provided (a8_img.jpg), read in the image and output the resulting image for each of the three methods. Test out your function with 1.5 scaling, 3.1 scaling, and for 0.3 scaling (9 images total). You cannot use the built-in MATLAB function imresize(), but any other MATLAB built-in functions are acceptable.

(Hint: the image is in uint8 format, with values between 0 and 255, but in order to process and display properly, MATALB requires images to be in double format with values between 0 and 1)

This is the test image

Please use MATLAB When images are scaled or resized, the values between

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!