Hough transform: Difference between revisions

Line 212:
=={{header|Python}}==
{{libheader|PIL}}
This is the classical Hough transform as described in wikipedia. The code does not compute averages; it merely makes a point on the transformed image darker if a lot of points on the original image lie on the corresponding line. The output is almost identical to that of the Tcl code. The code works only with gray-scale images, but it is easy to extend to RGB.
<lang python>
from math import hypot, pi, cos, sin
Line 254:
 
{{omit from|PARI/GP}}
 
 
 
 
 
 
 
 
=={{header|Tcl}}==