Minor modifications to Harris corner detector

* Add some references.
* Make keyword argument explicit in example.
* Remove test class in favor of functions since no setup was required.
* Clean up docstrings.
This commit is contained in:
Tony S Yu
2012-02-02 22:33:56 -05:00
parent 5999c7ed01
commit fd0e88b986
3 changed files with 72 additions and 58 deletions
+7 -3
View File
@@ -3,8 +3,11 @@
Harris Corner detector
===============================================================================
The Harris corner filter detects interest points using edge detection in
multiple direction.
The Harris corner filter [1]_ detects "interest points" [2]_ using edge
detection in multiple directions.
.. [1] http://en.wikipedia.org/wiki/Corner_detection
.. [2] http://en.wikipedia.org/wiki/Interest_point_detection
"""
from matplotlib import pyplot as plt
@@ -26,5 +29,6 @@ def plot_harris_points(image, filtered_coords):
im = img_as_float(data.lena())
filtered_coords = harris(im, 6)
filtered_coords = harris(im, min_distance=6)
plot_harris_points(im, filtered_coords)