Merge pull request #488 from sciunto/minor_docfix

ENH: Allow `hough_circle` to detect circles with centres outside the image.
This commit is contained in:
Stefan van der Walt
2013-04-19 04:04:26 -07:00
3 changed files with 36 additions and 13 deletions
@@ -56,7 +56,7 @@ radii = []
for radius, h in zip(hough_radii, hough_res):
# For each radius, extract two circles
peaks = peak_local_max(h, num_peaks=2)
centers.extend(peaks - hough_radii.max())
centers.extend(peaks)
accums.extend(h[peaks[:, 0], peaks[:, 1]])
radii.extend([radius, radius])