Applied Sciences (Sep 2024)

A Circle Center Location Algorithm Based on Sample Density and Adaptive Thresholding

  • Yujin Min,
  • Hao Chen,
  • Zhuohang Chen,
  • Faquan Zhang

DOI
https://doi.org/10.3390/app14188453
Journal volume & issue
Vol. 14, no. 18
p. 8453

Abstract

Read online

How to acquire the exact center of a circular sample is an essential task in object recognition. Present algorithms suffer from the high time consumption and low precision. To tackle these issues, we propose a novel circle center location algorithm based on sample density and adaptive thresholding. After obtaining circular contours through image pre-processing, these contours were segmented using a grid method to obtain the required coordinates. Based on the principle of three points forming a circle, a data set containing a large number of samples with circle center coordinates was constructed. It was highly probable that these circle center samples would fall within the near neighborhood of the actual circle center coordinates. Subsequently, an adaptive bandwidth fast Gaussian kernel was introduced to address the issue of sample point weighting. The mean shift clustering algorithm was employed to compute the optimal solution for the density of candidate circle center sample data. The final optimal center location was obtained by an iteration algorithm. Experimental results demonstrate that in the presence of interference, the average positioning error of this circle center localization algorithm is 0.051 pixels. Its localization accuracy is 64.1% higher than the Hough transform and 86.4% higher than the circle fitting algorithm.

Keywords