Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

More Books

Students also viewed these Databases questions