|
Algorithm 1: Circle detection using Hough transform |
|
Input: the segmented images, image coordinates . |
|
Output: circle center coordinates , circle radius . |
| 1. |
Initialize: . |
| 2. |
Detect all edge points in the segmented image using the Canny operator. |
| 3. |
for to the diagonal length of the image |
| 4. |
for each edge pixel in the image |
| 5. |
for = 0 to 360 |
| 6. |
|
| 7. |
|
| 8. |
|
| 9. |
Find the largest and second largest values of , whose parameters correspond to the inner and outer circles of the weld. |