Example:Hough transform/MATLAB: Difference between revisions

moved SMW markup into template
(try wikilink SMW set type... I suspect this is the cause of the recursion.)
(moved SMW markup into template)
Line 1:
=={{example|task=Hough transform|language=MATLAB}}==
 
[[example of::Hough transform| ]][[implemented in language::MATLAB| ]]
This solution takes an image and the theta resolution as inputs. The image itself must be a 2-D boolean array. This array is constructed such that all of the pixels on an edge have the value "true." This can be done for a normal image using an "edge finding" algorithm to preprocess the image. In the case of the example image the pentagon "edges" are black pixels. So when the image is imported into MATLAB simply say any pixel colored black is true. The syntax is usually, cdata < 255. Where the vale 255 represents white and 0 represents black.
 
Anonymous user