Hough Parameter Space Regularisation for Line Detection in 3D

Hough Parameter Space Regularisation for Line Detection in 3D

Hough Parameter Space Regularisation for Line Detection in 3D Manuel Jeltsch, Christoph Dalitz and Regina Pohle-Frohlich¨ Institute for Pattern Recognition, Niederrhein University of Applied Sciences, Reinarzstr. 49, 47805 Krefeld, Germany Keywords: Hough transform, 3D Line Detection, Ridge Detection, Laser Scan Data. Abstract: The Hough transform is a well known technique for detecting lines or other parametric shapes in point clouds. When it is used for finding lines in a 3D-space, an appropriate line representation and quantisation of the parameter space is necessary. In this paper, we address the problem that a straightforward quantisation of the optimal four-parameter representation of a line after Roberts results in an inhomogeneous tessellation of the geometric space that introduces bias with respect to certain line orientations. We present a discretisation of the line directions via tessellation of an icosahedron that overcomes this problem whenever one parameter in the Hough space represents a direction in 3D (e.g. for lines or planes). The new method is applied to the detection of ridges and straight edges in laser scan data of buildings, where it performs better than a straightforward quantisation. 1 INTRODUCTION tion with a three dimensional parameter space (Ishida et al., 2012). Originally proposed for line detection in a 2D space For line detection in 3D, an appropriate parametric (Hough, 1962), the Hough transform has meanwhile line representation needs to be chosen. The text book ~ become a standard tool for detecting a wide variety line representation is the vector form ~a +tb, where ~a is a point on the line and~b (with ~b = 1) is the direc- of parametric shapes (Mukhopadhyay and Chaudhuri, k k 2015). Unlike other shape detection algorithms, the tion of the line. Even though this line representation Hough transform does not work on images, but on is redundant and leads to a five dimensional parameter point clouds. Its application to images thus requires a space, it has indeed been used for line detection with preprocessing step for filtering candidate points. The the Hough transform (Moqiseh and Nayebi, 2008). idea of the Hough transform is to consider each can- One way to reduce the space and time complexity is didate point as a “vote” for all predefined shapes to a hierarchical approach that first searches for peaks in which it might belong. The predefinition of the shapes the slope parameter space, which is only two dimen- is done by a discretisation of the parameter space. sional, and to further investigate these peaks in the Shapes with many points will then get many votes in intercept parameter space, which is two dimensional the parameter space. too (Bhattacharya et al., 2000). Time and space complexity of the Hough trans- A different way to reduce the complexity is to use form not only depend on the size of the point cloud, a non-redundant line representation, thereby reduc- but also on the dimension of the parameter space and ing the number of dimensions. A minimal and opti- the coarseness of the parameter discretisation. For mal representation of a line with four parameters was ellipse detection in 2D, e.g., the parameter space is given by Roberts (Roberts, 1988; Schenk, 2004). This five dimensional, and there have been a number of representation has already been used for needle detec- suggestions for making this problem more tractable tion in 3D ultrasonic images (Zhou et al., 2008; Qiu (Mukhopadhyay and Chaudhuri, 2015). For line de- et al., 2013). tection in 2D, lines are typically represented with the In the present paper, we show that a straightfor- Hessian normal form, which results in a two dimen- ward discretisation of Roberts’ parameter space leads sional parameter space. In three dimensions, the Hes- to an inhomogeneous sampling pattern that favours sian normal form does not represent lines, but planes, certain directions. To overcome this shortcoming, we and a straightforward generalisation of the original suggest a discretisation of two parameters, namely Hough transform to 3D thus leads to plane detec- the angles specifying the normal vector of Roberts’ 345 Jeltsch, M., Dalitz, C. and Pohle-Fröhlich, R. Hough Parameter Space Regularisation for Line Detection in 3D. DOI: 10.5220/0005679003450352 In Proceedings of the 11th Joint Conference on Computer Vision, Imaging and Computer Graphics Theory and Applications (VISIGRAPP 2016) - Volume 4: VISAPP, pages 345-352 ISBN: 978-989-758-175-5 Copyright c 2016 by SCITEPRESS – Science and Technology Publications, Lda. All rights reserved VISAPP 2016 - International Conference on Computer Vision Theory and Applications Algorithm 1: Hough transform. z Input: point cloud X = ~x1,...,~xn , parameter val- ues P = p ,..., p { for 0 < i} k i { i1 iNi } ≤ Output: voting array A of size N ... N 1 × × k y 1: A(p ,..., p ) 0 for all p ,..., p 1 k ← 1 k 2: for~x X do ∈ 3: for p1 P1 do θ 4: ... ∈ 5: for pk 1 Pk 1 do − ∈ − φ 6: p0 g(~x, p1,..., pk 1) . cf. Eq. (2) x ← − 7: p nearest neighbour to p from P k ← 0 k (a) 8: A(p ,..., p ) A(p ,..., p ) + 1 1 k ← 1 k Figure 1: φ and θ as azimuth(blue) and elevation(red). 9: end for 10: ... all curves to which a given point belongs are given 11: end for by all parameter values that fulfil Eq. (1). Generally, 12: end for the number of possible curves is infinite, but it can be 13: return A made finite by a discretisation of the parameter space: each parameter pi is assumed to be limited to a range plane through the origin, by means of a sphere tessel- of Ni values from a finite set Pi = pi1,..., piNi , { } lation. As a use case, we apply the new method to where the number Ni of possible parameter values edge detection in laser scan data, where the candidate may vary from parameter to parameter. points are prefiltered based on the local curvature in Each of the discrete parameter values then repre- the point cloud. In our experiment, the new approach sents a cell in parameter space, and a point ~x votes lead to better results than a straightforward discretisa- for all cells that contain parameters fulfilling Eq. (1). tion with the same number of parameter cells. To make the voting process tractable, Eq. (1) must be This paper is organised as follows: in section 2, rewritten as we give a general description of the Hough transform, g(~x, p1,..., pk 1) = pk (2) introduce Roberts’ line representation and our param- − eter space discretisation. In section 3, we describe Then all parameter cells, to which ~x belongs, can how the method can be used to detect arbitrarily ori- be determined in a loop over all parameter values ented ridges and other straight edges in 3D laser scan P1 ... Pk 1 and by computing the cell of the last × × − data. parameter through Eq. (2). The resulting algorithm is listed as Algorithm 1. 2.2 Line Parametrisation 2 LINE DETECTION IN 3D For the purpose of algorithmic efficiency it is advis- Before we specialise the Hough transform for 3D line able to use a parametrisation that is unique, does not detection, let us first describe the Hough transform in suffer from singularities and is non-redundant. Such a its most general case, and then discuss the problems parametrisation for lines in 3D that uses only four pa- of 3D line representation and its parameter space dis- rameters (x0,y0,φ,θ) was given by Roberts (Roberts, cretisation. 1988). The direction of a line can be specified by the two 2.1 Hough Transform parameters φ for horizontal orientation (azimuth) and θ for altitude (elevation) (see Fig. 1). The directional Let X = ~x1,...,~xn be a point cloud in which we vector~b is obtained from θ and φ through look for curves{ defined} by k parameters and described in the parametric form bx cosφcosθ ~b = b = sinφcosθ (3) y f (~x, p1,..., pk) = 0 (1) bz sinθ For a given list of parameters p1,..., pk, all points Since two anti-parallel directional vectors describe ~x on the curve fulfil Eq. (1). The basic idea of the the same line, the vectors ~b have to be confined to a Hough transform is to consider this equation not as half-space for the representation to be unique. This a condition for ~x, but for the parameters p1,..., p1: can be achieved by restricting the angle ranges to 346 Hough Parameter Space Regularisation for Line Detection in 3D z gles θ and φ with constant step size ∆: θ θ θ = θ + i ∆, 0 i max − min (6a) min · ≤ ≤ ∆ φ φ b ⃗ φ = φ + j ∆, 0 j max − min (6b) y min · ≤ ≤ ∆ The number of resulting direction vectors is (x',y') (θ θ ) (φ φ ) n = max − min · max − min (7) uniform ∆ A step size of 1◦, or ∆ = π/180, with π < φ π π − ≤ x and 0 θ 2 then yields a hemisphere consisting of 32400≤ directional≤ vectors. These, however, are not equidistantly distributed on the hemisphere’s surface Figure 2: Line parametrisation by Roberts with x ,y (red) 0 0 (see Fig. 3). While the arc distance of adjacent vectors and the line’s directional vector~b (blue). on the hemisphere’s equator is ∆, it decreases as the π elevation approaches π/2. 0 θ 2 and π < φ π. The remaining redun- dancy≤ ≤ through anti-parallel− ≤ vector pairs in the (x,y)- An accumulator array, which uses these vectors would therefore contain considerably more cells for plane (bz = 0) is removed with the restrictions by 0 ≥ nearly vertical lines than for lines that are almost par- if bz = 0 and bx = 1 if by = bz = 0.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    8 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us