Question: please I need it noow [2 marks] Question 4. Write a MATLAB script that sequentially performs the following operation on forest.jpg (an image file assumed
[2 marks] Question 4. Write a MATLAB script that sequentially performs the following operation on forest.jpg (an image file assumed to exist in your current directory) (one line of code for each operation): i) Load the image ii) Compute the mirror of forest.jpg iii) Compute the negative of the image obtained in ii) iv) Swap the four quadrants of the image obtained in il) v) Swap the red and blue channels of the image obtained in iv) vi) Produce the grayscale version of the image obtained in v) (use appropriate weighting of R, G and B) vii) Produce the binary version of the image obtained in vi) viii) Store the image produced in vil) in a new image file callef encforest.jpg CS1370 Page 2 [2 marks] Question 4. Write a MATLAB script that sequentially performs the following operation on forest.jpg (an image file assumed to exist in your current directory) (one line of code for each operation): i) Load the image ii) Compute the mirror of forest.jpg iii) Compute the negative of the image obtained in ii) iv) Swap the four quadrants of the image obtained in il) v) Swap the red and blue channels of the image obtained in iv) vi) Produce the grayscale version of the image obtained in v) (use appropriate weighting of R, G and B) vii) Produce the binary version of the image obtained in vi) viii) Store the image produced in vil) in a new image file callef encforest.jpg CS1370 Page 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
