GitXplorerGitXplorer
a

generalised-hough-transform

public
29 stars
13 forks
1 issues

Commits

List of commits on branch master.
Verified
ed06f00215b31116e047de2c302e4e9f50fe1a6b

Update README.md

aadl1995 committed 5 years ago
Verified
42789863527906da5a578b4d455c92cd9989047d

Merge pull request #4 from Klimmy/master

aadl1995 committed 5 years ago
Unverified
1decd67a435792d43d75528a03e8c3d23bb38b2c

added compatibility with Python 3 (#3)

committed 5 years ago
Unverified
5f50f3c681d11baebc9498285188b142ee071d8e

added compatibility with Python 3 (#3)

committed 5 years ago
Unverified
a0ed4bf4ac7a67f104aee8614715397f6b1debb6

updated Balard paper link

committed 5 years ago
Verified
0f1db5662cbc2f22b55cb0445d5566812611a370

Fix indentation and index errors, and update code formatting

aadl1995 committed 6 years ago

README

The README file for this repository.

An implementation of Generalised Hough transform

Description

GHT was developed to detect analytically defined shapes (e.g., line, circle, ellipse etc.). In these cases, we have knowledge of the shape and aim to find out its location and orientation in the image. The Generalized Hough Transform or GHT, introduced by Dana H. Ballard in 1981, is the modification of the Hough Transform using the principle of template matching. This modification enables the Hough Transform to be used for not only the detection of an object described with an analytic function. Instead, it can also be used to detect an arbitrary object described with its model.

Motivation

Dana H. Ballard's paper on Generalizing the Hough Transform to Detect Arbitrary Shapes intrigued me as to how a simple change to the Hough Transform could allow us to detect irregular shapes.

Steps

The steps involved in applying a GHT are as follows (in order):

  • build reference table using the given reference image
  • match table with original image
  • find maximum points in the returned accumulator array

Result

accumulator result

final result

Requirements

  • Python 2.7 (or higher)
  • Libraries:
  • Matplotlib
  • Skimage
  • Numpy

How to run

Clone the respository:

git clone https://github.com/adl1995/generalised_hough_transform.git

Execute the demo script:

python generalized_hough_demo.py