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 auk.png into your MATLAB script and store the image into a variable named img1. Note that this image has a color mode of 8-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 img2.
d) Display the new image and label it as Inverted.
e) Call rgb2gray to convert img1 to grayscale. Store the result in a variable named img3.
f) Display the new image and label it as Grayscale.
g) Scale down img1 from Exercise 1 to half its size. Store the result in a variable named img4.
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 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!