Accumulation Step
Due to various reasons is the perspective projection of a line segment
from the 3D scene onto the 2D image not congruent with the line segment
detected in the image. We denote this perfect projection of a line
segment as projected line segment. Hence, all vanishing points
detection methods have to formulate either implicitly or explicitly a
distance function between a vanishing point and a detected line
segment. In this context the basic question is: How close is a
projected line segment with vanishing point
to its
corresponding line segment
.
In order to answer the question we represent a line segment with
the midpoint representation
(see figure 3).
We define: The perfect line segment
of a line segment
has the
same midpoint as
and has
as vanishing point.
On the basis of this definition a distance function
between a
vanishing point
and a line segment
can be defined as the
angle
between the corresponding line segments
and
.
Figure 3 gives an example for a finite vanishing point.
This distance function fulfill the requirements:
Finite and infinite vanishing points are treated in the same way and the
distances between points and line segments are independent of
their location on the image plane.
![]() |
We are now able to formulate and fill the
accumulator space. The intersection
points, perhaps at infinity, of all pairs of non-collinear line segments
are considered as accumulator cells, i.e. potential vanishing
points. A line segment votes for an accumulator cell
if the distance
is below a certain threshold
and the vanishing
point does not lie on the projected line segment
, which correspond to
.
In the search step we are interested in the total vote of an accumulator
cell. This vote depends on the length of a line segment (assuming
that longer line segments are more reliable)
as well as on the distance between accepted line segments and the
accumulator cell.
We define
Search Step
Vanishing points which correspond to mutual orthogonal directions in the scene have to fulfill the following three criteria: Orthogonal criterion, camera criterion and vanishing line criterion. The first two criteria are affiliated with each other and we consider them first.
Let us consider a special type of perspective cameras with
zero skew and same scale factor horizontally and vertically (aspect
ratio one). This means that the intrinsic camera matrix is:
Let us consider the vanishing line criterion.
Two vanishing points and
have a vanishing line when not both vanishing
points are at infinity (see figure 1). This
criterion checks that a line segment which votes for two vanishing points
and
is close to the vanishing line of
and
(see
[13] for a formal definition of the criterion).
Algorithm
A brute force version for vanishing point detection is:
The Accumulation Step:
Establish the accumulator space (intersection of all pairs of non-collinear line segments)
Determine the vote of each accumulator cell (equation 1)
The Search Step:
Take the accumulator cell with the highest vote
(equation 1)
Go through all pairs of accumulator cells
If the vanishing line criterion is fulfilled for
,
and
If the orthogonal criterion and camera criterion is fulfilled for
Calculate
Take the accumulator cells , with the highest vote
The vanishing points which correspond to the accumulator cells and
represent the three mutual orthogonal directions of
the scene.