Skip to content

iMiffy/EM-vanishing-point

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vanishing Point(VP) Locations via Expectation-Maximisation Algorithm

The algorithm applies the Expectation-Maximisation algorithm to estimate the location of vanishing points in an image, and assign each pixel to one of the vanishing points at the same time. The input images are assumed to satisfy the Manhattan world assumption.

Requirements

  • opencv
  • numpy
  • matplotlib
  • scipy
  • argparse

Data detail

  • RGB building images where the scenes fulfill the Manhattan assumption
  • The camera intrinsic properties which include focal length, principle point and size of the sensor pixels

Objective

  • Find the vanishing point (VP) locations in these input images
  • Find the assignment of each pixel to the vanishing points

Implementation detail

Below are some examples showing how to run the main.py on sample images located in this repository. $ python main.py --input-image ../images/building1.jpg --output-image ../output/building1.jpg --VP-image ../output/building1_VP.jpg Input screenshot VP screenshot Assignment screenshot

Releases

No releases published

Packages

No packages published

Languages