Please written by computer source   Hello, can you please help me answer this question I am stuck on? Please note we need to develop a code from scratch WITHOUT using cv2.findFundamentalMat() thank you.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Please written by computer source

 

Hello, can you please help me answer this question I am stuck on? Please note we need to develop a code from scratch WITHOUT using cv2.findFundamentalMat() thank you.

Fundamental Matrix
Task 1 is to write code for finding the fundamental matrix given the two images of the scene and compare
the implementation with the built-in OpenCV function. The following steps may be followed to
implement the solution,
1. Corresponding Points: Given the two images, find the corresponding points using Swift
keypoints and descriptors. Use Lowe's ratio test to filter the matching points.
2. Display the Matches: Use Matplotlib to plot the matches between two images.
3.
Compute Fundamental Matrix: Given the corresponding points (as found above), write a
function to compute Fundamental Matrix using the 8-point algorithm. Please refer to the lecture
notes for the details about the 8-point algorithm. A possible function skeleton is given below,
def compute_fundamental(x1, x2):
""" Computes the fundamental matrix from corresponding points (x1,x2 3*n arrays) using the 8 point
algorithm.
- x1: The matrix containing the points on the left image. The shape of x1 should be (n, 2) where 'n' is the
number of corresponding points.
- x2: The matrix containing the corresponding points on the right image. It should be of the same shape as
of x1.
- return F: The function should return a 3 x 3 fundamental matrix F.
111111
4. Compare with Built-in OpenCV Function: Compute the fundamental matrix using OpenCV's
cv2.findFundamentalMat() function and compare it with your implementation for sanity check.
Transcribed Image Text:Fundamental Matrix Task 1 is to write code for finding the fundamental matrix given the two images of the scene and compare the implementation with the built-in OpenCV function. The following steps may be followed to implement the solution, 1. Corresponding Points: Given the two images, find the corresponding points using Swift keypoints and descriptors. Use Lowe's ratio test to filter the matching points. 2. Display the Matches: Use Matplotlib to plot the matches between two images. 3. Compute Fundamental Matrix: Given the corresponding points (as found above), write a function to compute Fundamental Matrix using the 8-point algorithm. Please refer to the lecture notes for the details about the 8-point algorithm. A possible function skeleton is given below, def compute_fundamental(x1, x2): """ Computes the fundamental matrix from corresponding points (x1,x2 3*n arrays) using the 8 point algorithm. - x1: The matrix containing the points on the left image. The shape of x1 should be (n, 2) where 'n' is the number of corresponding points. - x2: The matrix containing the corresponding points on the right image. It should be of the same shape as of x1. - return F: The function should return a 3 x 3 fundamental matrix F. 111111 4. Compare with Built-in OpenCV Function: Compute the fundamental matrix using OpenCV's cv2.findFundamentalMat() function and compare it with your implementation for sanity check.
Expert Solution
steps

Step by step

Solved in 4 steps

Blurred answer
Knowledge Booster
Windows
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education