Hough transform: Difference between revisions
Content deleted Content added
Fixed a problem with the MATLAB output image |
|||
Line 137: | Line 137: | ||
<lang MATLAB>function [rho,theta,houghSpace] = houghTransform(theImage,thetaSampleFrequency) |
<lang MATLAB>function [rho,theta,houghSpace] = houghTransform(theImage,thetaSampleFrequency) |
||
theImage = flipud(theImage); |
theImage = flipud(theImage); %Because the "origin" of a picture is the top-left corner |
||
[width,height] = size(theImage); |
[width,height] = size(theImage); |
||
Line 198: | Line 198: | ||
[[Image:HoughTransformHex.png|thumb|left|360x200px|Image produced by MATLAB implementation of the Hough transform when applied to the sample pentagon image.]] |
[[Image:HoughTransformHex.png|thumb|left|360x200px|Image produced by MATLAB implementation of the Hough transform when applied to the sample pentagon image.]] |
||
<br style="clear:both" /> |
<br style="clear:both" /> |
||
=={{header|Tcl}}== |
=={{header|Tcl}}== |
||
{{libheader|Tk}} |
{{libheader|Tk}} |