Next Article in Journal
Electroencephalography Signal Processing: A Comprehensive Review and Analysis of Methods and Techniques
Previous Article in Journal
Homogeneous Sensor Fusion Optimization for Low-Cost Inertial Sensors
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Method for Measuring Parameters of Defective Ellipse Based on Vision

1
Center of Ultra-Precision Optoelectronic Instrument, Harbin Institute of Technology, Harbin 150080, China
2
Key Lab of Ultra-Precision Intelligent Instrumentation, Harbin Institute of Technology, Ministry of Industry and Information Technology, Harbin 150080, China
*
Author to whom correspondence should be addressed.
Sensors 2023, 23(14), 6433; https://doi.org/10.3390/s23146433
Submission received: 14 June 2023 / Revised: 3 July 2023 / Accepted: 12 July 2023 / Published: 15 July 2023
(This article belongs to the Section Optical Sensors)

Abstract

:
Ellipse detection has a very wide range of applications in the field of object detection, especially in the geometric size detection of inclined microporous parts. However, due to the processing methods applied to the parts, there are certain defects in the features. The existing ellipse detection methods do not meet the needs of rapid detection due to the problems of false detection and time consumption. This article proposes a method of quickly obtaining defective ellipse parameters based on vision. It mainly uses the approximation principle of circles to repair defective circles, then combines this with morphological processing to obtain effective edge points, and finally uses the least squares method to obtain elliptical parameters. By simulating the computer-generated images, the results demonstrate that the center fitting error of the simulated defect ellipses with major and minor axes of 600 and 400 pixels is less than 1 pixel, the major and minor axis fitting error is less than 3 pixels, and the tilt angle fitting error is less than 0.1°. Further, experimental verification was conducted on the engine injection hole. The measurement results show that the surface size deviation was less than 0.01 mm and the angle error was less than 0.15°, which means the parameters of defective ellipses can obtained quickly and effectively. It is thus suitable for engineering applications, and can provide visual guidance for the precise measurement of fiber probes.

1. Introduction

With the development of the precision manufacturing industry and the increasing demand for technical indicators, micropore array structures combining the macro and micro scales have emerged in various high-performance devices, such as micropore arrays on aircraft engine injection disks with over 4700 micropores. The shape and size of the pores have a significant impact on the performance of the parts [1]. In the process of processing and usage, there may also be defects on the surfaces of micropores. The quality of microporous structure processing will determine the quality of the components, so the rapid detection of parameters is of great significance. Image methods, due to their ability to quickly obtain data, have great potential for use in visual measurement or multi-sensor fusion parameter measurement.
For a spatial aperture, when the imaging plane is not parallel to the plane where the aperture is located, the projection of the formed image on the camera imaging plane takes the form of an ellipse. The shape and size of the circular hole can be transformed from an ellipse, which means accurate acquisition of elliptical parameters is crucial. There are three general ellipse fitting algorithms, namely, the method of least squares, the method based on Hough transform, and the method based on arc segment extraction.
Ellipse fitting based on the least squares method is an optimal estimation technique that uses the maximum likelihood method to minimize the sum of squares of measurement errors when the random error is normal distribution. However, it is greatly affected by outliers, so the focus of improvements is to remove outliers. Li [2] used the double segmentation method to segment two overlapping ellipses to obtain two sets of effective ellipse edge points. Maini [3] proposed an improved ellipse direct least squares fitting method, which utilized normalization techniques and introduced disturbance and resampling strategies to make it superior in terms of robustness, but it increased the computational burden. Liang [4] constructed a new non-convex nonlinear optimization formula to improve the ability to suppress outliers, but it also has the problem of low computational efficiency. Azarakhsh [5] proposed a real-time ellipse detection method, which first extracts all contours from the input image using the ad hoc method, and then performs ellipse fitting on the contours using the least squares method. However, this method achieves lower accuracy in detecting elliptical targets with short distance.
The second ellipse-fitting method is the method based on Hough transform. Its basic idea is consistent with Hough line detection, which first maps the data to a specific parameter space and then votes to obtain the ellipse parameters. However, due to the fact that the ellipse has five free parameters, the time and memory costs are unacceptable. Some scholars have also proposed improved Hough ellipse detection algorithms. The usual approach is to use the geometric properties of ellipses and edge direction information for parameter decomposition [6,7,8], but this still requires a lot of time and memory. Xu [9] proposed a random Hough transform method to reduce the memory requirement. Some scholars have applied this in ellipse detection [10,11], which requires five points to determine the ellipse parameters. Chen [12] Yanxin proposed a random Hough transform ellipse detection method that only needs three points to determine the ellipse parameters, but it is still time-consuming. Subsequently, Kwon [13] proposed a method for the rapid detection of ellipses using the geometric characteristics of three points on an ellipse, using the normal and differential equations of the ellipse. This method achieved good results in both detection reliability and computational speed. Yasuaki [14] decomposed the parameter space in the Hough transform into each parameter, and performed serial calculations on each parameter, which were implemented on a GPU system to reduce computational time and space.
The third ellipse fitting method is based on arc segment extraction, which has been proposed in recent years, and the basic idea is to replace discrete edge points with a set of continuous edge points named arc segment that form an ellipse as ellipse detection data. Prasad and Leung used elliptical arcs to fit ellipses, and through fitting calculations, the center of the ellipse can be obtained [15]. Afterwards, Wang adopted a top-down strategy by merging edge points into ellipses and using an integral chain to accelerate the fitting process [16]. Lu proposed a method based on arc-supported line segments, which uses the Line Segment Detector (LSD) algorithm for arc segment extraction and has high detection accuracy [17,18]. Meng used the arc segment adjacency matrix to obtain a method for combining all arc segments. This construction method will consume a lot of computer memory [19].
Due to the existence of defects, the current ellipse detection methods have significantly worse fitting performance and poor robustness. Moreover, in order to ensure the accuracy of visual measurement, the size of the image obtained by vision is too large. This greatly increases the time and cost. For the combination of array structure vision and probe measurement, the imaging time of a single hole feature in the field of view is limited [20], so there is a requirement related to the fitting time of elliptical features. Moreover, the existing processing methods do not fully consider the influence of elliptical defects and interference points, resulting in a decrease in the accuracy of ellipse fitting. As such, this article proposes an edge repair algorithm based on the approximation principle of circles to repair defect ellipses, thereby proposing outliers, and the image repaired by the least squares method is used for ellipse fitting, which can obtain ellipse parameters quickly and accurately.

2. Measurement Principles and Analysis

2.1. Camera Imaging Model

For the aperture to be measured, the camera is first used to obtain an image of the micropores. The projected image is an ellipse on the camera’s imaging plane. To obtain the geometric information of the micropores, a perspective projection model of the geometric correspondence between the image points and the spatial object points needs to be established. The projection position p of any point P on the micropore in the image is the intersection of the line connecting the optical center O and point P with the image plane, as shown in Figure 1.
Ow-XwYwZw is the world coordinate system. Oc-XcYcZc is the camera coordinate system. O1-xy is the imaging plane coordinate system. Oo-uv is the pixel coordinate system. The coordinates of point P in the world coordinate system are (Xwp, Ywp, Zwp). The coordinates in the camera coordinate system are (Xcp, Ycp, Zcp). The coordinates of point p in the imaging plane coordinate system are (xp, yp). In the pixel coordinate system, the coordinates are (up, vp). The formula of conversion from the world coordinate system point Pw (Xw, Yw, Zw) to the camera coordinate system imaging point Pc (Xc, Yc, Zc) is expressed as the following formula, where R is a rotated orthogonal matrix and T is a translation matrix:
X c Y c Z c 1 = R T 0 T 1 X w Y w Z w 1
In the camera coordinate system, the optical center Oc of the camera is the origin, the Zc axis is the optical axis, the Xc axis is parallel to the imaging coordinate system’s x-axis, and the Yc axis is parallel to the imaging coordinate system’s y-axis. The vertical distance from the optical center Oc to the imaging plane O1−xy is the effective focal length f. According to the projection principle, the conversion model between the camera coordinate system and the imaging coordinate system can be expressed as follows:
x = f X c Z c y = f Y c Z c
The matrix form can be expressed as follows:
Z c x y 1 = f 0 0 0 0 f 0 0 0 0 f 0 X c Y c Z c 1
The coordinates of the origin O1 of the imaging plane coordinate system in the pixel coordinate system are (u0, v0), where dx and dy, respectively, represent the actual size of each pixel in the x and y directions. The point coordinates in the pixel coordinate system can be represented as follows:
u = x dx + u 0 v = y dy + v 0
The matrix form of homogeneous coordinates is:
u v 1 = 1 / d x 0 u 0 0 1 / dy v 0 0 0 1 x y 1
From (1) to (5), it can be concluded that the relationship between the camera coordinate system and the pixel coordinate system is:
Z c u v 1 = 1 / d x 0 u 0 0 1 / dy v 0 0 0 1 f 0 0 0 0 f 0 0 0 0 f 0 X c Y c Z c 1
Next, we can obtain the correspondence between the world coordinate system point Pw and the pixel coordinate system point p:
Z c u v 1 = f x 0 u 0 0 f y v 0 0 0 1 R T 0 T 1 X w Y w Z w 1
We then normalize the focal lengths in the x and y directions in the equation, where fx and fy are equivalent focal lengths (fx = f/dx, fy = f/dy).

2.2. Ellipse Fitting Based on Least Squares Method

Ellipse fitting based on the least squares method is an optimal estimation technique derived from the maximum similarity method when the random error is normal distribution [21], which reduces the sum of distances between all points to be fitted and the fitting curve to its minimum. The general form of an ellipse is:
Ax 2 + Bxy + Cy 2 + Dx + Ey + 1 = 0
So the goal of the least squares method is to minimize the objective function f(A, B, C, D, E), which is defined as follows:
f ( A , B , C , D , E ) = i = 1 n ( Ax i 2 + Bx i y i + Cy i 2 + Dx i + Ey i + 1 ) 2
Then, the linear function is constructed through the extreme value theorem, and the ellipse parameters are solved by combining the constraint conditions. From the geometric properties of the ellipse, the parameters are:
x e = BE 2 CD 4 AC B 2 y e = BD 2 AE 4 AC B 2 a = 2 ( Ax e 2 + Cy e 2 + Bx e y e 1 ) A + C + ( A C ) 2 + B 2 b = 2 ( Ax e 2 + Cy e 2 + Bx e y e 1 ) A + C ( A C ) 2 + B 2 φ = 1 2 arctan B A C
Among them, (xe, ye) represents the center of the ellipse. (a, b) represent the major and minor axes of the ellipse, and φ is the inclination angle.
According to the principle of the least square method, too many outliers can lead to the random error not conforming to normal distribution, which will greatly affect the fitting effect.

2.3. A Defect Edge Repair Model and Evaluation Based on Approximate Circles

In the actual production and manufacturing of precision components, machining errors such as burrs may occur in the circular features to be measured due to processing methods, or significant errors may occur in the binary image results due to surface indentation. This can affect measurement accuracy during data fitting. The repair method for defective circles is mainly based on the principle that circles can be approximated as regular n-sided shapes. The schematic diagram is shown in Figure 2.
Based on this issue, this article proposes a circular edge repair method based on the principle of circle approximation. It is based on the edge sequences of a circle obtained through edge detection after binarization, and connects the edge sequence points in a straight line to remove the protruding parts. Finally, the region with the largest connected domain is taken as the repaired feature area. The schematic diagram of edge repair is shown in Figure 3.
Firstly, the method obtains an ordered edge sequence of features from the feature map that need to be repaired, and then traverses the edge sequence so that the traversed edge point is a (xa, ya), and its related point b (xb, yb) is the edge point with a sequence number after it, and the following conditions are met:
( x a x b ) 2 + ( y a y b ) 2 r 1
R is the repair radius. The edge repair algorithm is:
c ( x c , y c ) = 0 ,   ( y a y b ) x c + ( x b x a ) y c + x a y b x b y a ( y a y b ) 2 + ( x b x a ) 2 1
min ( x a , x b )   <   x c <   max ( x a , x b ) min ( y a , y b )   <   y c <   max ( y a , y b )
C(xc, yc) is the repair point, with its physical meaning being points a and b forming a single point on the line segment. We used the above method to process a regular hexagon, and included the Bresenham algorithm of computer graphics in the method’s implementation when cutting. The results are shown in Figure 4.
From Figure 4, it can be seen that this method is based on the approximation principle of circles. The cutting part is shown in red in Figure 4b, and the repair result is shown in Figure 4c. It can be seen that this method can effectively cut the features of the approximate circle into circles, that is, repair the shape of the approximate circle in circles. The same applies when detecting an ellipse. After multiple repairs, a smooth ellipse can be obtained, which can be used as an approximate circular target. Therefore, the limit on the number of repairs can be evaluated using circularity. The definition of circularity a is [22]:
a = 4 π S C 2
Among them, S is the area of the target and C is the circumference of the target. When the target shape is closer to a circle, its value is closer to 1. Therefore, whether the difference in roundness between the two repairs is less than the given threshold T is used to determine whether the repair is completed.
After obtaining the target that approximates a circle, a morphological dilation algorithm is used to process the repaired image. During each dilation process, the intersection of the repaired and original images’ edge points is recorded, and the part where the number of intersecting edge points increases due to each dilation is recorded. When the proportion of intersecting edge points exceeds the threshold, the dilation operation is stopped, and the edge point showing the largest increase in the number of intersecting points is taken as the effective edge point. By performing least squares ellipse fitting as described in the second section, the ellipse parameters can be obtained.

3. Experiment and Verification

3.1. Simulation Experiment

To simulate and validate the method proposed in this article, a computer is first used to generate an ellipse with known parameters, as shown in Figure 5. The center position of the ellipse is (300, 400), the major and minor axes are (600, 400), and the tilt angle is 0 degrees.
We then add three types of defects to it. As shown in Figure 6, there are protruding defects, concave defects, and mixed defects.
The fitting results obtained by using the edge repair fitting method mentioned in this article are shown in Figure 7.
Their respective fitting parameter results are shown in Table 1.
From the simulation results shown in Figure 7 and Table 1, it can be seen that the method proposed in this article can effectively eliminate convex outliers and concave outliers, and obtain accurate ellipse parameters. The center fitting error of the generated defect ellipse with a major and minor axis of 600 and 400 pixels is less than 1 pixel, the major and minor axis fitting error is less than 3 pixels, and the tilt angle fitting error is less than 0.1°.

3.2. Experimentation

In order to verify the effectiveness of the algorithm when used in practical applications, the measurement system shown in Figure 8a is used to obtain part images. The base and Z-axis column of the measurement system are made of marble to ensure the stability of the system. The workbench can move along the x, y, and z axes, and there is a camera installed on the z axis. A PointGray model FL3-U332S2C-CS CCD camera (Point Grey Research, Richmond, BC, Canada) is used, and the NAVITAR 12× zoom combination lens is used. After calibration, the average reprojection error is about 0.05 pixels. The measured parts are two sub-millimeter inclined micropores. The images of large and small holes with defect features are shown in Figure 9, where elliptical defects can be clearly seen.
Firstly, an image segmentation method based on image gradient information is used to obtain the elliptical feature positions for the part image. Then, based on the microhole’s features, they are binarized. The results are shown in Figure 10b.
For defect images, certain methods must be used to remove the edge of the defect, otherwise fitting it will result in incorrect fitting results, as shown in Figure 10c. Therefore, this article proposes a defect circle repair method, as shown in Section 2, which repairs the binary image shown in Figure 10b multiple times, as shown in Figure 11. For the repair of defect images, the roundness threshold for the repair cutoff is set as 1.24, based on the experimental results. Finally, both the small and large holes were repaired up to the fourth stop.
Next, we performed a dilation operation on the binarized image, and a schematic diagram of the dilation operation is shown in Figure 11.
Figure 12 represents the difference between the corresponding repaired image and the original image to indicate their intersection. The green part represents the difference between the original image and the repaired image, and the red part represents the difference between the repaired image and the original image. The increase in the number of edge points at each intersection is shown in Figure 13.
From the bar chart, for small holes, we select the edge coverage point increased by the third expansion with the highest increment as the effective edge point. For large holes, we still select the edge coverage point increased by the third expansion as the effective edge point, and the corresponding edge points are shown in Figure 14.
We performed the least squares ellipse fitting described in the second section on the elliptical hole after edge repair, and the fitting results are shown in Figure 15.
For the evaluation of the measurement results yielded by the method proposed in this article, we used the OGPMVP200 (Quality Vision International, Inc, Rochester, NY, USA) measuring instrument to fit the same measured holes, and compared them with the measurement results derived with the method proposed in this article. The measurement data obtained are shown in Table 2.
From Table 2, it can be seen that the inspection objects are all qualified products. The first row shows the results of the large and small holes measured by OGP. The first row, second column, and third column show the machining dimensions of the small circle and the fitting results of OGP, respectively. The first row, fourth column, and fifth column show the machining dimensions of the large circle and the fitting results of OGP, respectively. The second row shows the measurement results yielded by this method. The actual machining size of the small hole is 1.9 mm in diameter, with a tolerance of 0.05 mm. The machining inclination angle is 26°, and the actual machining size of the large hole is 2.3, with a tolerance of 0.05 mm. From the fitting results of the first line OCP, it can be seen that due to the presence of surface defects, the measurement results of the large and small holes obtained by the OGP measuring instrument are larger than the size of the workpiece. The diameters of the processed large and small circles are 1.9 mm and 2.3 mm, respectively, with a size error of about 0.1 mm and a maximum angle error of 0.8°. However, the algorithm proposed in this article produces results with a size error of less than 0.01 mm and an angle error of less than 0.15°, thus meeting the measurement requirements. From this, we can see the effectiveness and accuracy of the method proposed in this paper.

4. Conclusions

This article proposes a defect ellipse edge repair and fitting method based on vision for the rapid measurement of array micro oblique holes with defects such as scratches and burrs. Firstly, an edge repair algorithm is designed using the approximation principle of circles, and then the repair process is evaluated. Furthermore the repaired edges are obtained by firstly using morphological processing methods to obtain effective edge points of the ellipse to be fitted, which can effectively remove protruding outliers and concave outliers from the edge of the ellipse, and then use the least squares method is used to obtain effective ellipse parameters. This method is simple and effective in implementation, and can quickly obtain the parameters of defect ellipses. Through simulation and experiments, it can be determined that for oblique microwell images of 1920 × 1080 pixels, the dimensional variation measured by this method is less than 0.01 mm, and the angle error is less than 0.15°, which meets the accuracy requirements of an actual measurement. This method proposed in this article has a high measuring speed, which makes it suitable for engineering applications. In subsequent measurements, it can provide visual guidance for the precise measurement of fiber probes.

Author Contributions

Methodology, H.Z.; software, H.Z.; validation, J.C.; formal analysis, H.Z.; investigation, H.Z. and J.C.; resources, J.C.; data curation, H.Z.; writing—original draft preparation, H.Z. and L.W.; writing—review and editing, H.Z.; visualization, H.Z., W.L. and L.W; supervision, J.C.; project administration, J.C.; funding acquisition, J.C. and J.T. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Natural Science Foundation of China 52075131.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Jeong, S.; Bae, J.; Yoon, S.; Yoon, Y. Effect of self-excited instability on single liquid swirl injector flow characteristics. Acta Astronaut. 2021, 178, 452–462. [Google Scholar] [CrossRef]
  2. Li, Y.; Zheng, J.; Pan, D.; Gao, D. Center Extraction Method of Multiple and Overlapping Faculae Based on Ellipse Fitting. Acta Opt. Sin. 2020, 40, 67–74. [Google Scholar]
  3. Maini, E.S. Enhanced direct least square fitting of ellipses. Int. J. Pattern Recognit. Artif. Intell. 2006, 20, 939–953. [Google Scholar] [CrossRef]
  4. Liang, J.; Li, P.; Zhou, D.; So, H.C.; Liu, D.; Leung, C.-S.; Sui, L. Robust ellipse fitting via alternating direction method of multipliers. Signal Process. 2019, 164, 30–40. [Google Scholar] [CrossRef]
  5. Keipour, A.; Pereira, G.A.; Scherer, S. Real-Time Ellipse Detection for Robotics Applications. IEEE Robot. Autom. Lett. 2021, 6, 7009–7016. [Google Scholar] [CrossRef]
  6. Li, Q.; Xie, Y. Randomised hough transform with error propagation for line and circle detection. Pattern Analvsis Appl. 2003, 6, 55–64. [Google Scholar] [CrossRef] [Green Version]
  7. Nguyen, T.M.; Ahuja, S.; Wu, Q.M.J. A real-time ellipse detection based on edge grouping. In Proceedings of the 2009 IEEE International Conference on Systems, Man and Cybernetics, San Antonio, TX, USA, 1 October 2009. [Google Scholar]
  8. Soh, Y.; Bae, J.; Kim, D.; Kim, H. A New Method for Ellipse Fitting in Satellite Images. In Proceedings of the 2009 Second International Conference on Intelligent Computation Technology and Automation, Changsha, China, 10–11 October 2009. [Google Scholar]
  9. 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]
  10. Basca, C.A.; Talos, M.; Brad, R. Randomized Hough Transform for Ellipse Detection with Result Clustering. In Proceedings of the EUROCON 2005—The International Conference on “Computer as a Tool”, Belgrade, Serbia, 21–24 November 2005. [Google Scholar]
  11. Jiang, L. Efficient randomized Hough transform for circle detection using novel probability sampling and feature points. Optik 2012, 123, 1834–1840. [Google Scholar] [CrossRef]
  12. Chen, X.; Qi, F. A new ellipse detection method using randomized Hough transform. J. Infrared Millim. Terahertz Waves 2000, 19, 43–47. [Google Scholar]
  13. Kwon, B.K.; Teng, Z.; Roh, T.J. Fast ellipse detection based on three point algorithm with edge angle information. Int. J. Control Autom. Syst. 2016, 14, 804–813. [Google Scholar] [CrossRef]
  14. Ito, Y.; Ogawa, K.; Nakano, K. Fast Ellipse Detection Algorithm Using Hough Transform on the GPU. In Proceedings of the 2011 Second International Conference on Networking and Computing, Osaka, Japan, 30 November–2 December 2011. [Google Scholar]
  15. Prasad, D.K.; Leung, M.K.H. Clustering of ellipses based on their distinctiveness: An aid to ellipse detection algorithms. In Proceedings of the 2010 3rd International Conference on Computer Science and Information Technology (ICCSIT), Chengdu, China, 9–11 July 2010. [Google Scholar]
  16. Wang, Y.; He, Z.; Liu, X.; Tang, Z.; Li, L. A fast and robust ellipse detector based on top-down least-square fitting. In Proceedings of the British Machine Vision Conference, Swansea, UK, 7–10 September 2015. [Google Scholar]
  17. Lu, C.; Xia, S.; Shao, M.; Fu, Y. Arc-Support Line Segments Revisited: An Efficient High-Quality Ellipse Detection. IEEE Trans. Image Process. 2020, 29, 768–781. [Google Scholar] [CrossRef] [PubMed]
  18. Gioi, R.G.V.; Jakubowicz, J.; Morel, J.-M.; Randall, G. LSD: A fast line segment detector with a false detection control. IEEE Trans. Pattern Anal. Mach. Intell. 2010, 32, 722–732. [Google Scholar] [CrossRef] [PubMed]
  19. Meng, C.; Li, Z.; Bai, X.; Zhou, F. Arc Adjacency Matrix-Based Fast Ellipse Detection. IEEE Trans. Image Process. 2020, 29, 4006–4020. [Google Scholar] [CrossRef] [PubMed]
  20. Li, T.; Cui, J.; Zhang, H. Image segmentation and fast scanning method of vision-probe measurement system. In Proceedings of the Tenth International Symposium on Precision Mechanical Measurements, Qingdao, China, 15–17 October 2021; Volume 12059, pp. 86–93. [Google Scholar]
  21. Yan, B.; Wang, B.; Li, Y. Optimal ellipse fitting method based on least-square principle. J. Beijing Univ. Aeronaut. Astronaut. 2008, 34, 295–298. [Google Scholar]
  22. Gu, M.; Cai, Z.; Li, Y. Traffic light recognition with circularity and color histogram. Comput. Eng. Des. 2012, 33, 243–247. [Google Scholar]
Figure 1. Camera imaging model.
Figure 1. Camera imaging model.
Sensors 23 06433 g001
Figure 2. Approximation of circles.
Figure 2. Approximation of circles.
Sensors 23 06433 g002
Figure 3. Repair of circles.
Figure 3. Repair of circles.
Sensors 23 06433 g003
Figure 4. Repair of a regular polygon. (a) Original image. (b) Repair result graph. (c) Cutting result graph.
Figure 4. Repair of a regular polygon. (a) Original image. (b) Repair result graph. (c) Cutting result graph.
Sensors 23 06433 g004
Figure 5. Standard ellipse.
Figure 5. Standard ellipse.
Sensors 23 06433 g005
Figure 6. Defect ellipse. (a) Protruding defects; (b) concave defects; (c) mixed defects.
Figure 6. Defect ellipse. (a) Protruding defects; (b) concave defects; (c) mixed defects.
Sensors 23 06433 g006
Figure 7. Defect ellipse fitting results.
Figure 7. Defect ellipse fitting results.
Sensors 23 06433 g007
Figure 8. Measurement system. (a) A 3D diagram of the measurement system; (b) a physical diagram of the measurement system.
Figure 8. Measurement system. (a) A 3D diagram of the measurement system; (b) a physical diagram of the measurement system.
Sensors 23 06433 g008
Figure 9. Tested oblique hole image: (a) small hole; (b) large hole.
Figure 9. Tested oblique hole image: (a) small hole; (b) large hole.
Sensors 23 06433 g009
Figure 10. Defect micropore characteristics. (a1) Aerospace engine injection disk micropores (small). (a2) Aerospace engine injection disk micropores (large). (b1) Binary graph (small). (b2) Binary graph (large). (c1) Direct least squares fitting (small). (c2) Direct least squares fitting (large).
Figure 10. Defect micropore characteristics. (a1) Aerospace engine injection disk micropores (small). (a2) Aerospace engine injection disk micropores (large). (b1) Binary graph (small). (b2) Binary graph (large). (c1) Direct least squares fitting (small). (c2) Direct least squares fitting (large).
Sensors 23 06433 g010
Figure 11. Repair of defective circles. (a) Small hole; (b) large hole.
Figure 11. Repair of defective circles. (a) Small hole; (b) large hole.
Sensors 23 06433 g011
Figure 12. Schematic diagram of the difference between the repaired image and the original image. (a) Small hole; (b) large hole.
Figure 12. Schematic diagram of the difference between the repaired image and the original image. (a) Small hole; (b) large hole.
Sensors 23 06433 g012
Figure 13. New intersection edge points added after expansion. (a) Small hole; (b) large hole.
Figure 13. New intersection edge points added after expansion. (a) Small hole; (b) large hole.
Sensors 23 06433 g013
Figure 14. Effective edge point of defect ellipse. (a) Small hole; (b) large hole.
Figure 14. Effective edge point of defect ellipse. (a) Small hole; (b) large hole.
Sensors 23 06433 g014
Figure 15. Ellipse fitting results. (a) Small hole; (b) large hole.
Figure 15. Ellipse fitting results. (a) Small hole; (b) large hole.
Sensors 23 06433 g015
Table 1. Defect ellipse fitting parameters.
Table 1. Defect ellipse fitting parameters.
Type of EllipseCenter of a Circle
(pix)
Long and Short Axes
(pix)
Angle of Roll
(°)
standard ellipse(300, 400)(600, 400)0
protruding defect ellipse(300.03, 400.50)(597.94, 399.75)−0.02
concave defect ellipse(300.00, 400.14)(599.45, 399.97)−0.02
mixed defect ellipse(300.28, 399.78)(597.43, 398.89)−0.09
Table 2. Ellipse machining parameters and fitting parameters.
Table 2. Ellipse machining parameters and fitting parameters.
MethodParameterSmall HoleFitting ResultsLarge HoleFitting Results
OGPshort axis (mm)1.91.99422.32.4147
long axis (mm)-2.2119-2.5034
angle of roll (°)2625.781615.29
the method of this articleshort axis (mm)1.91.90272.32.3081
long axis (mm)-2.1176-2.4025
angle of roll (°)2626.041616.11
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

Zhang, H.; Wang, L.; Liu, W.; Cui, J.; Tan, J. A Method for Measuring Parameters of Defective Ellipse Based on Vision. Sensors 2023, 23, 6433. https://doi.org/10.3390/s23146433

AMA Style

Zhang H, Wang L, Liu W, Cui J, Tan J. A Method for Measuring Parameters of Defective Ellipse Based on Vision. Sensors. 2023; 23(14):6433. https://doi.org/10.3390/s23146433

Chicago/Turabian Style

Zhang, He, Li Wang, Wenya Liu, Jiwen Cui, and Jiubin Tan. 2023. "A Method for Measuring Parameters of Defective Ellipse Based on Vision" Sensors 23, no. 14: 6433. https://doi.org/10.3390/s23146433

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