Compute Fundamental Matrix and Epipolar lines using Epipolar Geometry. Just a script for a quick check of your line equation.
- 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.
The following function could help
convert_coordiante(points, img_size)
-
Make sure you have
python, numpy and matplotlib
installed. -
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(...)
- Good Luck for your Assignment! 😬