Question: Using matlab Write a script called RectWindow.m. The script should read in a specific image, use two mouse clicks and the command ginput to select

Using matlab

Write a script called RectWindow.m. The script should read in a specific image, use two mouse clicks and the command ginput to select and save part of the image in a rectangular window. The two mouse clicks must identify the top left and bottom right of this window. The sub-image, i.e. the image in the rectangular window must then be saved to a specific file. The script should display the original image and the sub-image in separate windows. Use this script to read in the image peppers.png and pull out and save the part of the image in the smallest rectangular window that contains the yellow colored pepper in the middle of the image. Test that you have written out the image correctly.

Read in the image peppers.png and display it upside down.

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!