Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

10 points] Many photo editors provide tools is to fix perspective errors when photographing large buildings, e.g. the building in the left image below. PhotoShop

image text in transcribed

10 points] Many photo editors provide tools is to fix perspective errors when photographing large buildings, e.g. the building in the left image below. PhotoShop for example provides this tool under the name "Perspective Warp" (e.g. see here). For this assignment, you need to (a) briefly explain the science behind these tools, and (b) write a Matlab program that fixes the perspective of any given image. Use prespectiveCorrect.jpg' for testing. The result should be similar to the right image below. Your Matlab program should work as following: The program starts by displaying an image to the user using imshow. . It then reads the (x,y) of four mouse clicks on the input image (use ginput). For simplicity, assume the user must do the clicks in the order shown below. The image should be geometrically transformed so that the four points form a rectangle in output image (i.e.points (1),(2) are aligned horizontally, points (1),(3) vertically, points (2),(4) vertically, and points (3),(4) horizontally). Every time the user clicks a point, a small rectangle is drawn on the image to remind the user o the position of that point (e.g. see the small red rectangles in the image below). +2 +1 for theoretical explanation for showing the image and reading the points for fixing the perspective for drawing the little squares for simplicity and logical correctness +4 +1 +2

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

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

12th edition

133544613, 978-0133544619

More Books

Students also viewed these Databases questions

Question

=+2 Why did OBI create Centers of Excellence?

Answered: 1 week ago