Nothing Special   »   [go: up one dir, main page]

Next Article in Journal
Indirect Time-of-Flight with GHz Correlation Frequency and Integrated SPAD Reaching Sub-100 µm Precision in 0.35 µm CMOS
Previous Article in Journal
Multi-View Stereo Vision Patchmatch Algorithm Based on Data Augmentation
You seem to have javascript disabled. Please note that many of the page functionalities won't work as expected without javascript enabled.
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

An Anti-Noise Fast Circle Detection Method Using Five-Quadrant Segmentation

School of Physics and Electronics, Central South University, Lushan South Road, Changsha 410083, China
*
Author to whom correspondence should be addressed.
Sensors 2023, 23(5), 2732; https://doi.org/10.3390/s23052732
Submission received: 1 February 2023 / Revised: 19 February 2023 / Accepted: 1 March 2023 / Published: 2 March 2023
(This article belongs to the Section Fault Diagnosis & Sensors)

Abstract

:
Extracting circle information from images has always been a basic problem in computer vision. Common circle detection algorithms have some defects, such as poor noise resistance and slow computation speed. In this paper, we propose an anti-noise fast circle detection algorithm. In order to improve the anti-noise of the algorithm, we first perform curve thinning and connection on the image after edge extraction, then suppress noise interference by the irregularity of noise edges and extract circular arcs by directional filtering. In order to reduce the invalid fitting and speed up the running speed, we propose a circle fitting algorithm with five quadrants, and improve the efficiency of the algorithm by the idea of “divide and conquer”. We compare the algorithm with RCD, CACD, WANG and AS on two open datasets. The results show that we have the best performance under noise while keeping the speed of the algorithm.

1. Introduction

Images are the basis of human understanding of the world. Accurate and stable acquisition of image information has always been one of the basic problems of computer vision. As one of the most common graphics in daily life, circles often contain a lot of information. How to detect circles in images quickly and stably has always been a difficult and important point in computer vision. At present, circle detection is widely used in borehole detection [1], glass bottle mouth detection [2], solder joint detection [3], medical object detection [4], radar image detection [5], accurate detection of Aeronautical bearings [6] and other areas.
Hough transform [7] (HT) is the most classical circle detection method. Its basic idea is to convert the original information on the image to the parameter space for voting, and then find local peaks in the parameter space to determine the circular parameter information. This method has strong robustness, but the algorithm needs to vote on any three points in the parameter space, and the time complexity and space complexity are very high. In order to solve the shortcomings of the HT algorithm, scholars continue to propose new algorithms, which can be roughly divided into the following two categories:
The first is a circle detection algorithm based on random sampling, which usually obtains the parameters of candidate circles by random sampling. It only needs one correct sampling to find the true circle, and it is often robust. However, this kind of algorithm needs massive iteration and takes a lot of time. The random Hough transform (RHT) algorithm proposed by Xu et al. [8] is a classic example, which finds the true circle in the image by randomly selecting three points and voting in the parameter space. RHT saves some time compared with the HT algorithm, but the space requirements are still very high. In order to solve this defect, Chen et al. [9] proposed a random circle detection algorithm (RCD). The algorithm samples one more point than the RHT algorithm and replaces the parameter link list [10] in the HT and RHT algorithms with the fourth point. RCD reduces the consumption of space, but the probability of random sampling of four points on the same circle is very low, that is, the probability of correct sampling is very low. To solve this problem, Jiang et al. [11] proposed a sampling optimization algorithm based on differential regions. After each sampling, the sampling result is judged once. If the number of points on the candidate circle reaches a certain number, several samples will be extracted from the difference region. This method improves the probability of correct sampling to some extent, but the accuracy of the algorithm decreases rapidly when random noise occurs in the image. In contrast with Jiang’s method, Wang et al. [12] proposed a method of subpixel random sampling. Specifically, they just randomize one point, and then find other points on the circle through the gradient rule of the edge. The algorithm is optimized in time, but the performance of the algorithm degrades rapidly when noise occurs in the image.
Another is contour-based circle detection algorithm, which usually connects edge points into curves and then obtains circle parameters by analyzing the information of the curves. Such methods tend to detect more accurately and run faster. However, these algorithms rely on the results of edge extraction and often have poor performance for images with a large number of edge curves crossing each other or with noise. Le et al. [13] used a segment detector [14] to extract circular curves, and then performed least-squares fitting to obtain circular parameters. Although this method achieves good performance, there are also problems with useless least squares fitting and redundant calculation caused by straight lines [15]. Different from Le’s method, Yao et al. [16] proposed a circle detection algorithm based on the curvature of curves, which estimates circle parameters by curvature, and filters the radius iteratively in layers. However, the radius layer of the algorithm needs to be preset when the size of the image increases, and the efficiency of the algorithm decreases rapidly [17]. Liu et al. [15] proposed an edge thinning and corner detection algorithm, which increased the accuracy of arc segmentation and improved the speed of operation, but the performance of the algorithm is not good in noisy images. Zhao et al. [18] proposed a circle detection algorithm based on an inner tangent triangle, which improved the accuracy of circle detection by using the area calculation. However, compared with the algorithms of Liu and Le, the running time of the algorithm is not ideal. Ou et al. [17] proposed a circle detection algorithm based on information compression, which compresses points on arcs with the same geometric properties into one point, and then uses points instead of curves to fit circle parameters. However, this method relies on the results of edge detection and does not work well under the interference of higher levels of Gaussian noise.
In general, the random sampling-based circle detection algorithm is time-consuming, while the contour-based circle detection algorithm relies on the edge detection results and is sensitive to noise. Aiming at these two problems, this paper proposes an anti-noise fast circle detection method using five-quadrant segmentation. While improving the accuracy and speed of the circle detection algorithm, the algorithm can maintain good performance under the interference of Gaussian noise. We first perform curve thinning and connection on the image after edge extraction, then suppress noise interference by the irregularity of noise edges and propose circular arcs by directional filtering, then we classify and fit the circular arcs using the five-quadrant segmentation method, and the final true circle is obtained according to the coincidence relationship between the circle and the arc and the average sampling result. The experimental results show that our method has the advantages of high speed, strong noise immunity and high accuracy.
The contributions of this paper are as follows:
(1)
We propose a noise suppression algorithm and an arc segmentation algorithm, which can suppress the interference of noise while preserving the arc.
(2)
We use a five-quadrant segmentation least-squares circle fitting algorithm, which avoids many invalid fittings, and is verified by the coincidence ratio.
The structure of the rest of this paper is as follows: Section 2 is the Materials and Methods, which details the principle of our circle detection algorithm. Section 3 is the proposed circle detection algorithm, which mainly introduces the process of the algorithm. Section 4 is the Results, mainly compared with other algorithms on the public dataset, and the indicators for comparison include Precision, Recall, F-measure and Time. The Section 5 is the Discussion, which mainly summarizes the full text and proposes future research directions.

2. Materials and Methods

Our method mainly includes three steps of image preprocessing, noise suppression and arc segmentation, and circle detection. The function of image preprocessing is mainly to extract edge points and connect them into arcs. The function of suppressing noise interference and arc segmentation is to exclude noise curves and divide the curves into arc segments. The process of circle detection is to fit arcs and find the true circle.

2.1. Image Preprocessing

2.1.1. Edge Extraction

First we use a 5 × 5 median filter to reduce interference. Then the adaptive canny [19] edge extraction algorithm provided by Matlab is used to obtain edge point information, which is also the choice of most algorithms [15,17,18].

2.1.2. Contour Refinement and Curve Extraction

The thickness of the curve affects arc segmentation and may lead to duplicate detections. First, the method in the literature [15] is used to extract the refined contour. When point P meets any of the following conditions, it is removed from the image.
N ( 1 ) N ( 3 ) + N ( 3 ) N ( 5 ) + N ( 5 ) N ( 7 ) + N ( 7 ) N ( 1 ) = true & N ( P ) = 2
N ( N ( 1 ) + N ( 5 ) ) ( N ( 3 ) + N ( 7 ) ) = true & N ( P ) > 2
N ( 1 ) N ( 4 ) N ( 6 ) + N ( 2 ) N ( 5 ) N ( 8 ) N ( 2 ) N ( 4 ) N ( 7 ) + N ( 3 ) N ( 6 ) N ( 8 ) = true
Nc ( P ) > 2
where N(P) is the number of foreground points in the eight-neighbor of P, N(1–8) is the eight-neighbor of P, as shown in Figure 1, and Nc(P) is the number of foreground pixels in N(2), N(4), N(6), and N(8). We specified that the contour curve pixel logical value is 1 (true), and the background pixel logical value is 0 (false). Conditions (1)–(4) should be applied in a logical order. The part without pixels is treated as background pixels when P is on the image’s border.
Then connect all adjacent edge points into curves. Note that curves with a length less than 15 will be deleted. The final extracted curve format is as follows:
L = X 1 X 2 X 3 X n Y 1 Y 2 Y 3 Y n

2.2. Suppression of Noise Interference and Arc Segmentation

Under noise interference, the canny algorithm will detect many interference edges. Figure 2 shows the impact of Gaussian noise with different variances on the image and edge detection.

2.2.1. Suppression of Noise Interference

First, we perform a least squares arc fitting on curve L (Equation (5)) to approximate the degree of bending of the arc, and delete the satisfied r < 15 | | r > max ( m , n ) curve, m, n representing the size of the picture, and r is the radius of the circle fitted by the least squares arc fitting. The Figure 2 shows the effect of our method on pictures at different noise levels.

2.2.2. Arc Segmentation

Although the curve obtained by the above steps reduces the interference of a part of the noise, there are still some curves that do not belong to the same circle connected together, which leads to an error in fitting, as shown in the Figure 3. Thus, we cut the curve into an arc in the direction. When the Manhattan distance from the ith point to the endpoint is greater than the i 1 th point, they are considered to be in the same direction, otherwise the error is recorded with parameters. When the number of recorded errors reaches three, the arc will be taken and the next selected endpoint will be reset. After all the curves are split, the arcs whose curve length is less than 15 will be deleted.

2.3. Circle Detection

2.3.1. Five-Quadrant Division Method

In order to reduce the ineffective arc fitting and speed up the fitting, we use the five-quadrant segmentation method to classify the arc. The entire image region is divided into five regions, with the image center as the axis origin. For the arc L i , it is fitted to the least squares circle to obtain the circle parameter [X, Y, R], and divides the arc into the corresponding quadrant according to the coordinates of the center of the circle. It should be noted that if the distance between the center coordinate and the coordinate axis is less than r × 0.25, it should not only be placed in the original quadrant, but also in the fifth quadrant. Additionally, the position of the two ends of the arc relative to the center of the circle is calculated, where cx, cy are the endpoint coordinates. and the arc that satisfies condition (6) should be deleted.
angle 2 angle 1 360 × 2 × pi × R size ( L i ) > 0.25 × R
where angle1, angle2 are the angles of the two endpoints of the arc relative to the center of the circle, size L i refers to the length of the arc L i .

2.3.2. Arc Fitting

On the basis of Section 2.3.1, the arcs of each quadrant are spliced sequentially, and if one of the following conditions is met, it is not considered an arc of the same circle.
thes = min ( 5 , min ( R 1 , R 2 ) × 0.1 )
X 1 X 2 > thes or Y 1 Y 2 > thes or R 1 R 2 > thes
angle 1 , angle 2 angle 3 , angle 4 angle 3 , angle 4 < 0.8
Among them, X 1 , X 2 , Y 1 , Y 2 , R 1 , R 2 are the circle parameters fitted by the arcs at both ends in Section 2.3.1, and angle 1 , angle 2 are the angular area of the stitched arc relative to the center of the circle. Note that this value should be recorded in an array with a size of 360 in the program, because it may be discontinuous. angle 3 , angle 4 is the position of the arc to be spliced relative to the center of the circle.

2.3.3. Candidate Circle Detection

The spliced arc is then fitted to the circle parameters [X, Y, R] using least squares, and the points on the arc are first verified, where one of the following conditions is met. It is considered as an error detection, otherwise it is a candidate circle:
Dist i = 2 ( P x X ) 2 + ( P y Y ) 2 R
( Dist i < min ( R / 50 , 2 ) size ( Dist ) < 0.9
Dist i size ( Dist ) > 2

2.3.4. Remove Duplicate Circles

According to the method of the Refs. [17,20], the following formula is used to express the overlap ratio of circles, and when the overlap ratio is greater than 0.8, they are considered to be the same circle, and the circle with better sampling results is retained.
Ratio ( Cd , Ct ) = area ( Cd ) area ( Ct ) area ( Cd ) area ( Ct )
where area(Cd), area(Ct) refers to the area of the circles Cd and Ct, respectively, and Ratio(Cd,Ct) refers to the overlap ratio of the two circles.

2.3.5. Find the True Circle

We sampled to select true circles in the set of candidate circles. The sampling point coordinates can be calculated using the following formula:
Theta = 2 × Pi × i ( i 0 , 1 , , 36 )
cx = round ( X + R × cos ( Theta ) ) cy = round ( Y + R × sin ( Theta ) )
where cx, cy represent the aspect and ordinate coordinates of the sampling point, i represents the ith sampling point, and x, y, and r refer to the circle parameter. Since noise will cause a part of the circle information to be lost, when the number of verifications is greater than 12 times or when it is formed by multisegment arcs, we consider the circle parameter to be a true circle.

3. Proposed Circle Detection Algorithm

This section shows the flow of our proposed circle detection algorithm. Our proposed circle detection algorithm can be described as follows:
Step 1.
Input a picture and perform 5 × 5 Median filtering on it;
Step 2.
Adaptive Canny edge extraction is used to obtain edge point information;
Step 3.
The edge point information is contoured to remove redundant edge points. The thinned edge points are connected into curves;
Step 4.
Direction filtering of curves is used to suppress noise;
Step 5.
A circular arc that divides a curve into segments;
Step 6.
The arc is divided into five quadrants according to the position relationship between the arc and the center of the circle;
Step 7.
Least squares circle fitting of circular arcs is performed within five quadrants. The set of candidate circles is found;
Step 8.
Remove duplicate circles from candidate circles;
Step 9.
Find the true circle in the candidate circle and mark it.

4. Results

In this section, we compare the proposed algorithm with five other algorithms. The first one is the random circle detection algorithm (RCD) proposed by Chen et al. [9]. We set the number of loops to 500,000 times. The second is a curvature-assisted circle detection algorithm (CACD) proposed by Zhen et al. [16]. The code comes from the author’s open source sharing [21], and the third is a sub-pixel circle proposed by Wang [12]. We repeated the algorithm from the paper and set the number of loops to 100,000. The fourth is a circle detection algorithm for arc fitting proposed by Lu [22], where the code comes from the author’s open source sharing [23], and finally, our algorithm. In order to unify the standard, all the above algorithms were executed in MATLAB R2019b, and all run on the same computer, using Intel Core i5-12400F. For the objectivity and accuracy of the experiment, the following four indicators will be used to measure: Precision, Recall, F-measure and Time. Time refers to the average time from the input image to finding the true circle in each dataset. The calculation formula of Precision, Recall and F-measure is as follows:
Precision = TP TP + FP
Recall = TP TP + FN
F measure = 2 × Precision × Recall Precision + Recall
We refer to the verification method [15,17,18,22,24,25,26], and when the coincidence of the circle is not less than 0.8, it is considered that they are the same circle. Treat it as a true positive (TP); otherwise, this is a false positive (FP), and the underlying fact that it is not correctly identified is considered a false negative (FN). Equation (13) was used to define the overlap ratio between circle Cd and circle Ct.
The test images in this paper were mainly from two Internet public datasets:
Dataset GH. This complex world dataset from the Ref. [27] consists of 257 gray images of different real-world scenes, with blurred edges and large variations in radius making detection difficult. Occlusion also brings inconvenience to the measurement.
Dataset MY. This complex world dataset comes from the Ref. [27], which consists of 111 pictures, and compared to the dataset GH, all datasets of MY are colored and contain more circles and involve more cluttered backgrounds, and almost elliptical circles may appear due to the camera’s viewing angle, where we used the labels that the author used to labeled the images.

4.1. Noise Test

To test the performance of each algorithm under different levels of noise, we selected an image with a clear background and a circle consisting of strong edge points and weak edge points at the same time. The following Figure 4 shows the detection ability of our algorithm on images disturbed by Gaussian noise. The first image in each row represents different images disturbed by Gaussian noise with different variance. Additionally, the second image represents the result of edge extraction by adaptive canny algorithm. It can be seen from the results that the noise interferes with the boundary very seriously. The third picture is the intermediate result after we processed the picture. It can be seen that our algorithm reduces the noise as much as possible while retaining the arc. With interference, the fourth image is our circle detection result.
We describe the performance of different algorithms under Gaussian noise in Figure 5. Due to the randomness of Gaussian noise, we ran it 100 times with the same level of noise interference and show the results in Figure 4.
It can be seen from Figure 5 that both AS, CACD and our algorithm can detect all circles when there is no noise. When Gaussian noise just appears in the picture (variance is 0.01), the performance of the AS, WANG, CACD and RCD algorithms starts to reduce. Wang’s algorithm has an average F-measure of 0.9925 when there is no noise. When there is Gaussian noise in the image (variance of 0.01), the F-measure is reduced by about 66%, while the RCD algorithm is reduced by about 95%. This is because the noise Interference leads to false detections. When the variance of the AS algorithm is greater than 0.09, the F-measure is reduced to 0. When the variance of the CACD algorithm is greater than 0.08, the F-measure decreases to about 0.01 and remains relatively stable. The efficiency of our algorithm has the best performance on noisy images. When Gaussian noise first appeared on the image (variance 0.01), our F-measure remained at around 0.97, and as the noise increased, it still maintained a good performance.

4.2. Dataset Testing

To test the stability of the algorithm, we selected two public datasets to test the algorithm. The following Figure 6 and Figure 7, and Table 1 and Table 2 show the average running results of the five algorithms under different levels of noise interference, and we marked the best results in bold. From the Table 1 and Table 2, it can be seen that:
The recall rates of RCD and Wang’s algorithms have always been stable, because the random circle detection algorithm will hardly be affected by noise when randomly selecting points to calculate circle parameters. However, with the increase in noise, their accuracy and F-measure decrease rapidly. The CACD and AS algorithms can maintain good performance without noise interference, but when the noise increases, the performance drops rapidly. When the variance is 0.04, their F-measures are reduced to 48% and 44% on GH and 46% and 14% on MY, respectively. Additionally, when the noise of the CACD algorithm increases, the running time of the program will also increase greatly. In contrast, the running time of the AS algorithm decreases as the noise increases, because the AS algorithm cannot detect arcs in the case of high noise. Our algorithm achieves the best results on both data sets. As the noise increases, other algorithms gradually lose their detection ability, while our algorithm can still maintain high performance.
The following Figure 6 and Figure 7 show the change of the F-measure in more detail. As the noise increases, the performance of all algorithms decreases to a certain extent. When the variance of Gaussian noise increases from 0 to 0.01, The performance of the Wang, CACD, and AS algorithms degrade more obviously. Additionally, although the AS algorithm has good performance in the case of no noise, its anti-noise performance is the worst. On the data set MY, the variance is higher than 0.1, and AS cannot detect any circle. The performance of the algorithms of RCD and WANG will quickly stabilize at a low level under noise interference. Although the anti-noise of CACD algorithm is better than AS, RCD, WANG, with the increase in noise, the time required for the program to run also increases rapidly. As can be seen from the above figures, with the increase in noise, the performance of our algorithm drops significantly slower than other algorithms, and the running time of the program is within 0.1 s.

5. Discussion

From the results in Section 4, it can be seen that our algorithm has the best performance under the influence of noise. This is mainly because we suppress the interference of noise through the randomness of noise. In our test, our algorithm can still detect the circle under the interference of Gaussian noise with a variance of 0.75. In the pre-processing stage, with the increase in noise level, our algorithm also needs more time to process noise information, but the algorithm time will be stable within 0.2 s. On the whole, this is acceptable. In the stage of circular arc fitting, the five-quadrant segmentation method we use also effectively reduces useless fitting, and saves verification time on the premise of ensuring high performance.
Based on our understanding of circle inspection, we will strive to apply this method to industrial practice areas in the future, such as inspection of PCB boards and Borehole detection.

Author Contributions

Conceptualization, Y.O., H.D. and Y.L.; methodology, Y.O. and Y.L.; software, Y.O., H.D., Y.L., Z.Z. and X.L.; validation, Y.O., Y.L. and Z.Z.; formal analysis, Y.O. and H.D.; investigation, Y.O. and H.D.; resources, Y.O., H.D. and Y.L.; data curation, Y.O.; writing—original draft preparation, Y.O. and Y.L; writing—review and editing, Y.O., H.D., Y.L., Z.Z. and X.L.; visualization, Y.O., H.D., Y.L., Z.Z. and X.L.; supervision, Y.O. and H.D.; project administration, Y.O. and H.D.; funding acquisition, H.D. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

https://github.com/zikai1/CircleDetection (accessed on 14 April 2022).

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Zhang, Z.; Deng, H.; Liu, Y.; Xu, Q.; Liu, G. A Semi-Supervised Semantic Segmentation Method for Blast-Hole Detection. Symmetry 2022, 14, 653. [Google Scholar] [CrossRef]
  2. Zhou, X.; Wang, Y.; Zhu, Q.; Zhang, H.; Chen, Q. Circle detection with model fitting in polar coordinates for glass bottle mouth localization. Int. J. Adv. Manuf. Technol. 2022, 120, 1041–1051. [Google Scholar] [CrossRef]
  3. He, Z.; Ma, Y.; Wang, Z.; Li, E. A novel efficient method for welding spots detection. Multimed. Tools Appl. 2022, 81, 26381–26401. [Google Scholar] [CrossRef]
  4. Nguyen, E.H.; Yang, H.; Deng, R.; Lu, Y.; Zhu, Z.; Roland, J.T.; Lu, L.; Landman, B.A.; Fogo, A.B.; Huo, Y. Circle Representation for Medical Object Detection. IEEE Trans. Med. Imaging 2021, 41, 746–754. [Google Scholar] [CrossRef]
  5. Guerrero, J.M.; Muñoz, A.; Santos, M.; Pajares, G. A new Concentric Circles Detection method for Object Detection applied to Radar Images. J. Navig. 2019, 72, 1070–1088. [Google Scholar] [CrossRef]
  6. Xue, P.; Jiang, Y.; Wang, H.; He, H. Accurate Detection Method of Aviation Bearing Based on Local Characteristics. Symmetry 2019, 11, 1069. [Google Scholar] [CrossRef] [Green Version]
  7. Duda, R.O.; Hart, P.E. Use of the Hough transformation to detect lines and curves in pictures. Commun. Acm 1972, 15, 11–15. [Google Scholar] [CrossRef]
  8. Xu, L.; Oja, E.; Kultanen, P. A new curve detection method: Randomized Hough transform (RHT). Pattern Recognit. Lett. 1990, 11, 331–338. [Google Scholar] [CrossRef]
  9. Chen, T.-C.; Chung, K.-L. An efficient randomized algorithm for detecting circles. Comput. Vis. Image Underst. 2001, 83, 172–191. [Google Scholar] [CrossRef] [Green Version]
  10. Jiang, L. A fast and accurate circle detection algorithm based on random sampling. Future Gener. Comput. Syst. 2021, 123, 245–256. [Google Scholar] [CrossRef]
  11. Jiang, L.; Wang, Z.; Ye, Y.; Jiang, J. Fast circle detection algorithm based on sampling from difference area. Optik 2018, 158, 424–433. [Google Scholar] [CrossRef]
  12. Wang, G. A sub-pixel circle detection algorithm combined with improved RHT and fitting. Multimed. Tools Appl. 2020, 79, 29825–29843. [Google Scholar] [CrossRef]
  13. Le, T.; Duan, Y. Circle detection on images by line segment and circle completeness. In Proceedings of the 2016 IEEE International Conference on Image Processing (ICIP), Phoenix, AZ, USA, 25–28 September 2016; pp. 3648–3652. [Google Scholar]
  14. Von Gioi, R.G.; Jakubowicz, J.; Morel, J.-M.; Randall, G. LSD: A fast line segment detector with a false detection control. IEEE Trans. Pattern Anal. Mach. Intell. 2008, 32, 722–732. [Google Scholar] [CrossRef] [PubMed]
  15. Liu, Y.; Deng, H.; Zhang, Z.; Xu, Q. A Fast Circle Detector with Efficient Arc Extraction. Symmetry 2022, 14, 734. [Google Scholar] [CrossRef]
  16. Yao, Z.; Yi, W. Curvature aided Hough transform for circle detection. Expert Syst. Appl. 2016, 51, 26–33. [Google Scholar] [CrossRef]
  17. Ou, Y.; Deng, H.; Liu, Y.; Zhang, Z.; Ruan, X.; Xu, Q.; Peng, C. A Fast Circle Detection Algorithm Based on Information Compression. Sensors 2022, 22, 7267. [Google Scholar] [CrossRef]
  18. Zhao, M.; Jia, X.; Yan, D.-M. An occlusion-resistant circle detector using inscribed triangles. Pattern Recognit. 2021, 109, 107588. [Google Scholar] [CrossRef]
  19. Canny, J. A computational approach to edge detection. IEEE Trans. Pattern Anal. Mach. Intell. 1986, PAMI-8, 679–698. [Google Scholar] [CrossRef]
  20. Chia, A.Y.-S.; Rahardja, S.; Rajan, D.; Leung, M.K. A split and merge based ellipse detector with self-correcting capability. IEEE Trans. Image Process. 2010, 20, 1991–2006. [Google Scholar] [CrossRef]
  21. Available online: https://github.com/yzjba/CACD (accessed on 15 October 2022).
  22. Lu, C.; Xia, S.; Huang, W.; Shao, M.; Fu, Y. Circle detection by arc-support line segments. In Proceedings of the 2017 IEEE International Conference on Image Processing (ICIP), Beijing, China, 17–20 September 2017; pp. 76–80. [Google Scholar]
  23. Available online: https://github.com/AlanLuSun/Circle-detection (accessed on 15 October 2022).
  24. Prasad, D.K.; Leung, M.K.; Cho, S.-Y. Edge curvature and convexity based ellipse detection method. Pattern Recognit. 2012, 45, 3204–3221. [Google Scholar] [CrossRef]
  25. Jia, Q.; Fan, X.; Luo, Z.; Song, L.; Qiu, T. A fast ellipse detector using projective invariant pruning. IEEE Trans. Image Process. 2017, 26, 3665–3679. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  26. Fornaciari, M.; Prati, A.; Cucchiara, R. A fast and effective ellipse detector for embedded vision applications. Pattern Recognit. 2014, 47, 3693–3708. [Google Scholar] [CrossRef]
  27. Available online: https://github.com/zikai1/CircleDetection (accessed on 14 April 2022).
Figure 1. Location of N(1–8) around P.
Figure 1. Location of N(1–8) around P.
Sensors 23 02732 g001
Figure 2. The results of our algorithm at different noise levels.
Figure 2. The results of our algorithm at different noise levels.
Sensors 23 02732 g002
Figure 3. Intermediate results of the algorithm.
Figure 3. Intermediate results of the algorithm.
Sensors 23 02732 g003
Figure 4. Results of our algorithm under different levels of Gaussian noise.
Figure 4. Results of our algorithm under different levels of Gaussian noise.
Sensors 23 02732 g004
Figure 5. The F-measure results of five algorithms under different levels of Gaussian noise.
Figure 5. The F-measure results of five algorithms under different levels of Gaussian noise.
Sensors 23 02732 g005
Figure 6. Variation of F-measure on dataset GH.
Figure 6. Variation of F-measure on dataset GH.
Sensors 23 02732 g006
Figure 7. Variation of F-measure on dataset MY.
Figure 7. Variation of F-measure on dataset MY.
Sensors 23 02732 g007
Table 1. Result on dataset GH.
Table 1. Result on dataset GH.
DatasetIndexRCDCACDWangASOur
Dataset GHPrecision0.130.500.320.630.65
Recall0.570.730.510.690.71
μ = 0 , σ 2 = 0.00 F-measure0.120.540.290.610.64
Time/s1.681.071.550.10.07
Dataset GHPrecision0.120.460.190.570.66
Recall0.570.570.490.510.63
μ = 0 , σ 2 = 0.01 F-measure0.10.460.120.490.62
Time/s1.681.141.950.090.11
Dataset GHPrecision0.050.280.10.350.58
Recall0.570.320.470.250.48
μ = 0 , σ 2 = 0.04 F-measure0.050.260.080.270.49
Time/s1.692.301.910.060.14
Dataset GHPrecision0.030.220.060.140.51
Recall0.570.220.470.090.38
μ = 0 , σ 2 = 0.08 F-measure0.030.180.060.10.41
Time/s1.692.7820.050.16
Dataset GHPrecision0.020.170.050.050.41
Recall0.550.190.470.040.3
μ = 0 , σ 2 = 0.12 F-measure0.020.150.040.040.33
Time/s1.712.992.10.050.16
Dataset GHPrecision0.020.140.040.020.36
Recall0.540.160.470.020.27
μ = 0 , σ 2 = 0.16 F-measure0.020.120.040.020.3
Time/s1.713.142.180.050.17
Dataset GHPrecision0.020.120.040.010.31
Recall0.520.140.460.010.22
μ = 0 , σ 2 = 0.20 F-measure0.020.100.020.010.25
Time/s1.733.242.250.050.17
Table 2. Result on dataset MY.
Table 2. Result on dataset MY.
DatasetIndexRCDCACDWangASOur
Dataset MYPrecision0.170.620.350.690.63
Recall0.290.540.30.650.61
μ = 0 , σ 2 = 0.00 F-measure0.120.540.250.630.59
Time/s1.691.31.540.090.08
Dataset MYPrecision0.150.450.20.550.63
Recall0.290.310.270.370.55
μ = 0 , σ 2 = 0.01 F-measure0.070.330.140.40.55
Time/s1.712.271.590.090.1
Dataset MYPrecision0.080.360.110.170.6
Recall0.290.230.270.070.49
μ = 0 , σ 2 = 0.04 F-measure0.050.250.080.090.5
Time/s1.732.881.650.070.12
Dataset MYPrecision0.050.290.080.060.56
Recall0.280.180.270.020.44
μ = 0 , σ 2 = 0.08 F-measure0.040.190.060.030.45
Time/s1.753.441.670.060.14
Dataset MYPrecision0.040.240.060.000.52
Recall0.270.150.270.000.39
μ = 0 , σ 2 = 0.12 F-measure0.040.160.040.000.41
Time/s1.753.761.70.050.15
Dataset MYPrecision0.030.20.050.000.48
Recall0.270.130.270.000.36
μ = 0 , σ 2 = 0.16 F-measure0.030.130.040.000.38
Time/s1.7641.710.050.16
Dataset MYPrecision0.020.180.050.000.44
Recall0.250.110.270.000.32
μ = 0 , σ 2 = 0.20 F-measure0.030.120.040.000.34
Time/s1.764.161.750.050.17
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Ou, Y.; Deng, H.; Liu, Y.; Zhang, Z.; Lan, X. An Anti-Noise Fast Circle Detection Method Using Five-Quadrant Segmentation. Sensors 2023, 23, 2732. https://doi.org/10.3390/s23052732

AMA Style

Ou Y, Deng H, Liu Y, Zhang Z, Lan X. An Anti-Noise Fast Circle Detection Method Using Five-Quadrant Segmentation. Sensors. 2023; 23(5):2732. https://doi.org/10.3390/s23052732

Chicago/Turabian Style

Ou, Yun, Honggui Deng, Yang Liu, Zeyu Zhang, and Xin Lan. 2023. "An Anti-Noise Fast Circle Detection Method Using Five-Quadrant Segmentation" Sensors 23, no. 5: 2732. https://doi.org/10.3390/s23052732

APA Style

Ou, Y., Deng, H., Liu, Y., Zhang, Z., & Lan, X. (2023). An Anti-Noise Fast Circle Detection Method Using Five-Quadrant Segmentation. Sensors, 23(5), 2732. https://doi.org/10.3390/s23052732

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop