Abstract
This paper describes methods of determining important measurement parameters of large bent pipes with diameters of up to 1.2 m for heavy industry, which can be obtained instantly from a vision system. The article presents, in detail, modeling methods of the bending angle, radius, and straight sections of the bent pipe. The system is able to detect the start and end of such sections, which is novel in automatic pipe measurement. The article also demonstrates the use of a modified Hough transform in line and curve fitting and the necessary image preprocessing. The complete system operates on distortion models and image projection dedicated for pipe models with images taken from a single camera.
1. Introduction
Vision systems play a crucial role in modern manufacturing, enabling continuous monitoring and real-time adjustment of production parameters to ensure compliance with increasingly stringent quality standards. Despite significant technological progress, there remains a noticeable lack of simple and effective measurement systems dedicated to applications in heavy industry.
The purpose of this study is to develop algorithms for a vision-based measurement system intended to inspect the dimensions and shapes of large-scale bent pipes used in heavy-industry applications. A key objective is also to evaluate the measurement accuracy of the proposed system using data acquired from a single-camera setup and to compare the results with those obtained from a coordinate measuring machine (CMM).
The use of low-cost 2D vision systems for the dimensional inspection of 3D objects is a worthwhile approach, offering a balance between system simplicity, cost-effectiveness, and acceptable measurement accuracy in industrial environments.
Our system is designed to verify the dimensional conformity of nominal cylindrical and toroidal geometries from a single image and is not intended to detect defects such as ovalization or local variations in the radius of the bend.
The authors previously published an ICCS 2023 paper describing the method of mathematical modeling of bent pipes and camera calibration, also presenting quantitative and qualitative measurements []. The focus was on single- and double-bending models in one plane, and the perspective projection for images obtained from the vision system was described there. In this work, we extend that research and present methods for estimating parameters relevant to heavy-industry inspection. It was assumed that the bent pipe model is already known and that an appropriate perspective projection was made.
1.1. List of Main Contributions
The new elements that are worth emphasizing in this paper are the following: (1) algorithms for the necessary image pre-processing, (2) an algorithm for fitting straight lines or curves to the contour of the bent pipe and a modification of Hough transform, and (3) a mathematical method for determining the pipe diameter and bending angle, as well as the beginning and end of straight sections in bent pipes.
1.2. Related Works
A wide range of methods for shape measurement and classification have been developed, which can be broadly divided into contact and non-contact techniques [,]. Contact methods, such as coordinate measuring arms [,], offer high accuracy, but they require manual operation and are not suitable for automated inspection of large-scale bent pipes. As a result, non-contact optical methods—both active (e.g., laser scanning, structured light projection [,]) and passive (e.g., photogrammetry, stereovision [,])—have become increasingly popular for the measurement and inspection of complex pipe geometries. However, the application of active optical methods, such as fringe projection [] to long metallic pipes, is limited by issues with specular reflections and the difficulty of ensuring uniform projection and calibration over large areas []. Consequently, recent research has focused on vision-based and multi-view approaches, as summarized below.
In recent years, several studies have been published on optical inspection and measurement systems for bent pipes and tubes. Most of these systems reconstruct the 3D surface of the pipe using passive multi-view approaches.
In [], a preliminary discretization of the point cloud in circles was used. In experiments carried out in a measurement space of , a standard deviation of was achieved for dimensional length A (Figure 1 at Ref. []), which measured . The relative uncertainty for the dimension length was .
The study presented in [] introduced a photometric linearization method to eliminate light reflections on the surface of the pipe and a method to determine the length of the centerline. In the experiments, an eight-camera vision system with a measurement area of was utilized. During the measurement, a standard deviation of was achieved for the length of the centerline, which was measured as . The relative uncertainty for measuring the length of the centerline was .
The system described in [] consists of 16 cameras with a measurement volume of . The experiments carried out yielded an average squared measurement error of for a bending radius of . The relative uncertainty for the radius was .
The work presented in [] describes a pipe measurement system based on stereo vision, incorporating a perspective model of the pipe to enhance the accuracy of the reconstructed spatial axis.
Huang [] conducted an error analysis of 3D reconstruction for bent pipes using a multicamera setup divided into stereo pairs. In addition, a backlit work table was used to improve the visibility of the pipes features.
In [], a system was presented to reconstruct the shape of pipes from images captured by a three-view vision system. The study accounted for perspective distortions for each camera, and the pipe surfaces were described using circles of the same diameter. An average squared measurement error of was obtained for pipes with a bending radius of . The relative uncertainty of the measurement of the radius of the bend was .
In [], a multi-camera system with a working area of , comprising eight cameras, was introduced. For the key points determined on the pipe, an average standard deviation of was obtained with a pipe length of .
Active methods have also been explored, particularly those based on laser scanning. In [], a 3D model of a pipeline was generated from a point cloud, achieving a mean standard deviation of .
The study in [] presents a system for continuous monitoring of the bending angle both during and immediately after the forming process. A laser-based device mounted at the end of the pipe was used for this purpose.
Classical single-view metrology establishes how absolute dimensions can be inferred from a single perspective image given minimal geometric references and calibration constraints []. Robust ellipse or circle modeling in perspective is widely used for cylindrical objects and underpins many industrial vision solutions []. More recent work explores the combination of geometric models with learning-based ellipse prediction for improved stability []. In contrast, deep learning approaches in pipe inspection focus primarily on detecting and segmenting defects in CCTV or radiographic imagery [,] and typically do not report the absolute geometric parameters of large bent pipes from a single image. Our model-based, single-camera pipeline complements these efforts by providing explicit parameter estimation (diameter, bend angle and radius, straight section lengths) with accuracy referenced to a CMM.
2. Materials and Methods
The calculations and algorithms described in this work were implemented using Wolfram Mathematica (Version10.0); this is a research prototype, not a finalized engineering implementation.
Image acquisition was carried out with a camera PIXELINK PL–D7715CU (Pixelink, Inc., Ottawa, ON, Canada), featuring a CMOS sensor ( resolution), equipped with a TECHSPEC 58–000 fixed focal length lens with a focal length of .
For the purposes of this study, a laboratory measurement station was prepared on a 1:4 scale, replicating a real marking table used on the production line. The table was made of laser-cut steel sheets to reproduce real working conditions, including the presence of gaps between the table segments and surface imperfections. The dimensions of the laboratory table are , and the distance from the camera to the surface of the table is . Figure 1 shows a side view of the measurement station.
Figure 1.
Side view of the laboratory measurement station. The surface of the table is designed to replicate the segmented marking table used in real industrial conditions.
We measure the parameters of a bent pipe lying freely on the measuring table based on its external contour observed on the camera image. Consider a vision system that uses two example images taken at the measuring station. The images have a resolution of and are stored in the RGB color space. Our goal is to determine the parameters of the bent pipe. We assume that the measured object is a combination of cylindrical and toroidal surfaces with a constant radius of the cross-section. This makes it possible to measure the parameters of the object based on the image obtained from one camera setting. It should be mentioned here that this is an approximation; in reality, the arc of the bent pipe consists of many smaller arcs with different radii, and in addition, the pipe undergoes ovalization (change of the shape of the pipe cross section from circular to elliptical).
The parameters subjected to control are marked in Figure 2 and are as follows: bending angle γ, bending radius R, straight sections lengths , and pipe diameter D.
Figure 2.
Parameters of the bent pipe—bending angles , bending radius , lengths of straight sections , , pipe diameter , initial point of the centerline , the slope of the centerline at point to axis : .
The desired parameter values can be determined based on the knowledge of the edge points of the pipe determined in the plane containing its centerline (Figure 2). In the case where the pipe with one bent arc lies freely on the measuring table, we obtain the edge points by projecting it straight onto the plane of the measuring table. The edge points—the contour of the pipe—are also visible in the digital photo from the station. However, it should be emphasized that the outline of the pipe observed from the camera point can be interpreted as its central (perspective) projection onto the surface of the table.
2.1. Processing and Segmentation of Images
The segmentation process leads to the determination of identifiable sets of points from a digital image, which in this case are sets of edge points of bent pipes lying freely on the measurement table.
Consider a vision system that utilizes two sample images captured at the measurement station. Both images have a resolution of and are stored in the RGB color space.
The first step is to remove the background of the image with the pipe by subtracting the preliminary image on which the object under study is not located.
To improve contrast and reduce differences between images, we perform histogram equalization for both images []. This method flattens the image histogram while enhancing the details. The transformation is achieved by linearizing the cumulative distribution function of pixel brightness probability in the image and is calculated separately for each RGB color component. The resulting image is shown in Figure 3.
Figure 3.
Camera image of the pipe acquired at the measurement station after histogram equalization.
In the next step, we preliminarily identify areas with pipes by calculating the difference between the images. In the resulting image, pipes along with fragments of the measurement table, which are false detections, are visible.
To correct for errors in objects, we apply the morphological closing operation (for the color image []). We obtained a color image with distinguishable regions where the bent pipes are located.
Next, we convert the image to grayscale and perform its binarization, with the threshold determined based on the histogram.
The binary image obtained (Figure 4) consists of uniform regions (sets of points), each associated with a single pipe. We can assume that the edges of the pipes are located near the contour of the binary mask; however, it should be emphasized that they may also include the shadow of the pipe. Therefore, we will use them to select the object and reject edges that are not associated with the pipe.
Figure 4.
Binary masks of the pipes obtained through image segmentation, including background subtraction, morphological processing, and binarization.
The edge points of the pipe can be accurately determined using the Canny edge detector [], which returns a binary image with detected edges of thickness . Furthermore, in the studies conducted [], it was recognized as the most effective among the applied and tested algorithms. In Figure 5, recognized contours are depicted, which have been thickened for better visibility.
Figure 5.
Camera image after edge detector.
As can be observed, the image displays not only the edges of the pipes but also other objects, such as impurities, on the measurement table. These can be discarded by overlaying the previously determined binary mask image of the pipes onto the image with edges.
Notice that the edge detector has also detected light reflections inside the contours of the pipes. We discard them by applying a shadowed binary mask, which we then invert and overlay onto the edge image again. As a result, we obtain an image in which only the contours of the bent pipes remain (Figure 6).
Figure 6.
Detected pipe edges in the image, obtained using an edge detector and selected by filtering within the regions of the binary pipe masks.
Finally, the edge points in the pixel coordinates are converted to the metric coordinates expressed in the coordinate system of the measurement table . For this purpose, a dedicated calibration model of the measurement station was utilized. This model was developed by the authors due to the impracticality of using traditional calibration methods, such as Zhang’s method with a 2D pattern, for large-scale setups. The industrial measurement table is over 6 m long, which makes it difficult to fabricate and position a sufficiently large and rigid 2D calibration pattern at various angles and distances from the camera. Therefore, the proposed calibration model enables an unambiguous mapping between the pixel coordinates of the image and the metric coordinates of the measurement table, using a 2D pattern placed flat on the table surface and arranged in various positions on the table plane. The model accounts for perspective effects and camera nonlinearities, including lens distortion, and its parameters can be determined uniquely. A comprehensive description and validation of this calibration model is beyond the scope of this paper.
2.2. Determining Pipe Parameters
The pipe is modeled as a composition of cylindrical and toroidal surfaces with a constant cross-section and bend radius in the inspected segment. The method targets dimensional verification of nominal geometry and does not estimate local defects such as cross-sectional ovalization, wrinkling, or gradually varying bend radii.
The determination of the parameters of the bent pipes is divided into three stages: (1) determination of two pairs of parallel lines (projections of straight segments of the pipe); (2) determination of curves that represent the projection of a torus fragment; (3) fitting of the pipe parameters using the analytical model presented in the work [].
2.2.1. Modification of the Hough Transform
An effective method to reduce errors is to fit a line or curve to the data obtained. For this purpose, the line equations were determined using an algorithm based on the Hough transform []. In the case of a line, its position will be determined in polar coordinates.
The plot of this equation for a single point is a sinusoid. Angle and distance , where the value of is the distance from the origin of the coordinate system to the farthest point (for an image, this is the length of the diagonal).
By solving Equation (1) for a chosen image point , we determine the distance to the line with the inclination angle passing through this point. We round the obtained value of to the nearest discrete value , and then we increment the value of the accumulator cell corresponding to the determined pair of parameters , by one. We perform these calculations for all the points on the image. Then, we repeat the scheme for the remaining discrete values of the line inclination angle .
We can find the parameters of the lines by searching for local maxima, where the value corresponds to the number of points lying on that line. Notice that the projection of a straight segment of a pipe lying on the table consists of a pair of parallel lines, thus having the same inclination angle but different distances and . Such a pair of lines can be found, for example, by solving the following task:
assuming that the distance between the lines is sufficiently large (e.g., , where is not greater than the nominal diameter D of the examined pipes).
During the search for pairs of lines, points close to the line within a distance were additionally considered, and the matching index was defined as a function:
The parameter was derived from the effective pixel size at the working distance to reduce the impact of image noise on line fitting. The separation threshold is set below the minimum nominal pipe diameter in the inspected family to reject spurious parallel pairs.
By solving Equation (3) for a sample pipe with parameters and , the quality index curve can be obtained as shown in Figure 7. Two maxima are visible for the angles and . Furthermore, in the algorithm, it was assumed that the difference between the angles should be greater than the minimum bending angle occurring in production, which is °.
Figure 7.
The matching indicator for a pair of parallel lines depends on the angle .
The result of the described algorithm is the parameters of two pairs of parallel lines and , which are visible in the Hough plane and are marked in Figure 8. The two pairs of parallel lines determined have been overlaid on the edges of the pipe in Figure 9.
Figure 8.
The Hough plane, showing the number of points lying on a line with an inclination angle and a distance from the origin of the coordinate system. The detected two pairs of parallel lines with parameters and are marked on the plot.
Figure 9.
Matched pairs of parallel lines to the edge points of cylindrical segments of the bent pipe.
2.2.2. Determination of the Diameter and Bending Angle of the Pipe
The next task is to determine the centerline for the cylindrical segments of the pipe.
To determine the parameters of the pipe, we first seek the equations of the centerlines of the two cylindrical segments of the pipe. Consider a cylindrical segment of the pipe with an angle of inclination . Consider three planes: the table plane and two tangent planes to the cylinder passing through the camera point , , and then the perpendicular section to the three described planes passing through the camera point (Figure 10).
Figure 10.
The cross-section of the pipe with visible edge points and from camera point and the point on the centerline .
Our goal is to determine the radius of the circle inscribed in the triangle and the coordinate of the orthogonal projection of the center of the circle on the table plane, using the fact that the coordinates of the points and are equal to and , respectively. We have the following:
where , , .
Similarly, we will determine the radius value . Of course, in reality, the radius of the pipe at both ends is the same. Therefore, we can assume that
From Figure 10, we can also deduce the method for determining the coordinate . We have (assuming )
Similarly, we will determine the centerline parameter of the second cylindrical segment.
As a result of the calculations, we obtained the parameters of the orthogonal projection of the centerlines on the table plane for both cylindrical segments of the pipe and , as shown in Figure 11.
Figure 11.
The orthogonal projection of the determined centerlines (dashed lines) for cylindrical segments of the pipe with parameters , , and the bisector of the angle between them with their intersection point .
Of course, on the lines passing through the centerline of the cylindrical segments of the pipe, we can describe the bent pipe in four different orientations (Figure 12). We will make the choice based on the midpoint of the pipe outline , which is the result of the arithmetic mean of the edge points of the pipe ; let us denote it as follows:
where i is the ordinal number of the edge point and denotes the total number of these points.
Figure 12.
Four pipe configurations determined based on the centerlines with parameters and .
Next, for the parameters of the centerlines and , we will adopt new labels: for the line with a greater inclination angle and for the line with a smaller inclination angle.
Using Equation (1), we determine the distances and to the lines that pass through the midpoint at angles and .
Based on the values obtained, we can determine the assessment of the bending angle.
and determine the inclination angle of the orthogonal projection of the centerline of the pipe at the starting point relative to the axis:
2.2.3. Identification of the Bending Radius of the Pipe
To determine the bending radius R of the pipe, consider the perspective projection of its bent segment, described by the complex equations of the analytical model: Equation (12) in Ref. []. Note that the center of the torus segment lies on the bisector of the adjacent angle formed by the lines lying on the centerline of the two cylindrical parts of the pipe (Figure 13), and is also offset from them by a distance R. We will determine the position of the point based on the real perspective projection of the bent pipe edge. Let us assume that the distance of point from the centerline, i.e., the value R, belongs to a certain interval . By discretizing the interval with a step , we obtain a sequence of values .
Figure 13.
The cross-section of the pipe with the centerline and the bending center point lying on the bisector of the angle adjacent to the bending angle of the pipe .
Whenever the value of changes, it is necessary to recalculate the parameters of the mathematical model. For simplicity, assume that the lengths of the straight sections and (their correct values will be determined in subsequent steps). Based on Figure 13, we determine the point.
where d is the offset distance along the centerline and is the intersection point of the centerlines of both cylindrical segments of the pipe with parameters and .
Next, define two accumulators and as vectors with initial values set to zero, where the cell index i is associated with the discrete values . For each edge point, we calculate the distance from this point to the two theoretical edge lines determined from the analytical model. If this distance is less than , we increase the value of the accumulator or accordingly. The value by which we increase the accumulators is 1 when the points coincide, and decreases linearly to zero once the distance between them is reached.
Finally, we determine the index , which is the solution to the task.
and then we adopt the final assessment of the bending radius of the pipe as
Figure 14 shows the change in the matching assessment indicator determined for the adopted sequence of values of the investigated bending radius of the pipe. The comparison of the fitted bent arc to the measured edge points of the pipe is presented in Figure 15, where the centerline of the pipe arc, its starting and ending points and , and the bending center of the pipe are also marked.
Figure 14.
The matching indicator of the edge points of the pipe to the theoretical outline of the bent arc determined from the perspective model.
Figure 15.
Comparison between the determined outline of the perspective projection of the bent arc (in red) and the edge points of the pipe (in blue).
2.2.4. Identification of the Lengths of Pipe Segments
The remaining parameters sought are the lengths of the straight segments of the pipe, denoted and . Let us begin by making a rough estimate of these lengths. To achieve this, we will fit two lines to the edge points at the ends of the pipe with parameters and , which (ideally) intersect with the lines passing through the centerline of the cylindrical segments of the pipe at right angles, meaning that their inclinations are
The remaining parameters of the sought lines—the distances and —are found by searching for local maxima on the Hough plane as described in Section 2.2.1 and depicted in Figure 16. Additionally, we will consider points lying at a distance from the line by solving the following task:
Figure 16.
The Hough plane with the determined parameters of the lines and passing through the edge points at the ends of the pipe (in red), and the previously determined parameters of the lines passing through the edge points of the cylindrical sections of the bent pipe (in blue).
Before solving the task, remember to reset the previously identified local maxima and their closest neighborhood on the Hough plane .
In Figure 16, the parameter values for the determined lines that pass through the edge points at the ends of the pipe are marked. These lines are also shown in Figure 17.
Figure 17.
Approximate positions of the pipe endpoints, and , determined based on lines (in red) passing through the edge points (in blue) at the pipe ends. Both lines are defined by direction vectors (in gray) with leading angles and .
Based on them, we will determine the intersection points with the already known lines representing segments of the centerline of the pipe and consider them as approximations of points , , representing the positions of the extreme transverse sections of the pipe.
Therefore, the approximate lengths of the straight segments of the pipe are as follows:
Continuing with the task, we will determine the final estimate of the length of the pipe segments. Let us start by determining the length of the first straight segment of the pipe, denoted as . To achieve this, we will again apply the mathematical model Equation (12) in Ref. [] to determine the projection fragment of the perspective for the first end of the pipe and then to assess its fit to the measured edge points.
Let us assume that the length of the segment is sought within a certain discrete interval with a discretization step , where the approximate length of the segment is one of the elements of the sequence .
Furthermore, let us define the accumulator as a vector with initial zero values, where its elements are associated with discrete values .
Each time the value of changes, we assume a new position for the point , which defines the beginning of the centerline in the pipe model. Let us express this as follows:
For each edge point located at the beginning of the pipe, let us calculate its distance from the pipe contour segment determined by the mathematical projection model Equation (12) described in Ref. []. If this distance is less than , we increase the corresponding cell of the accumulator by a value of the range , which is inversely proportional to the distance between points in the range .
After evaluating the fit for all values in the interval , we determine the index of the cell for which the accumulator reaches its maximum value. Finally, let us adopt the measured length of the first segment.
In Figure 18, the contents of the accumulator and the solution sought are presented. The comparison between the fit outline of the beginning of the pipe and the edge points of the pipe is shown in Figure 19.
Figure 18.
The trend of the matching indicator calculated from the mathematical model’s outline of the beginning of the pipe to the edge points of the pipe as the length changes.
Figure 19.
Comparison between the outline of the perspective projection for the beginning of the pipe (in red) and the edge points of the pipe (in blue).
The following is a note on visualization. In a single-view perspective projection of a thick object, the centerline point need not lie on the visible outer contour due to finite thickness and viewing geometry. The observed offset in Figure 19 is consistent with the projection of the pipe end (in red) relative to the detected edge (in blue).
The last parameter sought is the length of the second segment of the pipe, denoted as . We seek it in a manner analogous to the length of the first segment already presented. However, this time we do not specify the position of the end point of the centerline of the pipe because, in the mathematical model, the position of this point is an output value.
The calculated values of the matching indicator for the sequence of values are stored in the cells i of a new accumulator . Then, we again search for the index of the cell for which the value stored in the accumulator is highest. Finally, we adopt the length of the second segment as follows:
where the index is the solution to the optimization problem .
For the discussed example, the content obtained from the accumulator is shown in Figure 20. The final fitting segment of the tube along with the last point on the centerline of the pipe is shown in Figure 21.
Figure 20.
The trend of the matching indicator of the perspective projection outline fragment of the end of the pipe to the edge points of the pipe.
Figure 21.
Comparison between the outline of the perspective projection for the end of the pipe (in red) and the edge points of the pipe (in blue).
We have determined all the parameters of the pipe with a single bend: the diameter of the pipe , the bending radius , the bending angle , and the lengths of the cylindrical segments of the pipe and . The theoretical outline of the pipe calculated from the mathematical model was compared with the measured edge points of the pipe, presented in Figure 22.
Figure 22.
Comparison between the edge points of the pipe (in blue) and the calculated perspective projection of the pipe from the analytical model (in red).
The final result for the example discussed is presented in Figure 23. The figure shows the undistorted camera image with the pipe, the theoretical perspective projection of the pipe edge calculated using the analytical model (shown in red), and the determined pipe parameters. The parameters shown are the pipe diameter , the bending angle °, the bending radius , the lengths of the cylindrical segments of the pipe and , and the total pipe length .
Figure 23.
Undistorted camera image showing the pipe, the perspective projection of the pipe edge calculated using the analytical model (in red), and the determined pipe parameters.
Similarly, parameters can be determined for pipes with two bends in the same plane.
3. Results and Discussion
In this research paper, the authors addressed the issue of controlling the bending parameters of large-diameter pipes. This involves the bending angle and radius and also determining straight sections, which is carried out by algorithms of modeling using methods such as photogrammetry and digital image processing. All proposed algorithms were implemented and used. For this purpose, a single-camera vision measurement system was built and checked by comparing its measurement results with the CMM machine results. The system showed high accuracy and repeatability of the measurements, which is sufficient for heavy industry. In Table 1 are results for the accuracy of the proposed vision system compared to the measurement performed on the Zeiss Prismo Navigator CMM. Notably, the bending radius exhibits a standard deviation of . Compared with the literature review and the fact that only one camera exists in the system, the result is the advantage of the designed system.
Table 1.
The results of the measuring system accuracy series of measurements of a reference pipe compared to the reference values measured by a Zeiss Prismo Navigator CMM.
The method of determining the shape of the pipe is shown based on the perspective projection and modified Hough transform. The vast majority of the paper describes the algorithms for determining the straight elements of the bent pipe and the correct detection of the pipe ends. It is worth mentioning that this element of the measurement is difficult to estimate due to the smooth transition between the straight section and the bending curve and the contour noise.
The presented work together with the work [] is a complete and detailed mathematical description of the measurement system with respect to perspective modeling and identification of measurement parameters.
The measurement accuracy achieved with the proposed single-view vision system is lower than that offered by advanced multicamera solutions. However, the algorithms implemented exhibit strong resistance to image noise, which is particularly advantageous in industrial environments. Importantly, for applications in the heavy industry, the level of measurement inaccuracy remains acceptable, as dimensional tolerances depend on the scale of the inspected components. In the case of large-scale bent pipes, allowable deviations typically amount to several millimeters, which aligns with the precision provided by the developed system.
Future research should consider the application of lenses with a higher modulation transfer function (MTF) to improve image fidelity. In addition, developing a method for shadow removal under pipes could further enhance the reliability and accuracy of the inspection process.
Author Contributions
Conceptualization, D.J. and K.B.; methodology, K.B. and D.J.; software, K.B.; validation, D.J., K.B., and J.Z.; formal analysis, K.B.; investigation, K.B.; resources, J.Z. and D.S.P.; data curation, K.B.; writing—original draft preparation, K.B.; writing—review and editing, D.J. and J.Z.; visualization, K.B. and D.S.P.; supervision, D.J.; project administration, K.B.; funding acquisition, D.J. 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
The raw data supporting the conclusions of this article will be made available by the authors on request.
Acknowledgments
The authors acknowledge Chemar Rurociągi Sp. z o.o. for providing pipe samples for the research.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Borkowski, K.; Janecki, D.; Zwierzchowski, J. Model of Perspective Distortions for a Vision Measuring System of Large-Diameter Bent Pipes. In Proceedings of the International Conference on Computational Science (ICCS 2023), Prague, Czech Republic, 3–5 July 2023; Springer: Berlin/Heidelberg, Germany, 2023; pp. 595–609. [Google Scholar] [CrossRef]
- Giancola, S.; Valenti, M.; Sala, R. A Survey on 3D Cameras: Metrological Comparison of Time-of-Flight, Structured-Light and Active Stereoscopy Technologies; Springer: Berlin/Heidelberg, Germany, 2018. [Google Scholar]
- Schwenke, H.; Neuschaefer-Rube, U.; Pfeifer, T.; Kunzmann, H. Optical methods for dimensional metrology in production engineering. CIrP Ann. 2002, 51, 685–699. [Google Scholar] [CrossRef]
- Ratajczyk, E.; Woźniak, A. Współrzędnościowe Systemy Pomiarowe; Oficyna Wydawnicza Politechniki Warszawskiej: Warszawa, Poland, 2016. [Google Scholar]
- Ratajczyk, E. Wyniki badań dokładności współrzędnościowych ramion pomiarowych. Pomiary Automatyka Robotyka 2017, 21, 57–62. [Google Scholar] [CrossRef]
- Li, W.; Hou, D.; Luo, Z.; Mao, X. 3D measurement system based on divergent multi-line structured light projection, its accuracy analysis. Optik 2021, 231, 166396. [Google Scholar] [CrossRef]
- Salvi, J.; Pages, J.; Batlle, J. Pattern codification strategies in structured light systems. Pattern Recognit. 2004, 37, 827–849. [Google Scholar] [CrossRef]
- Deng, H.X.; Wang, J.; Zhang, J.; Liang, C.J.; Ma, M.C.; Zhong, X.; Yu, L.D. A stereovision measurement for large deformation of light structures. Measurement 2019, 136, 387–394. [Google Scholar] [CrossRef]
- Yin, Z.; Xiong, J. Stereovision measurement of layer geometry in wire and arc additive manufacturing with various stereo matching algorithms. J. Manuf. Processes 2020, 56, 428–438. [Google Scholar] [CrossRef]
- Martini, M.G.; Beghi, M.G.; Genta, G. Measurement of Ovality in Pipes Using Structured Light. In Proceedings of the IMEKO TC14 Symposium on New Trends for Measurement and Instrumentation, Merida, Mexico, 21–24 November 2007; pp. 51–56. [Google Scholar]
- Wang, Y.; Zhang, X.; Su, Y.; Lei, Y. Polarization structured light 3D depth image sensor for scenes with reflective surfaces. Nat. Commun. 2023, 14, 7262. [Google Scholar] [CrossRef]
- Jin, P.; Liu, J.; Liu, S.; Wang, X. A new multi-vision-based reconstruction algorithm for tube inspection. Int. J. Adv. Manuf. Technol. 2017, 93, 2021–2035. [Google Scholar] [CrossRef]
- Liu, S.; Jin, P.; Liu, J.; Wang, X.; Sun, P. Accurate measurement method for tube’s endpoints based on machine vision. Chin. J. Mech. Eng. 2017, 30, 152–163. [Google Scholar] [CrossRef]
- Wang, X.; Liu, J.; Liu, S.; Jin, P.; Wu, T.; Wang, Z. Accurate radius measurement of multi-bend tubes based on stereo vision. Measurement 2018, 117, 326–338. [Google Scholar] [CrossRef]
- Sun, J.; Zhang, Y.; Cheng, X. A high precision 3D reconstruction method for bend tube axis based on binocular stereo vision. Opt. Express 2019, 27, 2292–2304. [Google Scholar] [CrossRef] [PubMed]
- Huang, H.; Liu, J.; Liu, S.; Jin, P.; Wu, T.; Zhang, T. Error analysis of a stereo-vision-based tube measurement system. Measurement 2020, 157, 107659. [Google Scholar] [CrossRef]
- Cheng, X.; Sun, J.; Zhou, F.; Xie, Y. Shape from apparent contours for bent pipes with constant diameter under perspective projection. Measurement 2021, 182, 109787. [Google Scholar] [CrossRef]
- Pai, W.; Liang, J.; Zhang, M.; Tang, Z.; Li, L. An advanced multi-camera system for automatic, high-precision and efficient tube profile measurement. Opt. Lasers Eng. 2022, 154, 106890. [Google Scholar] [CrossRef]
- Son, H.; Kim, C. Automatic segmentation and 3D modeling of pipelines into constituent parts from laser-scan data of the built environment. Autom. Constr. 2016, 68, 203–211. [Google Scholar] [CrossRef]
- Ha, T.; Ma, J.; Blindheim, J.; Welo, T.; Ringen, G.; Wang, J. In-line springback measurement for tube bending using a laser system. Procedia Manuf. 2020, 47, 766–773. [Google Scholar] [CrossRef]
- Criminisi, A.; Reid, I.D.; Zisserman, A. Single View Metrology. Int. J. Comput. Vis. 2000, 40, 123–148. [Google Scholar] [CrossRef]
- Fitzgibbon, A.W.; Pilu, M.; Fisher, R.B. Direct Least Squares Fitting of Ellipses. IEEE Trans. Pattern Anal. Mach. Intell. 1999, 21, 476–480. [Google Scholar] [CrossRef]
- Zins, M.; Simon, G.; Berger, M.O. Object-Based Visual Camera Pose Estimation From Ellipsoidal Model and 3D-Aware Ellipse Prediction. Int. J. Comput. Vis. 2022, 130, 3021–3045. [Google Scholar] [CrossRef]
- Yussuf, A.N.; Tran, M.D.; La, H.M.; James, D.E. Leveraging Deep Learning Techniques for Condition Assessment of Stormwater Pipe Network. J. Civ. Struct. Health Monit. 2024, 14, 565–584. [Google Scholar] [CrossRef]
- Tyystj"arvi, T.; Virkkunen, I.; Fridolf, P.; Rosell, A.; Barsoum, Z. Automated Defect Detection in Digital Radiography of Aerospace Welds Using Deep Learning. Weld. World 2022, 66, 789–799. [Google Scholar] [CrossRef]
- Cheng, H.D.; Shi, X. A simple and effective histogram equalization approach to image enhancement. Digit. Signal Process. 2004, 14, 158–170. [Google Scholar] [CrossRef]
- Benavent, X.; Dura, E.; Vegara, F.; Domingo, J. Mathematical morphology for color images: An image-dependent approach. Math. Probl. Eng. 2012. [Google Scholar] [CrossRef]
- Canny, J. A computational approach to edge detection. IEEE Trans. Pattern Anal. Mach. Intell. 1986, PAMI-8, 679–698. [Google Scholar] [CrossRef]
- Czechowicz, A.; Mikrut, S. Analiza przydatności algorytmów detekcji krawędzi w zastosowaniach fotogrametrii bliskiego zasięgu. Arch. Fotogram. Kartogr. Teledetekcji 2006, 16, 135–146. [Google Scholar]
- Hart, P.E.; Duda, R. Use of the Hough transformation to detect lines and curves in pictures. Commun. ACM 1972, 15, 11–15. [Google Scholar] [CrossRef]
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. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).