/Fundamental-Matrix-and-Epipolar-Line

Compute Fundamental Matrix and Epipolar lines using Epipolar Geometry

Primary LanguageJupyter Notebook

Compute Fundamental Matrix and Find Epipolar Line

Compute Fundamental Matrix and Epipolar lines using Epipolar Geometry. Just a script for a quick check of your line equation.

  1. Note the coordination system. Convert all your point coordinates into (b) as shown in the following image before using the script. The origin is at the center of the image.

Image of coordinate system

The following function could help

convert_coordiante(points, img_size)
  1. Make sure you have python, numpy and matplotlib installed.

  2. Add your own point coordinates and modify the following part:

if __name__ == "__main__":
  # Give your eight pairs of points to solve for F
  F = get_FundamentalMatrix(...)
  # Choose a point to get epipolar line equation parameters
  w, b = get_epipolar_param(...)
  # Plot epipolar line on the corresponding image and save as figure
  plot_epipolar_line(...)
  1. Good Luck for your Assignment! 😬