Skip to content

Commit

Permalink
Rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
pm3310 committed Oct 28, 2016
1 parent 05e3624 commit ddaaf30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hough_transform/hough_transform.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import numpy


def hough_line_transform(img):
def hough_line(img):
thetas = numpy.deg2rad(numpy.arange(-90.0, 90.0))
width, height = img.shape

Expand Down Expand Up @@ -32,7 +32,7 @@ def hough_line_transform(img):
# Create binary image and call hough_line
image = numpy.zeros((50, 50))
image[10:40, 10:40] = numpy.eye(30)
accumulator, thetas, rhos = hough_line_transform(image)
accumulator, thetas, rhos = hough_line(image)

# Easiest peak finding based on max votes
idx = numpy.argmax(accumulator)
Expand Down

0 comments on commit ddaaf30

Please sign in to comment.