Hough transform: Difference between revisions
Content deleted Content added
Line 196: | Line 196: | ||
<lang MATLAB>>> uiopen('C:\Documents and Settings\owner\Desktop\Chris\MATLAB\RosettaCode\180px-Pentagon.png',1) |
<lang MATLAB>>> uiopen('C:\Documents and Settings\owner\Desktop\Chris\MATLAB\RosettaCode\180px-Pentagon.png',1) |
||
>> houghTransform(cdata(:,:,1)<255,1/200); %The image from uiopen is stored in cdata. The reason why the image is cdata<255 is because the "edge" pixels are black.</lang> |
>> houghTransform(cdata(:,:,1)<255,1/200); %The image from uiopen is stored in cdata. The reason why the image is cdata<255 is because the "edge" pixels are black.</lang> |
||
[[Image:HoughTransformHex.png |
[[Image:HoughTransformHex.png|left|360x200px|Image produced by MATLAB implementation of the Hough transform when applied to the sample pentagon image.]] |
||
=={{header|Tcl}}== |
=={{header|Tcl}}== |