Content deleted Content added
m →Termination: I guess a typo, one have to continue searching while there's still ellipse AND (no OR) the max nb of epoch is not reached |
|||
Line 36:
Pseudo code for RHT:<ref>S. Inverso, “Ellipse Detection Using Randomized Hough Transform”, www.saminverso.com/res/vision/EllipseDetectionOld.pdf, May 20, 2002</ref>
'''while''' (we find ellipses AND not reached the maximum epoch) {▼
'''for''' (a fixed number of iterations) {▼
▲while (we find ellipses AND not reached the maximum epoch) {
Find a potential ellipse.▼
▲ for(a fixed number of iterations) {
'''if''' (the ellipse is similar to an ellipse in the accumulator) '''then'''
▲ Find a potential ellipse.
'''else'''▼
Insert the ellipse into an empty position in the accumulator with a score of 1;▼
▲ else
}▼
▲ Insert the ellipse into an empty position in the accumulator with a score of 1;
Select the ellipse with the best score and save it in a best ellipse table;
▲ }
Empty the accumulator;▼
}▼
▲ Empty the accumulator;
▲}
==References==
|