Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Hough transform
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Circle detection process === {{main|Circle Hough Transform}} Altering the algorithm to detect circular shapes instead of lines is relatively straightforward. * First, we create the accumulator space, which is made up of a cell for each pixel. Initially each cell is set to 0. * For each edge point (i, j) in the image, increment all cells which according to the equation of a circle <math>(i - a)^2 + (j - b)^2 = r^2</math> could be the center of a circle. These cells are represented by the letter <math>a</math> in the equation. * For each possible value of <math>a</math> found in the previous step, find all possible values of <math>b</math> which satisfy the equation. * Search for local maxima in the accumulator space. These cells represent circles that were detected by the algorithm. If we do not know the radius of the circle we are trying to locate beforehand, we can use a three-dimensional accumulator space to search for circles with an arbitrary radius. Naturally, this is more computationally expensive. This method can also detect circles that are partially outside of the accumulator space, as long as enough of the circle's area is still present within it.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)