PlaneFitting

This repository is an implementation for the reconstruction of 3D scenes and compute its metrics mentioned in the paper A Flexible Technique for Accurate Omnidirectional Camera Calibration and Structure from Motion.

Knowing points' 3D coordinates, you can use plane_fitting.py to compute metrics such as the angle between two planes and the average distance of points from the fitted plane. threeD_plot.py is for plotting points into a 3D graph with the 3D coordinates of points.
utility.py contains functions used for computing metrics.

Before you start, install these packages:

  • NumPy
  • matplotlib

Get started

Update the path of the point data file in plane_fitting.py or threeD_plot.py and run it. If you want an interactive 3D plot, run threeD_plot.py from terminal.