Question: Please write the matlab code. In this exercise we will manipulate the colors of an image. Follow the instructions below: a ) Use imread to
Please write the matlab code.
In this exercise we will manipulate the colors of an image. Follow the instructions below:
a Use imread to load the image file aukpng into your MATLAB script and store the image into a variable named img Note that this image has a color mode of bit RGB
b Use imshow to display the image. Add a title to label the image as Original
c Invert the image colors and store the result in a variable named img
d Display the new image and label it as Inverted
e Call rgbgray to convert img to grayscale. Store the result in a variable named img
f Display the new image and label it as Grayscale
g Scale down img from Exercise to half its size. Store the result in a variable named img
h Display the new image and label it as Resized Image.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
