Next Article in Journal
Borehole Breakout Prediction Based on Multi-Output Machine Learning Models Using the Walrus Optimization Algorithm
Previous Article in Journal
Sedimentary Characteristics and Evolution of the Late Miocene to Quaternary Tributary Channels in the Head of Bounty Channel, New Zealand
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Layer Contour Geometric Characterization in MEX/P through CIS-Based Adaptive Edge Detection

by
Alejandro Fernández
,
David Blanco
*,
Braulio J. Álvarez
,
Pedro Fernández
,
Pablo Zapico
and
Gonzalo Valiño
Department of Construction and Manufacturing Engineering, University of Oviedo, 33394 Asturias, Spain
*
Author to whom correspondence should be addressed.
Appl. Sci. 2024, 14(14), 6163; https://doi.org/10.3390/app14146163
Submission received: 13 June 2024 / Revised: 10 July 2024 / Accepted: 12 July 2024 / Published: 15 July 2024
(This article belongs to the Special Issue Applications of Optical Sensors in Additive Manufacturing)

Abstract

:
The industrial adoption of material extrusion of polymers (MEX/P) is hindered by the geometric quality of manufactured parts. Contact image sensors (CISs), commonly used in flatbed scanners, have been proposed as a suitable technology for layer-wise characterization of contour deviations, paving the way for the application of corrective measures. Nevertheless, despite the high resolution of CIS digital images, the accurate characterization of layer contours in MEX/P is affected by contrast patterns between the layer and the background. Conventional edge-recognition algorithms struggle to comprehensively characterize layer contours, thereby diminishing the reliability of deviation measurements. In this work, we introduce a novel approach to precisely locate contour points in the context of MEX/P based on evaluating the similarity between the grayscale pattern near a particular tentative contour point and a previously defined gradient reference pattern. Initially, contrast patterns corresponding to various contour orientations and layer-to-background distances are captured. Subsequently, contour points are identified and located in the images, with coordinate measuring machine (CMM) verification serving as a ground truth. This information is then utilized by an adaptive edge-detection algorithm (AEDA) designed to identify boundaries in manufactured layers. The proposed method has been evaluated on test targets produced through MEX/P. The results indicate that the average deviation of point position compared to that achievable with a CMM in a metrology laboratory ranges from 8.02 µm to 13.11 µm within the experimental limits. This is a substantial improvement in the reliability of contour reconstruction when compared to previous research, and it could be crucial for implementing routines for the automated detection and correction of geometric deviations in AM parts.

1. Introduction

Additive manufacturing (AM) allows for the creation of objects by building them layer by layer. This original approach has generated an entirely new category of manufacturing processes distinct from traditional methods based on material solidification (such as metal casting or plastic injection molding), metal forming (such as rolling or sheet metal bending), or material removal (such as turning or electrical discharge machining) [1,2,3]. The fundamental aspects of AM processes are currently being standardized by the ASTM International and the International Organization for Standardization (ISO) [4]. Material extrusion of polymers (MEX/P) stands as one of the most widely utilized AM processes, mainly because of its user-friendly nature and the economical feedstock costs [5]. Nevertheless, the quality of MEX/P parts still fall short when compared to other conventional alternative processes, especially when it comes to serial manufacturing [6]. Particularly, issues regarding the dimensional and geometric quality of parts hamper the widespread industrial adoption of MEX/P [5,6,7]. The dimensional quality of MEX/P parts has been extensively studied [8,9,10,11,12,13]. Efforts to enhance the quality of manufactured parts have been focused on two fronts: adjusting process parameters [8,9,10] and refining the input geometry [11,12,13]. In both cases, retrieving accurate and dependable information regarding the actual geometries of manufactured parts is imperative. Moreover, checking the effectiveness of corrective measures also demands the capability of quantifying the deviations between actual (manufactured) geometries and the theoretical expectations.
In MEX/P, dimensional and geometric verification is typically conducted similarly to conventional manufacturing processes. This involves using measurement and scanning methods, either contact or non-contact, after a part has been manufactured [14,15,16]. However, the layer-by-layer nature of AM manufacturing opens the possibility of verifying the deposited geometry shortly after each layer has been fabricated without having to wait for the part to be completely manufactured [17]. This capability, which relies on the integration of in-machine geometry characterization systems, allows for the acquisition of layer-wise information, enabling the early adjustment of process parameters or even the application of geometry compensation strategies [18].
Layer-wise monitoring has been applied in MEX/P by means of three main sensing technologies: thermal sensing [19], 2D vision [20], and 3D vision [21]. Each technology has its own advantages and disadvantages. For instance, temperature-field sensors lack sufficient spatial resolution to be used in dimensional or geometric verification of a part, while integrating sensors for 3D scanning can be a complex task due to their size and weight. On the other hand, 2D vision systems tend to be more compact and lighter, making their integration into commercial MEX/P machines relatively simpler [20,22]. However, the distortion introduced by the optics, along with insufficient spatial resolution, makes these methods more commonly used for defect localization and characterization [22] rather than for the precise measurement of dimensional or geometric deviations.
Flatbed scanners based on contact image sensors (CISs) have certain characteristics that make them a viable option for integrating 2D vision systems for layer-wise inspection tasks in MEX/P machines. Although these types of devices are commonly used for scanning documents and photographs, they have also been employed for contour detection in nearly flat [23] and three-dimensional objects [24]. Flatbed scanners have been used in AM to characterize irregularities in the deposition of metal powders in PBF/M [25], to characterize distortion of parts in MEX/P [26], and even to compensate for machine errors [27].
Our team has worked on two crucial aspects of the use of CISs in MEX/P applications. The first aspect deals with the accuracy of layer contour detection for the geometric characterization of manufactured objects [28,29,30]. The second aspect focuses on the integration of sensors into MEX/P equipment for process monitoring [30,31,32]. Accurately identifying contour points in digitized images is essential for verifying the dimensional and geometric parameters of the fabricated layer. Initial efforts focused on compensating for image distortion [28]. It was found that such distortion exhibits differential characteristics between the scanning direction ( v ) and the direction of the photodetector array ( a ). Beyond this circumstance, it was also found that global compensation techniques [26] are insufficient to achieve precision levels in point localization comparable to those attainable in coordinate-based metrology. Consequently, a local distortion adjustment (LDA) algorithm was developed. Enhancing the results of global techniques, the LDA allowed for very precise contour reconstruction under high target-to-background contrast scenarios.
Focusing on contour identification in images, this complex task has been addressed through various edge-detection algorithms, such as those proposed by Roberts [33], Sobel [34], and Prewitt [35]. However, the Canny algorithm [36] stands out as the most-employed algorithm [37]. Nevertheless, these algorithms and those based on second derivatives, like zero-crossing or the Laplacian of Gaussian, were not designed for the dimensionally precise and unambiguous contour detection required in industrial-level dimensional verification and quality control. Instead, they were developed for tasks such as feature extraction [38], image segmentation [39], object recognition [40], and image enhancement [41].
Contour characterization in AM using conventional algorithms has been previously addressed in several works [42,43,44,45,46]. Thus, Heinl et al. compared different algorithms (Sobel and Canny) based on qualitative impressions that evaluate the completeness of contour reconstruction in SLS-manufactured parts [42]. Özsoy et al. reported minimum average errors in the range of tenths of a millimeter when measuring layers with a CCD in powder bed fusion manufacturing [43]. Similar results were reported by Amindazeh and Kurfess, who noted a maximum point-to-point error of 0.480 mm [44]. Lerchen characterized the layer contour in PBF images where the layer-to-background contrast pattern appeared to be nearly uniform [45]. Nevertheless, quality characterization in AM through image analysis is mostly focused on the detection of coarse defects [46]. From the analysis of these works, it can be deduced that the contour characterization techniques currently applied in AM are focused on the detection of coarse deviations, mainly in the range of tenths of a millimeter. This level of resolution in error characterization is conditioned by the quality of the optical equipment used and the quality of the geometric reconstruction provided by conventional edge-detection algorithms.
One of the main problems when using conventional algorithms for tasks that require precise dimensional and geometric characterization of layer contours is their high sensitivity to non-uniformity in contrast patterns or variations in grayscale [42]. This issue has been addressed in two studies [29,30], which revealed that optimizing the parameters of conventional contour detection algorithms (such as Canny, Prewitt, Sobel, etc.) can enhance the results of contour point identification in terms of both coverage and precision. However, it was also observed that these algorithms can only provide accurate reconstructions of layer contours when the entire contour shows substantial and uniform contrast against the background. They struggle to offer a comprehensive and accurate reconstruction when contrast patterns exhibit significant asymmetries depending on the local orientation of the contour [29]. Essentially, a single processing configuration cannot simultaneously achieve satisfactory reconstruction in areas with heightened contrast and areas with poor contrast within the same image. As a result of these findings, two potential strategies were proposed: the formulation of an adaptive procedure for contour detection and the development of scanning devices with controlled directional illumination.
The present work focuses on implementing the first of the aforementioned strategies by devising a procedure for edge detection that is tailored for non-uniform contrast patterns. The premise is that the location of a layer contour point can be determined by comparing the local grayscale pattern surrounding its theoretical position with a pre-existing reference pattern. Accordingly, we utilized a series of orientable test artefacts with contours at various layer-to-background distances while also allowing for setting different contour-to-illumination orientation angles. The test artefacts are digitized using a coordinate measuring machine (CMM) to accurately determine the position of individual contour points. A digital image is captured using a CIS, enabling the calculation of contour point positions in pixel coordinates from the CMM data. Subsequently, local grayscale patterns corresponding to the location of each contour point are extracted and grouped in a gradient reference pattern (GRP) database. Then, when characterizing the contour of a manufactured part, its approximate location can be predicted from the CAD file. Accordingly, the approximate positions of individual tentative contour points can be established beforehand in the digital image captured with the CIS. A set of one-dimensional regions of interest (ROIs) can then be defined around those tentative contour points. Finally, a set of candidate patterns (CPs) are extracted from the ROIs, and their similarity to the correspondent GRP is subsequently evaluated. The most similar CP for a given tentative contour point will then be used to determine the exact location of the actual contour point. This procedure provides precise identification of contour point locations in the target layer and is less susceptible to being influenced by local characteristics of the contrast pattern.
The proposed method diverges from conventional approaches in three significant aspects:
  • Contour point identification relies on data obtained from test artefacts measured with a CMM, whereas conventional approaches stand alone, and the dimensional accuracy of contour reconstruction is not even relevant.
  • Edge detection is customized through adaptive processing that considers the local characteristics of the layer-to-background pattern. This approach differs from methods that process entire images with a single algorithm configuration.
  • Each local search yields a single contour point, differing from the multiple candidates typically provided by most edge-detection algorithms.
In summary, the approach presented in this work has been tailored to overcome the limitations of conventional algorithms, such as Canny or Prewitt, in situations where the layer-to-background contrast is highly uneven. While reported errors in related works are in the range of tenths of a millimeter [43,44], our goal is to reduce these discrepancies for MEX/P parts through the optimization of conventional algorithms [29]. This means lowering quantification errors to below 50 µm in non-uniform contrast scenarios.
The subsequent sections of this paper are structured as follows: after the introduction in Section 1, Section 2 provides a general overview of the proposed adaptive edge-detection algorithm (AEDA); the method for constructing the reference database is outlined in Section 3; Section 4 elucidates how contour points are identified in a manufactured part; a practical example of the proposed procedure is presented in Section 5; the results are discussed in Section 6; and, finally, Section 7 summarizes the conclusions of this work.

2. Fundamentals of the AEDA

As outlined in the previous section, this work is based on the premise that the relative location of a layer contour point can be established by comparing the local grayscale pattern around the expected or theoretical position with a previously obtained reference pattern. Each local grayscale pattern along the layer contour is influenced by various factors, such as the optical characteristics of the deposited material, the vertical distance between the target layer and the surrounding background ( H ), or the relative orientation ( θ ) of the normal to the contour at the theoretical point ( n i ) and the scanning direction ( v ) (Figure 1). Since the optical characteristics are unique for a given material, this factor should only be considered if different materials are to be used in the same part, which is not typically the case in MEX/P. Therefore, setting material considerations aside, the two primary factors influencing the characteristics of the grayscale pattern near a contour point ( P i ) are H and θ . Notice that, due to its design, the CIS illuminates the scene with a series of LEDs preceding the array of photodiodes ( a ), and, accordingly, the direction of the illumination opposes the scanning direction ( v ).
According to the detailed view depicted in Figure 2, the CIS, moving in the direction of vector v , scans both the target layer and the background, capturing a digitized image of the part. At the position illustrated in the figure, the image ideally encompasses contour segments with two contour points ( P 1 and P 2 ), delineating the precise boundary between the target layer and the surrounding background.
Figure 3 presents detailed views of actual contours obtained for different combinations of layer-to-background distances and contour orientations. At a given angle, increasing the layer-to-background distance enhances the contrast between the background itself and the target layer. This results in a less pronounced gradient at lower H values, which would become more pronounced as H increases. This issue arises from the diminishing light intensity over increasing distances due to spreading and attenuation phenomena. Consequently, the intensity of light reflected by the target layer becomes much higher than that reflected by the background. Similarly, variations in θ shall also affect the gradient. For instance, with a 0° orientation (where the scanning direction aligns with the normal to the contour at the point), the CIS illuminates the background first without any shadows cast by the material layers above. Conversely, a 180° orientation results in the uppermost layer casting a shadow on the background zone near the contour. Intermediate orientations between these extremes yield significant variability in the intensity gradient recorded by the CIS near the contour, as depicted in Figure 3.
Since the intensity gradient recorded in the image captured by the CIS varies depending on H and θ , the grayscale reference pattern can be anticipated for any given combination of both parameters ( G R P H , θ ).
Therefore, when analyzing a manufactured layer, an analysis of the distribution of the extracted CPs near each tentative contour point can be performed to determine which CP best matches the GRP corresponding to the specific combination of H and θ . In the context of this work, the grayscale patterns used are treated as n-dimensional row vectors, where each component has a grayscale intensity level on a scale from 0 to 255.
For a given tentative point upon a manufactured layer ( P i ), each of the j possible CPs extracted from the ROI will have an associated subset ( C P j P i ). A similarity analysis between each C P j P i and the correspondent G R P H , θ will provide the location of the actual contour point. Following this procedure for the whole set of tentative contour points, the edge will be finally characterized. Figure 4 provides a flowchart of the proposed AEDA.

3. Building a GRP Database

Every G R P H , θ has an odd number of components, so that the central one corresponds to the theoretical transition between the target layer and the background. Each component in the G R P H , θ contains an intensity value between 0 and 255 that corresponds to the grayscale value recorded for an individual pixel in the image digitized by the CIS (Figure 5). Accordingly, each row vector should describe the ideal distribution of grayscale levels along a linear segment centered on a contour point for a specific combination of H and θ .
The central component consistently marks the transition between the target layer and the surrounding background, ideally pinpointing the location of an individual contour point where the layer edge intersects a specified direction. Since the pixel arrangement in a digital image forms a rectangular matrix, inspection is considered only in two orthogonal directions: the scanning or vertical direction ( v ) and the direction of the photodetector array or the horizontal direction ( a ). Selection of the search direction will depend on the theoretical orientation of the contour at each contour point. Thus, vertical directions will be used for 135 ° θ 225 ° , 0 ° θ 45 ° , and 315 ° θ 360 ° . Similarly, horizontal directions will be used for 45 ° < θ < 135 ° and 225 ° < θ < 315 ° . Building the GRP database requires accurately identifying which pixel corresponds to the exact location of the contour point. Accordingly, a set of test artefacts embodying different combinations of contrast conditions are required.

3.1. Test Artefacts

The design of test artefacts should be tailored to offer contours at various layer-to-background distances and different orientations. The experimental range established for the present work comprises variation in H between 8 mm and 2 mm and a complete 360 range for θ . Since it is impossible to materialize all possible combinations of H and θ , a reduced range was defined, including four possible levels for H (2 mm, 4 mm, 6 mm, and 8 mm) and twenty-four levels for θ (0°, 15°, 30°, …, 345°). Intermediate combinations will require interpolation between GRPs. However, despite the reduction in test levels, the possible combinations of the parameters H and θ would yield a minimum of 96 test artefacts. To reduce the number of parts to be manufactured, a design based on two parts was chosen. The assembly consists of a rectangular base with reference elements like those used in [26], which can be easily positioned in the CIS’s work field, and a central rotating element, which embodies a specific value of H (Figure 6).
The rotative central element presents a rectangular flat surface resembling an ideal target layer with the standard optical characteristics of the feedstock. One of the longest sides (the test-contrast side or TCS) of this surface materializes a specific value of H . On the other hand, the opposite side of this rectangular flat surface materializes an ideal optimal contrast situation (the optimal-contrast side or OCS), where the contrast achieved through an extensive gap between the target layer and the background was reinforced by painting the background black. By rotating the central element for each specimen in the CIS, images can be obtained for each of the 96 possible experimental combinations.

3.2. Manufacturing of Test Artefacts

Test artefacts were designed and manufactured in white BCN3D® PLA in a Sigma MEX/P machine (BCN3D Technologies Inc., Barcelona, Spain). The standard manufacturing profile for a 0.1 mm layer resolution, given by the product’s supplier, was used (Table 1).
Once manufactured, the OCS background was painted black to minimize contrast-dependent issues. Figure 6 also provides individual images of the specimens as registered with the CIS for a 0 ° orientation, where differences between TCS backgrounds can be observed: the higher the H , the higher the contrast achieved.

3.3. CMM Digitization of Test Artefacts

The test artefacts were measured using a coordinate measuring machine (CMM), the DEA Global Image 09-15-08 (Hexagon AB, Stockholm, Sweden), with a contact touch-trigger probe. This machine was calibrated according to [47] with the maximum permissible error in length measurement, as in Equation (1):
M P E E = 2.2 + 3 · L / 1000   μ m       L   i n   mm
and the maximum permissible error in probing repeatability, as in Equation (2):
M P E P = 2.2   μ m
Metrological operations regarding CMM digitization were performed using PC-DMIS® (Hexagon AB, Stockholm, Sweden). Since the geometry of the target layer remains invariant regardless of the orientation, CMM digitization of points along the TCS and OCS was performed only once per test artefact. The initial step was to determine the Z axis, then the Y axis ( Y s ), and finally the origin ( O s ). After defining the local origin, two sets of ten individual contour points were measured for each test artefact. The first set consisted of ten contour points equally spaced along the TCS ( P i T C S ), while the second set comprised ten points equally spaced along the OCS ( P i O C S ). Once measured, each point was characterized by its x and y coordinates relative to the origin ( O s ). Figure 7 illustrates the distribution of points digitized with the CMM.

3.4. Identification of Contour Points in the Digitized Images

Digital images of the test artefacts were acquired using a Perfection V39 EPSON flatbed scanner (Seiko Epson Corporation, Nagano, Japan), which integrates a CIS. Each test specimen was placed upside down on the scanner, with the target layer directly on the glass. Scanning was conducted at a resolution of 2400 dpi along both the scanning direction ( v ) and the direction of the photodetector array ( a ). As a result, grayscale images were obtained for each test combination, totalling 96 images.
Before the calculation of the GRPs, it was necessary to identify the reference system of the target layer in the digitized images. To this end, a small reference hole was included at the bottom of the target layer to address the problem of axis orientation associated with the symmetry of its rectangular geometry. The procedure (as depicted in Figure 8) is as follows: (a) detect the circle corresponding to the reference hole; (b) binarize the image using the Otsu algorithm with a threshold of 125 and identify the OCS (long side) and the orthogonal short side of the rectangular target; (c) define two search regions approximately located along the mentioned sides. Once these search regions are defined, the identification of individual contour points on both sides can be performed using the optimal parameters calculated in [29] for a high-contrast scenario: a Canny filter with a noise filter size ( S f ) of 19 and a threshold ( T ) of 110. After these points are calculated, they are used to define both the X s and Y s axes following the same procedure as would be used in a CMM. This reference system (d) will correspond to the one calculated with the CMM.
Once the local reference system of the target layer has been positioned in the image, the points digitized with the CMM can be translated from the coordinate system of the measuring machine (in mm) to the system of the digitized image (in pixels). However, since an image captured by an optical digital system like a CIS is a distorted representation of reality, it is essential to apply a transformation that accounts for this distortion when adjusting the coordinates of contour points. As explained in [28], global transformations do not fully address the distortion issue, making a local compensation approach a more viable option. In this work, the LDA method described in [28] was employed to address image deformations.
Utilizing LDA enables the placement of the calculated coordinates for each point ( P i T C S ) in the image, thereby facilitating the identification of the grayscale pattern in the local vicinity of the contour point (Figure 9).

3.5. Calculation of GRPs

Once this process is completed, a representative G R P H , θ can be finally calculated considering 10 individual local masks: one for each CMM-digitized TCS contour point. The orientation of these masks is consistent with the criterion for angular ranges established at the beginning of this section. Accordingly, the intensity value ( I ) of each pixel ( j ) in G R P H , θ ( I H , θ j ) will be calculated as the average of the intensity values ( I H , θ , i j ) collected for the corresponding j -th pixel in the i -th individual masks (Figure 10), following Equation (3).
I H , θ j = 1 n · i = 1 n I H , θ , i j
Following this procedure, a GRP database was constructed. The size of G R P H , θ ( n ) was set at 51 pixels, which for a 2400 dpi resolution is equivalent to a length of 539.75 µm. The angular resolution of the database was set to 15°. Accordingly, the database used in this work consists of 96 GRPs (24 GRPs for each layer-to-background distance). Figure 11 provides four independent representations of the G R P H , θ , arranged along their respective angular orientations.

4. Identification of Contour Points in a Manufactured Part

The process of identifying contour points on a manufactured component begins with digitizing the layer to be inspected using the CIS. The captured image undergoes processing with LDA to compensate for distortions, enabling the conversion of pixel coordinates to component coordinates. To achieve this, it is crucial to establish a reference system for the component, or, more precisely, for the target layer.
Determining the reference system from the image involves a procedure like the one used for locating the target-layer origin in reference patterns, as described in the preceding section. However, this determination depends on the geometric attributes of each layer. Consequently, after applying LDA, translating the theoretical positions (obtained from the CAD file) of the contour points in the image becomes straightforward, yielding a set of tentative points close to where the actual contour points should lie (see Figure 12).
This procedure yields a collection of tentative points ( P i ), for which their position in the image in pixel coordinates, the theoretical contour orientation ( θ ), and the distance between the target layer and the local background ( H ) at each point are already known. Thus, adhering to the same criterion for the vertical/horizontal orientation of GCPs described in the preceding section, it becomes feasible to define the R O I P i (Figure 12).
Each R O I P i will have a size ( m ) significantly larger than the size ( n ) of the reference vector G R P H , θ , allowing for the extraction of every possible CP and its corresponding C P j P i vector, also n -sized. As a rule, m should be large enough to ensure that the position of the tentative point does not differ significantly from the position of the actual contour point to the extent that the latter falls outside the R O I P i , thereby impeding its accurate identification. Given the typical dimensional errors documented in studies such as those published by Minetola [14], a region of interest greater than 0.5 mm should be sufficient in most cases, although larger lengths would also be adequate.
The degree of similarity between each C P j P i and the corresponding G R P H , θ is evaluated by means of the Euclidean distance ( d ), following Equation (4).
d C P j P i , G R P H , θ = C P j P i G R P H , θ
The closer the value of d is to 0, the more similar both vectors are. By evaluating the value of d across the R O I P i , the algorithm searches for the vector that yields the minimum value, thereby assigning the location of the actual contour point.
In the example provided in Figure 13, an R O I P i consisting of 51 pixels is analyzed using a window size of seven pixels. With this length, the first assessable position is centered on pixel 4 ( C P 4 P i ), which retrieves a d value of 1.459. Then, the procedure moves to the next position (pixel 5) to extract C P 5 P i and calculate its d value, and it will continue up to pixel 48, since this is the last assessable position given this window size. In this example, the candidate pattern centered in the 25th pixel yields the minimum value for the Euclidean distance (0), and, consequently, the contour point location will be assigned to that position. This procedure should be repeated for all the previously defined tentative points along the theoretical layer contour, retrieving a collection of contour points. The final step of the algorithm involves applying an outlier filter to remove false positives related to phenomena such as ghostly features, small disturbances, and hindrances.

5. Case Study

In this section, we present a case study to evaluate the degree of improvement over generic edge-detection algorithms based on testing samples like those used in [29].

5.1. Manufacture and Digitization of the Test Specimens

Following [29], the test targets are circular contours corresponding to the top layer of inverted conical frustums. Four test specimens were manufactured resembling the layer-to-background distances previously tested: H 8 , H 6 , H 4 ,   and   H 2 (Figure 14).
Once manufactured, all four specimens were digitized using the scanner mentioned in Section 3.4, with a resolution of 2400 dpi. Additionally, they were also measured with the CMM mentioned in Section 3.3. Figure 15 shows the digital images obtained for each target. Due to the scanning direction and the geometric arrangement of illumination in the CIS, the top layer casts shadows in the upper region, resulting in a darker background compared to other orientations. Conversely, the lower region of the background receives unobstructed light, resulting in a brighter appearance. This effect is also influenced by the layer-to-background distance. Specifically, the background of the H 2 specimen is brighter in the lower region than in the adjacent area of the target layer.

5.2. Contour Reconstruction of Test Targets

According to the proposed procedure, it is necessary to position the P i tentative points in the image to identify the R O I P i . This positioning requires locating an identifiable part origin in the digital image. In this work, test targets were provided with a reference hole at the center of the target layer. This hole is identified in the digital image using the Hough algorithm [48], obtaining the pixel coordinates of its center, which serves as a valid coordinate origin for the tentative points. The theoretical coordinates of the N tentative points are then transformed into pixel coordinates through the application of LDA, aligning them with the image of the manufactured part.
In this work, a total of 720 tentative points were used. Given that the selected test geometry was a circumference, the angular resolution for the dimensional and geometric characterization of the contour was 0.5°. Since the reference database was constructed with a 15° resolution, an interpolation procedure was applied. Accordingly, each pixel ( n ) of the G R P H , θ corresponding to angle θ was calculated from the n t h element of the adjacent G R P H , θ vectors defined for the preceding and subsequent angles. Figure 16 shows an example of the interpolation between G R P H 2 , 150 and G R P H 2 , 165 to construct an interpolated G R P H 2 , 160 .
For each P i , an R O I P i is defined according to the orientation rules outlined in Section 3. In this work, the length of the ROIs ( m ) was calculated using Equation (5).
m = 2 · G R P H , θ 1 = 2 · n 1 = 101
Consequently, each ROI was 1.069 mm long. The procedure then extracted all the n-sized C P j P i s , and Equation (4) was applied to determine each candidate’s similarity to the G R P H , θ . By repeating this process for all tentative points, a cloud of contour points was obtained, providing a discrete representation of the target layer’s contour.

5.3. Results

Figure 17 shows the radial deviations ( R d s ) between the actual positions of the contour points and the theoretical ones. These deviations are illustrated for both verifications performed with the CMM (orange line) and those obtained with the described procedure (blue line).
As shown, the identification of contour points using the proposed method covers the entire target layer, and the radial deviations are closely aligned with those obtained using the CMM.
To quantify how comparable the obtained results are to a trusted reference, the same quality indicators defined in [29] were used. The coverage factor ( C f ) represents the completeness of test-target reconstruction. The circular contour is divided into angular sectors, and C f is defined as the percentage ratio of the number of sectors containing at least one valid contour point ( n S v ) to the total number of sectors considered ( n S T ) (360 for this research), as shown in Equation (6). The average of radial deviations ( D ¯ ) is calculated as the mean absolute value of the deviations between the contour points obtained through image processing and those measured with the CMM, previously grouped into those 360 sectors, following Equation (7). Finally, the standard deviation of radial deviations ( σ D ) represents the variability of the radial deviations along the contour, calculated as in Equation (8).
C f = n S v n S T · 100 = n S v 360 · 100
D ¯ = 1 n · i = 1 n R d i
σ D = 1 n 1 · i = 1 n R d i D ¯ 2
According to Table 2, the proposed method allows nearly full coverage, even for low-contrast specimens. Moreover, the average of the radial deviations is lower than 14 µm for each artefact, with a maximum standard deviation of 13.35 µm for the worst-case scenario ( H 2 ).

6. Discussion

The use of CIS systems could enable the thorough digitization of individual layers in MEX/P components. Although an accurate characterization of layer contours from digital images is hindered by several factors, issues such as image distortion can be mitigated through global or local compensation methods. However, challenges persist with factors like the contrast pattern structure between the layer contour and its background, affecting the performance of popular detection algorithms such as Canny and Sobel. This problem is particularly pronounced when the proximity between the layer and the background leads to noticeable asymmetries in those contrast patterns. The proposed AEDA leverages the peculiarities of contour characterization in MEX/P by minimizing errors in the precise identification and localization of layer contour points within images captured by a CIS. The AEDA operates on the principle that similar contrast scenarios will produce consistent grayscale patterns between the target layer’s contour and the surrounding background.
The results presented in Section 5 indicate that the average deviation of point position was comparable to that achievable with a CMM in a metrology laboratory, ranging from 8.02 µm to 13.11 µm within the experimental limits. These results are sufficiently precise for quality characterization and for implementing compensation strategies, considering that typical dimensional errors in MEX/P are measured in tenths of millimeters for parts similar in size to the test targets used in this study [14]. Furthermore, the proposed AEDA outperforms the results obtained for the worst-case-scenario parts discussed in [29]. Specifically, in that work, the average of radial deviations ( D ¯ ) was 54.9 µm for an H 2 specimen (using Canny processing with T = 10 and S f = 1 ) and 55.97 µm for an H 4 specimen (using Roberts processing with T = 5 and S f = 1 ). This demonstrates that the AEDA significantly surpasses the best results achieved with conventional edge-detection algorithms [40,41], even when the optimal combination parameters T and S f were used [29].
One particularly beneficial characteristic of this implementation is that an approximate expected location of actual layer contours can be established beforehand, given that typical positional errors of individual geometric features in MEX/P are on the order of tenths of a millimeter. Consequently, the expected position of contours within the digitized image is accurate enough to identify a set of tentative points, ensuring that the actual contour points will be situated nearby. This advantageous feature of layer-wise CIS scanning contrasts with typical applications of conventional edge-detection algorithms, where the approximate location of edge contours is unknown beforehand and the algorithms must process the image as a whole. The results demonstrate a consistent improvement in the quality of the reconstruction, achieving two objectives. Firstly, it eliminates the necessity to choose an optimal combination of edge-detection method and processing configuration. The proposed method is, in this regard, more robust. It also reduces the uncertainty of contour point identification, as the algorithm yields only one valid (optimal) contour point location for each local search area. In contrast, conventional edge-detection algorithms often produce multiple-point detections due to the complexity of contrast patterns.
As a downside, the proposed procedure entails the execution of a preliminary phase of experiments for the characterization of the reference masks. This characterization may become time-consuming when additional factors, such as the type of material or the potential interference in the shadow pattern caused by complex contours, are introduced. Similarly, an increase in the discretization of the number of test levels will demand a greater experimental effort. Additionally, the challenges associated with the integration of CIS sensors into the machinery should not be underestimated, nor should the impact of external light sources on the quality of the results. Moreover, this study has certain limitations related to the manufacturing equipment, feedstock, test-target geometry, and the FBS model. None of these inconveniences are, according to the research team’s judgment, insuperable, but they should not be ignored or downplayed. Since the procedure includes the creation of a GRP database, variations in the manufacturing machine or the feedstock will require the manufacture and digitization of specific test artifacts, and these limitations should not pose a problem. Similarly, FBS particularities will be taken into account during the generation of the LDA parameters. However, the evaluation of non-circular geometries will require adapting the procedure and selecting alternative quality indicators that do not rely on radial differences. The development of a robust layer digitization system in MEX/P still requires CIS manufacturers to actively engage in integrating these sensors into production equipment. This integration could encompass an improved control of lighting during scanning, even the possibility of varying the relative orientation between the lighting direction and the scanning direction.
It is important to highlight that, although given a specific orientation and distance the appearance of the gradient can be predicted, this relationship is not bijective, and similar gradients may result from different combinations of height and orientation. This lack of uniqueness does not pose a problem for the proposed AEDA, as the theoretical shape of the contour at the tentative point is known in advance, allowing the expected local orientation to be taken into account. Nonetheless, this could present a challenge in cases where a general search based on patterns is conducted without the use of tentative points.
In the realm of basic research, two possibilities could be considered for future research. The first involves developing a heuristic model of the grayscale pattern distribution in the vicinity of the contour. This model would necessitate extensive experimentation, but proper parameterization could achieve the required precision range for the intended application. The second is the development of a machine learning model that, using the reference masks as input, aims to infer the contour gradient structure in untested situations. The latter possibility seems to be promising and it also aligns with the growing trend in AM research to apply machine learning in situations like the present one, where the development of heuristic models poses serious challenges.

7. Conclusions

This study introduces a novel method for accurately characterizing layer contours in MEX/P parts using digital images captured with a contact image sensor (CIS). The basic premise is that the local grayscale gradient in the transition from the target layer to the surrounding background is influenced by their distance apart and the relative orientation of the contour and the scanning direction. Therefore, the accurate location of contour points can rely on evaluating the similarity between grayscale patterns near a tentative contour point and reference grayscale patterns precisely centered on an actual contour point.
Based on this premise, a method to create a database of gradient reference patterns (GRPs) using digital images of custom-made rotational test artefacts has been developed. These test artefacts ideally represent combinations of contour orientation and layer-to-background distances, but they can be made more complex to account for additional influencing factors, such as the feedstock. Once the layer under inspection has been manufactured and digitized with the CIS, tentative contour point locations are identified in the retrieved image. Regions of interest (ROIs) likely containing the actual contour points are then determined in the vicinity of these tentative points. A similarity analysis is then conducted between the appropriate GRPs for each tentative point, and the local candidate patterns (CPs) are extracted from the ROIs. This allows for determining the most probable contour point location. By replicating this process for all tentative points, the layer edge is finally discretely reconstructed.
The proposed method was applied in a case study using circular test targets. The results demonstrate that contour points can be properly located independently of the differences between contrast scenarios. The average deviation of point position compared to that achievable with a CMM in a metrology laboratory ranges from 8.02 µm to 13.11 µm within the experimental limits, which should be suitable for an MEX/P application. Moreover, it also provides a significant improvement in the accuracy of contour point localization compared to generic edge-detection algorithms. Even in the worst-case scenarios, with highly non-uniform layer-to-background contrast, the results are significantly better than those achieved in previous research [29] (54.9 µm for an H 2 specimen, and 55.97 µm for an H 4 specimen).
This approach ensures high precision in determining contour point locations by adaptively processing the local characteristics of the layer-to-background pattern, setting it apart from conventional methods that use a single algorithm to process entire images. Additionally, the proposed method guarantees that each local search yields a single contour point, unlike most edge-detection algorithms that typically generate multiple candidate points. This specificity enhances the accuracy and reliability of contour point identification, making the method more robust against variations in local contrast patterns. Future work will focus on developing a heuristic model for the grayscale pattern distribution near the contour, as well as a machine learning model to infer the contour gradient structure in untested scenarios.

Author Contributions

Conceptualization, A.F., P.F. and D.B.; methodology, A.F. and D.B.; software, A.F. and P.F.; validation, B.J.Á., P.Z. and G.V.; writing—original draft preparation, A.F. and D.B.; writing—review and editing, B.J.Á., P.Z. and G.V.; visualization, B.J.Á. and P.F.; supervision, D.B. and G.V.; project administration, G.V. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Spanish Ministry of Science, Innovation and Universities and by FEDER (DPI2017-83068-P).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The authors will make the raw data on which the conclusions of this article are based available upon request.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Kalpakjian, S.; Schmid, S. Manufacturing, Engineering and Technology, 7th ed.; Pearson: London, UK, 2013; ISBN 9789810694067. [Google Scholar]
  2. Groover, M.P. Fundamentals of Modern Manufacturing: Materials, Processes, and Systems, 7th ed.; Wiley: Hoboken, NJ, USA, 2019; ISBN 9781119475217. [Google Scholar]
  3. Black, J.T.; Kosher, R.A. DeGarmo’s Materials and Processes in Manufacturing, 11th ed.; Wiley: Hoboken, NJ, USA, 2012; ISBN 9781119475217. [Google Scholar]
  4. ISO/ASTM 52900:2021; Additive Manufacturing—General Principles—Fundamentals and Vocabulary. International Organization for Standardization (ISO): Geneva, Switzerland, 2021.
  5. Wohlers, T. Wholers Report 2021—Additive Manufacturing and 3D Printing State of the Industry; Annual Worldwide Progress Report; Wholers Associates: Fort Collins, CO, USA, 2021; ISBN 978-0-9913332-7-1. [Google Scholar]
  6. Thomas-Seale, L.E.J.; Kirkman-Brown, J.C.; Attallah, M.M.; Espino, D.M.; Shepherd, D.E.T. The Barriers to the Progression of Additive Manufacture: Perspectives from UK Industry. Int. J. Prod. Econ. 2018, 198, 104–118. [Google Scholar] [CrossRef]
  7. Ronchini, A.; Moretto, A.M.; Caniato, F. Adoption of additive manufacturing technology: Drivers, barriers and impacts on upstream supply chain design. Int. J. Phys. Distrib. Logist. Manag. 2023, 53, 532–554. [Google Scholar] [CrossRef]
  8. Aslani, K.-E.; Kitsakis, K.; Kechagias, J.D.; Vaxevanidis, N.M.; Manolakos, D.E. On the Application of Grey Taguchi Method for Benchmarking the Dimensional Accuracy of the PLA Fused Filament Fabrication Process. Appl. Sci. 2020, 2, 1016. [Google Scholar] [CrossRef]
  9. Park, K.; Kim, G.; No, H.; Jeom, H.W.; Kremer, G.E.O. Identification of Optimal Process Parameter Settings Based on Manufacturing Performance for Fused Filament Fabrication of CFR-PEEK. Appl. Sci. 2020, 10, 4630. [Google Scholar] [CrossRef]
  10. Vidakis, N.; David, C.; Petousis, M.; Sagris, D.; Mountakis, N.; Moutsopoulou, A. The Effect of Six Key Process Control Parameters on the Surface Roughness, Dimensional Accuracy, and Porosity in Material Extrusion 3D Printing of Polylactic Acid: Prediction Models and Optimization Supported by Robust Design Analysis. Adv. Ind. Manuf. Eng. 2022, 5, 100104. [Google Scholar] [CrossRef]
  11. Zhang, B.; Li, L.; Anand, S. Distortion Prediction and NURBS Based Geometry Compensation for Reducing Part Errors in Additive Manufacturing. Procedia Manuf. 2020, 48, 706–717. [Google Scholar] [CrossRef]
  12. Wang, A.; Song, S.; Huang, Q.; Tsung, F. In-Plane Shape-Deviation Modeling and Compensation for Fused Deposition Modeling Processes. IEEE Trans. Automat. Sci. Eng. 2017, 14, 968–976. [Google Scholar] [CrossRef]
  13. Peña, F.; Rico, J.C.; Zapico, P.; Valiño, G.; Mateos, S. A Layerwise Geometric Error Compensation Procedure for Additive Manufacturing. Rapid Prototyp. J. 2024, 30, 490–501. [Google Scholar] [CrossRef]
  14. Minetola, P.; Calignano, F.; Galati, M. Comparing Geometric Tolerance Capabilities of Additive Manufacturing Systems for Polymers. Addit. Manuf. 2020, 32, 101103. [Google Scholar] [CrossRef]
  15. Polini, W.; Corrado, A. Dimensional and Geometrical Deviations of an Assembly with a Lattice Structure Manufactured by a Material Extrusion Process: Numerical and Experimental Results. Int. J. Adv. Manuf. Technol. 2023, 127, 689–701. [Google Scholar] [CrossRef]
  16. Nikiema, D.; Sergent, A.; Balland, P. Study of the Industrial Potential of Markforged X7 3D Printer. Mech. Ind. 2024, 25, 4. [Google Scholar] [CrossRef]
  17. Oleff, A.; Küster, B.; Stonis, M.; Overmeyer, L. Process monitoring for material extrusion additive manufacturing: A state-of-the-art review. Prog. Addit. Manuf. 2021, 6, 705–730. [Google Scholar] [CrossRef]
  18. Armstrong, A.A.; Norato, J.; Alleyne, A.G.; Wagoner Johnson, A.J. Direct process feedback in extrusion-based 3D bioprinting. Biofabrication 2019, 12, 015017. [Google Scholar] [CrossRef]
  19. Lu, Y.; Wang, Y. Monitoring temperature in additive manufacturing with physics-based compressive sensing. J. Manuf. Syst. 2018, 48, 60–70. [Google Scholar] [CrossRef]
  20. Huang, T.; Wang, S.; Yang, S.; Dai, W. Statistical process monitoring in a specified period for the image data of fused deposition modeling parts with consistent layers. J. Intell. Manuf. 2021, 32, 2181–2196. [Google Scholar] [CrossRef]
  21. Akhavan, J.; Lyu, J.; Manoochehri, S. A Deep Learning Solution for Real-Time Quality Assessment and Control in Additive Manufacturing Using Point Cloud Data. J. Intell. Manuf. 2024, 35, 1389–1406. [Google Scholar] [CrossRef]
  22. Oleff, A.; Küster, B.; Overmeyer, L. Determination of Quality Classes for Material Extrusion Additive Manufacturing Using Image Processing. Int. J. Adv. Manuf. Technol. 2024, 132, 1585–1598. [Google Scholar] [CrossRef]
  23. Skala, V.; Pan, R.; Nedved, O. Making 3D Replicas Using a Flatbed Scanner and a 3D Printer. In Computational Science and Its Applications—ICCSA 2014; Murgante, B., Misra, S., Rocha, A.M.A.C., Torre, C., Rocha, J.G., Falcão, M.I., Taniar, D., Apduhan, B.O., Gervasi, O., Eds.; Lecture Notes in Computer Science; Springer International Publishing: Cham, Switzerland, 2014; Volume 8584, pp. 76–86. ISBN 978-3-319-09152-5. [Google Scholar]
  24. Van Dalen, G. Determination of the Size Distribution and Percentage of Broken Kernels of Rice Using Flatbed Scanning and Image Analysis. Food Res. Int. 2004, 37, 51–58. [Google Scholar] [CrossRef]
  25. Tan Phuc, L.; Seita, M. A High-Resolution and Large Field-of-View Scanner for in-Line Characterization of Powder Bed Defects during Additive Manufacturing. Mater. Des. 2019, 164, 107562. [Google Scholar] [CrossRef]
  26. De Vicente, J.; Sánchez-Pérez, A.M.; Maresca, P.; Caja, J.; Gómez, E. A Model to Transform a Commercial Flatbed Scanner into a Two-Coordinates Measuring Machine. Measurement 2015, 73, 304–312. [Google Scholar] [CrossRef]
  27. Majarena, A.C.; Aguilar, J.J.; Santolaria, J. Development of an Error Compensation Case Study for 3D Printers. Procedia Manuf. 2017, 13, 864–871. [Google Scholar] [CrossRef]
  28. Blanco, D.; Fernandez, P.; Noriega, A.; Alvarez, B.J.; Valiño, G. Layer Contour Verification in Additive Manufacturing by Means of Commercial Flatbed Scanners. Sensors 2019, 20, 1. [Google Scholar] [CrossRef]
  29. Blanco, D.; Fernández, P.; Fernández, A.; Alvarez, B.J.; Rico, J.C. The Influence of Image Processing and Layer-to-Background Contrast on the Reliability of Flatbed Scanner-Based Characterisation of Additively Manufactured Layer Contours. Appl. Sci. 2020, 11, 178. [Google Scholar] [CrossRef]
  30. Blanco, D.; Fernández, A.; Fernández, P.; Álvarez, B.J.; Peña, F. Layer Contour Characterization in Additive Manufacturing through Image Binarization. IOP Conf. Ser. Mater. Sci. Eng. 2021, 1193, 012067. [Google Scholar] [CrossRef]
  31. Pena, F.; Rico, J.C.; Valino, G.; Zapico, P.; Meana, V.M. A Procedure to Integrate a CIS Sensor in an Additive Manufacturing Machine for In-Situ Digitizing of Deposited Material Layers. IEEE/ASME Trans. Mechatron. 2022, 27, 2690–2698. [Google Scholar] [CrossRef]
  32. Fernández, A.; Fernández, P.; Peña, F.; Blanco, D. On-Machine CIS SoC-Based Layerwise Inspection System for MEX Additive Manufacturing. Key Eng. Mater. 2023, 961, 143–150. [Google Scholar] [CrossRef]
  33. Roberts, L.G. Machine Perception of Three-Dimensional Solids. Ph.D. Thesis, Massachusetts Institute of Technology, Cambridge, MA, USA, 1963. [Google Scholar]
  34. Duda, R.; Hart, P. Pattern Classification and Scene Analysis; John Wiley & Sons Inc.: Hoboken, NJ, USA, 1973; ISBN 0471223611. [Google Scholar]
  35. Prewitt, J.M.S. Object enhancement and extraction. In Picture Processing and Psychopictorics; Lipkin, B.S., Rosenfeld, A., Eds.; Academic Press: Hoboken, NJ, USA, 1970; pp. 75–149. ISBN 9780323146852. [Google Scholar]
  36. Canny, J. A Computational Approach to Edge Detection. IEEE Trans. Pattern Anal. Mach. Intell. 1986, 6, 679–698. [Google Scholar] [CrossRef]
  37. Papari, G.; Petkov, N. Edge and line oriented Contour detection: State of the art. Image Vis. Comput. 2011, 29, 70–103. [Google Scholar] [CrossRef]
  38. Malbog, M.A.F.; Lacatan, L.L.; Dellosa, R.M.; Austria, Y.D.; Cunanan, C.F. Edge Detection Comparison of Hybrid Feature Extraction for Combustible Fire Segmentation: A Canny vs. Sobel Performance Analysis. In Proceedings of the 2020 11th IEEE Control and System Graduate Research Colloquium (ICSGRC), Shah Alam, Malaysia, 8 August 2020; pp. 318–322. [Google Scholar]
  39. Radhakrishnan, M.; Panneerselvam, A.; Nachimuthu, N. Canny Edge Detection Model in MRI Image Segmentation Using Optimized Parameter Tuning Method. Intell. Autom. Soft Comput. 2020, 26, 1185–1199. [Google Scholar] [CrossRef]
  40. Zhou, Z.; Zhang, J. Object Detection and Tracking Based on Adaptive Canny Operator and GM(1,1) Model. In Proceedings of the 2007 IEEE International Conference on Grey Systems and Intelligent Services, Nanjing, China, 18–20 November 2007; pp. 434–439. [Google Scholar] [CrossRef]
  41. Ali, M.; Clausi, D. Using the Canny Edge Detector for Feature Extraction and Enhancement of Remote Sensing Images. In Proceedings of the IGARSS 2001: Scanning the Present and Resolving the Future, Proceedings, IEEE 2001 International Geoscience and Remote Sensing Symposium, Sydney, NSW, Australia, 9–13 July 2001; Cat. No.01CH37217. Volume 5, pp. 2298–2300. [Google Scholar] [CrossRef]
  42. Heinl, M.; Schmitt, F.K.; Hausotte, T. In-Situ Contour Detection for Additive Manufactured Workpieces. Procedia CIRP 2018, 74, 664–668. [Google Scholar] [CrossRef]
  43. Özsoy, K.; Aksoy, B.; Salman, O.K.M. Investigation of the Dimensional Accuracy Using Image Processing Techniques in Powder Bed Fusion. Proc. Inst. Mech. Eng. Part E J. Process Mech. Eng. 2021, 235, 1587–1597. [Google Scholar] [CrossRef]
  44. Aminzadeh, M.; Kurfess, T. Vision-Based Inspection System for Dimensional Accuracy in Powder-Bed Additive Manufacturing. In Proceedings of the ASME 2016 11th International Manufacturing Science and Engineering Conference, Blacksburg, VA, USA, 27 June–1 July 2016; Proceedings of the Volume 2: Materials; Biomanufacturing; Properties, Applications and Systems; Sustainable Manufacturing. American Society of Mechanical Engineers: Blacksburg, VA, USA, 2016. [Google Scholar] [CrossRef]
  45. Lerchen, M.; Hornung, J.; Zou, Y.; Hausotte, T. Methods and Procedure of Referenced in Situ Control of Lateral Contour Displacements in Additive Manufacturing. J. Sens. Sens. Syst. 2021, 10, 219–232. [Google Scholar] [CrossRef]
  46. Nascimento, R.; Martins, I.; Dutra, T.A.; Moreira, L. Computer Vision Based Quality Control for Additive Manufacturing Parts. Int. J. Adv. Manuf. Technol. 2023, 124, 3241–3256. [Google Scholar] [CrossRef]
  47. ISO 10360-2:2009; Geometrical Product Specifications (GPS)—Acceptance and Reverification Tests for Coordinate Measuring Machines (CMM): Part 2: CMMs Used for Measuring Linear dimensions. International Organization for Standardization (ISO): Geneva, Switzerland, 2009.
  48. Yuen, H.; Princen, J.; Illingworth, J.; Kittler, J. Comparative Study of Hough Transform Methods for Circle Finding. Image Vis. Comput. 1990, 8, 71–77. [Google Scholar] [CrossRef]
Figure 1. Schematic representation of individual line capture with a CIS on an irregularly contoured part, with a uniform distance ( H ) between the target layer and the background.
Figure 1. Schematic representation of individual line capture with a CIS on an irregularly contoured part, with a uniform distance ( H ) between the target layer and the background.
Applsci 14 06163 g001
Figure 2. Idealized representation of two contour points ( P 1 and P 2 ) corresponding to a single digitized line, where the different grayscale gradients corresponding to each local contour orientation can be observed.
Figure 2. Idealized representation of two contour points ( P 1 and P 2 ) corresponding to a single digitized line, where the different grayscale gradients corresponding to each local contour orientation can be observed.
Applsci 14 06163 g002
Figure 3. Digitized images obtained from actual parts for different combinations of H and θ illustrating the influence of both factors on the grayscale gradient.
Figure 3. Digitized images obtained from actual parts for different combinations of H and θ illustrating the influence of both factors on the grayscale gradient.
Applsci 14 06163 g003
Figure 4. Schematic flowchart of the AEDA.
Figure 4. Schematic flowchart of the AEDA.
Applsci 14 06163 g004
Figure 5. Idealized representation of three GRPs for different combinations of H and θ .
Figure 5. Idealized representation of three GRPs for different combinations of H and θ .
Applsci 14 06163 g005
Figure 6. Test artefacts: rectangular base assembled with the H 8 rotating element and additional rotating elements for H 6 , H 4 , and H 2 , along with CIS images captured at θ = 0 ° .
Figure 6. Test artefacts: rectangular base assembled with the H 8 rotating element and additional rotating elements for H 6 , H 4 , and H 2 , along with CIS images captured at θ = 0 ° .
Applsci 14 06163 g006
Figure 7. Schematic representation of a test artefact and the distribution of points measured with the CMM along the TCS (green dots) and the OCS (red dots).
Figure 7. Schematic representation of a test artefact and the distribution of points measured with the CMM along the TCS (green dots) and the OCS (red dots).
Applsci 14 06163 g007
Figure 8. Steps followed to determine the X s and Y s axes in the digitized image of a test artefact: (a) detection of the reference hole; (b) binarization with Otsu; (c) definition of approximately aligned masks: OCS (red region) and orthogonal short side (red region); (d) final placement of the reference axes (thin red lines).
Figure 8. Steps followed to determine the X s and Y s axes in the digitized image of a test artefact: (a) detection of the reference hole; (b) binarization with Otsu; (c) definition of approximately aligned masks: OCS (red region) and orthogonal short side (red region); (d) final placement of the reference axes (thin red lines).
Applsci 14 06163 g008
Figure 9. The locations of two adjacent contour points ( P i T C S and P i + 1 T C S ) in a digitized image are determined by applying the transformation to their coordinates calculated with the CMM, converting them to pixel coordinates.
Figure 9. The locations of two adjacent contour points ( P i T C S and P i + 1 T C S ) in a digitized image are determined by applying the transformation to their coordinates calculated with the CMM, converting them to pixel coordinates.
Applsci 14 06163 g009
Figure 10. Calculation of the I H , θ j intensity values for G R P H , θ .
Figure 10. Calculation of the I H , θ j intensity values for G R P H , θ .
Applsci 14 06163 g010
Figure 11. Representation of the GRP for the different test pieces based on the layer-to-background distance: (a) H 8 ; (b) H 6 ; (c) H 4 ; (d) H 2 .
Figure 11. Representation of the GRP for the different test pieces based on the layer-to-background distance: (a) H 8 ; (b) H 6 ; (c) H 4 ; (d) H 2 .
Applsci 14 06163 g011
Figure 12. Location of tentative points in the digital image and identification of ROIs.
Figure 12. Location of tentative points in the digital image and identification of ROIs.
Applsci 14 06163 g012
Figure 13. Similarity evaluation between the candidates ( C P j P i ) and the reference ( G R P H , θ ).
Figure 13. Similarity evaluation between the candidates ( C P j P i ) and the reference ( G R P H , θ ).
Applsci 14 06163 g013
Figure 14. Geometry and dimensions of test targets.
Figure 14. Geometry and dimensions of test targets.
Applsci 14 06163 g014
Figure 15. Digitized sample specimens with heights, from left to right, H 8 , H 6 , H 4 , and H 2 .
Figure 15. Digitized sample specimens with heights, from left to right, H 8 , H 6 , H 4 , and H 2 .
Applsci 14 06163 g015
Figure 16. Example of the interpolation procedure.
Figure 16. Example of the interpolation procedure.
Applsci 14 06163 g016
Figure 17. Representation of the radial deviations as calculated with the CMM (orange) and with the CIS-based procedure (blue) for the different test specimens: (a) H 8 ; (b) H 6 ; (c) H 4 ; (d) H 2 .
Figure 17. Representation of the radial deviations as calculated with the CMM (orange) and with the CIS-based procedure (blue) for the different test specimens: (a) H 8 ; (b) H 6 ; (c) H 4 ; (d) H 2 .
Applsci 14 06163 g017
Table 1. Configuration parameters used for manufacturing test artefacts.
Table 1. Configuration parameters used for manufacturing test artefacts.
ParameterValue
MaterialWhite BCN3D® PLA
Extruder temperature200 °C
Layer height0.1 mm
Flow rate100%
Filament diameter2.85 mm
Top/bottom patternLines
Wall orderingOutside—inwards
Table 2. Quality indicators for each test artefact.
Table 2. Quality indicators for each test artefact.
H 8 H 6 H 4 H 2
C f   % 100100100100
D ¯   μ m 11.018.0211.2713.11
σ D   μ m 8.358.6012.2113.35
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

Fernández, A.; Blanco, D.; Álvarez, B.J.; Fernández, P.; Zapico, P.; Valiño, G. Layer Contour Geometric Characterization in MEX/P through CIS-Based Adaptive Edge Detection. Appl. Sci. 2024, 14, 6163. https://doi.org/10.3390/app14146163

AMA Style

Fernández A, Blanco D, Álvarez BJ, Fernández P, Zapico P, Valiño G. Layer Contour Geometric Characterization in MEX/P through CIS-Based Adaptive Edge Detection. Applied Sciences. 2024; 14(14):6163. https://doi.org/10.3390/app14146163

Chicago/Turabian Style

Fernández, Alejandro, David Blanco, Braulio J. Álvarez, Pedro Fernández, Pablo Zapico, and Gonzalo Valiño. 2024. "Layer Contour Geometric Characterization in MEX/P through CIS-Based Adaptive Edge Detection" Applied Sciences 14, no. 14: 6163. https://doi.org/10.3390/app14146163

APA Style

Fernández, A., Blanco, D., Álvarez, B. J., Fernández, P., Zapico, P., & Valiño, G. (2024). Layer Contour Geometric Characterization in MEX/P through CIS-Based Adaptive Edge Detection. Applied Sciences, 14(14), 6163. https://doi.org/10.3390/app14146163

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