From 1ddf37b6b620854c5c4ecb2a4bfd535ec526fe7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Boulogne?= Date: Wed, 20 Mar 2013 08:51:04 +0100 Subject: [PATCH] add note for distance/angle convention. Thanks to Emre Safak. --- skimage/transform/hough_transform.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/skimage/transform/hough_transform.py b/skimage/transform/hough_transform.py index 8abcfa32..d88d7dd0 100644 --- a/skimage/transform/hough_transform.py +++ b/skimage/transform/hough_transform.py @@ -127,6 +127,12 @@ def hough_line(img, theta=None): distances : ndarray Distance values. + Notes + ----- + The origin is the top left corner of the original image. + The angle is counted clockwise from 9 o'clock. + The distance is the minimal algebraic distance from this origin to the line. + Examples -------- Generate a test image: