Expand this Topic clickable element to expand a topic
Skip to content
Optica Publishing Group

Visual method for measuring the roughness of a grinding piece based on color indices

Open Access Open Access

Abstract

The existing machine-vision surface roughness measurement technique extracts relevant evaluation indices from grayscale images without using the strong sensitivity of color information. In addition, most of these measurements use a micro-vision imaging method to measure a small area and cannot make an overall assessment of the workpiece’s surface. To address these issues, a method of measuring surface roughness that uses an ordinary light source and a macro-vision perspective to generate a red and green color index for each pixel is proposed in the present study. A comparison test is conducted on a set of test samples before and after surface contamination using the color index and gray-level algebraic averaging, the square of the main component of the Fourier transform in the frequency domain, and the entropy. A strong correlation between the color index and the surface roughness is established; this correlation is not only higher than that of other indices but also present despite contamination and very robust. Verification using a regression model based on a support vector machine proves that the proposed method not only has a simple apparatus and makes measurement easy but also provides high precision and is suitable over a wide measurement range. The impact of the red and green color blocks, the lighting, and the direction of the surface texture on the correlation between the color index and the roughness are also assessed and discussed in this paper.

© 2016 Optical Society of America

1. Introduction

Surface quality control in precision component processing is very strict, especially with respect to workpiece surface roughness, which has a significant impact on the friction wear, working precision, compatibility, fatigue resistance, and corrosion resistance of the workpiece. The methods used to measure surface roughness are generally categorized into contact and non-contact types. The main contact method is the stylus-based method, the precision of which is significantly impacted by the stylus’s radius and linear sampling range, its inability to function inline, and its low efficiency. Moreover, measuring using the stylus-based method inevitably scratches the workpiece’s surface and, therefore, is not suitable for measuring workpieces with high-quality surfaces. The main non-contact measuring methods include optical, electronic, and machine vision techniques. Optical measurement requires expensive equipment and has an extremely small single measurement area. In addition, optical measurement is easily influenced by environmental conditions and has a low operating efficiency [1,2]. Electronic measurement usually uses electrodes that move without making contact with the workpiece’s surface and capture the characteristics of the workpiece’s surface morphology within the range they cover, which is represented by the feedback signal obtained by its capacitive sensors. The measurement’s reliability is affected by the electrode’s radius and speed and by the equipment’s sensitivity, and its measuring efficiency is also quite low [3,4]. Machine vision measurement is based on optical imaging principles; surface images are collected by industrial cameras, and indices characteristic of the surface roughness parameter are extracted from them. The unknown surface roughness is then projected from known characteristic indices of the image. The measurement process is very efficient and can be easily automated. In addition, this method can support inline measurement and therefore, continually attracts more attention from researchers

Based on differences in light sources, machine vision measurement methods can be roughly categorized into two types. The first is vision measurement using laser light sources, which can provide very high precision. For example, Lu et al. obtained laser spot images by studying laser irradiation on a grinding surface and discovered that the surface roughness and the characteristic energy of the gray level co-occurrence matrix (GLCM) have a very well-defined monotonic relationship [5]. Angelsky et al. studied the feasibility of diagnosing the rough surfaces with roughness exceeding the wavelength of the probing radiation by transforming the longitudinal coherence function for a polychromatic field [6].The drawbacks of this method are that laser optical systems are very expensive, the measurement equipment is complex in structure, and optical path adjustment is rather difficult [7–9]. The other machine vision roughness measurement method is to use ordinary light sources (such as incandescent bulbs or light-emitting diodes (LEDs)). Methods of this type are further divided into micro-vision and macro-vision methods based on the size of the imaging area. Micro-vision methods collect magnified images of the surface to be measured, which can be used to observe its morphology and texture. Luk et al. used a machine micro-vision method in an early study of surface roughness and discovered that the ratio of the standard deviation to the root mean square distribution of the gray level histogram is a nonlinear increasing function of the surface roughness, Ra [10]. Ramamoorthy et al. studied the gray level histogram of a magnified image of a workpiece surface that had been processed by grinding, milling, and shaping and explored the use of a GLCM to distinguish different types of processed surface; they determined that the smoother the surface was, the more evenly the GLCM was distributed and that the trend is to move along the diagonal [11]. Gadelmawla used some parameters of the GLCM to characterize different roughnesses by extracting characteristics of the texture of a workpiece’s surface by processing trace morphology micro-images [12]. Liu et al. used the GLCM and a model based on a support vector machine (SVM) to project the roughness of the R-surface in deep hole [13]. In addition, Kamguem et al. [14] proposed a novel surface roughness measurement method based on gradient factors from threshold equations. However, due to their small imaging areas, micro-vision measurement methods cannot make overall assessments of workpiece surfaces. Macro-vision measurement directly collects images of a workpiece surface under ordinary lighting; because the measurement area of each image is large, this is an effective way of making low-cost automatic measurements of mechanical parts. In terms of macro-vision measurements, Younis measured the roughness of a workpiece’s surface by establishing a simple linear relationship between the roughness and the average gray level coefficients of an image [15]. Kumar et al. projected the surface roughness using regression by establishing a multivariate linear relationship between the surface roughness, the algebraic average gray level of an image, and the mechanical processing parameters [16]. Lee, Priya, and Palani injected the frequency spectrum of the Fourier transform of an image of a workpiece’s surface into a neural network to establish a relationship between the spectrum’s characteristics and the roughness and then projected the surface roughness [17–19], respectively. All of these macro-vision methods extract roughness-related assessment indices from grayscale images. However, grayscale images are degraded images; the sensitivity of the image index to surface roughness parameters is reduced by a certain amount. In addition, whereas the Fourier transform of the frequency spectrum is quite robust in representing textures with periodic features, when assessing the surface roughness of a grinding workpiece with a very random texture, its sensitivity is rather weak. In addition, the projection accuracy of an artificial neural network is significantly influenced by factors such as the size of the training sample, the training parameters, and the network’s structure [17,20]; therefore, it cannot guarantee an accurate projection when the sample size is small. In addition, a very important and objective factor that impacts the accuracy of roughness measurements that has been neglected in the abovementioned studies is that workpiece surfaces become contaminated with oil during the production process, and surface stains or rust on the learning calibration samples are formed by the environment over time.

In response to the abovementioned drawbacks of roughness measurement methods and because color is a sensitive descriptive factor that simplifies target extraction and identification [21–23], the present paper proposes a macro-vision roughness measurement method based on a color index. The proposed method is based on the monotonic decrease in the difference between the red and green values of each pixel as the roughness increases and uses a model based on SVM projection to measure surface roughness. Comparing with the three indices used for assessment, i.e., the algebraic average of the image’s gray levels, Ga, the entropy, En, and the square of the main component of the frequency spectrum, F2, indicates that the proposed method exhibits a high correlation between the assessing index and the roughness, requires simple testing equipment, provides high measurement accuracy, and is able to reject interference and make inline measurements.

The remaining portion of the present paper is organized as follows: Section 2 describes the theoretical foundation of color index-based measuring the roughness of grinding workpiece surfaces and the mathematical method used to extract the color index. Section 3 introduces the experimental design, which includes the experimental procedure, sample preparation, and the design of the equipment and the color block. In Section 4, the robustness of the correlation between the color index and the roughness is evaluated by comparing with the three indices, Ga, En and F2; then, the roughness is projected using an SVM-based model. The factors that impact the color index are analyzed and discussed in Section 5, and the conclusions are stated in Section 6.

2. Theoretical analysis of color index-based measurement of grinding workpiece surface roughness

2.1 Light reflection by and imaging of a rough surface

According to the law of light reflection, the light irradiating a target object is reflected to a plane mirror, which reflects it into the human eye; this allows people to see a virtual image of the object in the mirror. By the same principle, viewing the grinding surface as a plane mirror and the camera as a human eye, target object A forms a virtual image on the grinding surface as shown in Fig. 1.

 figure: Fig. 1

Fig. 1 Diagram of rough surface imaging. (a) Impact of a rough surface on imaging. (b) Vertical impact of a rough surface on imaging.

Download Full Size | PDF

When light shines on the surface of target object A, it can be viewed as a point light source. When two light rays are emitted from point A, as shown in Fig. 1(a), and arrive on the reflective surface of the grinding workpiece, they diverge after being reflected by the rough surface and only partially enter the imaging region. When the camera’s focus is fixed and the reflected light passes through the lens, which is precisely focused on the imaging plane, a clear point is produced. However, because the reflection is diffuse, the same point produces multiple virtual images with lower intensities, that is, multiple images of the same object, such as A1′ and A2′. If the reflected ray of light passing through the lens is not focused on the imaging plane, regardless of whether the focal point is in front of or behind the imaging plane, a fuzzy point appears on the plane, and the greater the distance from the focal point to the plane is, the fuzzier the image is [24]. In addition, Zhu et al. [25] believed that as the angle between the light source and the camera’s optical axis, θ(<90°), increases, the divergent area, S, of the point on the target object’s in the imaging plane is directly proportional to roughness height, ΔZ, as shown in Fig. 1(b). Therefore, a virtual image in the imaging plane reflects variations in the rough surface and its height, ΔZ, and its quality, I(i, j) is related to the luminance, L(i, j), the surface character, F(i, j), and the reflectivity, R(i, j), at position (i, j) [26, 27], where i = 1, 2, …, M, j = 1, 2, …, N and M × N is the image size.

I(i,j)=f(L(i,j),F(i,j),R(i,j))

The quality, I(i, j), of a grayscale image is expressed by gray value; the quality of a color image is expressed by the values of its R, G, and B components in RGB color space. The luminance, L(i, j), refers to the intensity of the light shining on the grinding surface, which is the visible light energy received per unit area. The surface character, F(i, j), includes the surface’s roughness, and texture direction, etc. The reflectivity, R(i, j), refers to the ability of the rough surface to reflect light.

2.2 Theoretical analysis of the color index

The RGB color model commonly used in digital image processing can be expressed as shown in Eq. (2),

F(x,y)=R(x,y)r+G(x,y)g+B(x,y)b
where F(x, y) represents the color vector at pixel (x, y) of the image; R(x, y), G(x, y), and B(x, y) represent the red, green, and blue values, respectively, at (x, y); and r, g, and b are unit vectors along the positive R, G, and B axes, respectively.

Obviously, there are many more light rays emitted from point A in Fig. 1, and therefore, after it has been reflected by the rough surface, the size of the virtual image formed on the camera’s imaging plane varies with the roughness of the reflecting surface. Due to the conservation of energy, the rougher the reflecting surface is, the more virtual images of point A form, and the larger the divergent area is, and the lower the average brightness of the spot formed by the virtual images is; this is precisely the theoretical foundation of the gray level information-based method of measuring surface roughness. When there are red and green point light sources A and B, the divergent virtual image reflected by the surface whose roughness is to be measured forms an ideal circle, as shown in Figs. 2(a) and 2(b).

 figure: Fig. 2

Fig. 2 Target object and its virtual image on (a) low-roughness surface and (b) high-roughness surface.

Download Full Size | PDF

In Fig. 2, A1 and A2 and B1 and B2 are ideal virtual images of light sources A and B, respectively, formed on different rough surfaces. The energies of the rays of light from points A and B are denoted by EA and EB, respectively, and it is assumed that no energy is lost. In Fig. 2(b), the red and green virtual images overlap in the region shown in yellow. The radii of virtual images A1, B1, A2, and B2 are denoted by rA1, rB1, rA2 and rB2, respectively, where rA1rA2 and rB1rB2; the overlapping region in Fig. 2(b) is denoted byA2B2. The single-pixel RGB value of virtual image A1 is denoted by (RA1(i,j),GA1(i,j),BA1(i,j)), and that of A2 is denoted by (RA2(i,j),GA2(i,j),BA2(i,j)), where BA1(i,j)=BA2(i,j)=0. L(A2B2)(i,j) represents the brightness of the overlapping region in Fig. 2(b). Then, the following relations can be obtained:

RA1(i,j)EArA12RA2(i,j)EArA22
GB1(i,j)EBrB12GB2(i,j)EBrB22
GA1(i,j)=RB1(i,j)=0
L(A2B2)(i,j)=RA2(i,j)+GB2(i,j)EArA22+EBrB22
Therefore, one has

|RA1(i,j)GA1(i,j)||RA2(i,j)GA2(i,j)|
|GB1(i,j)RB1(i,j)||GB2(i,j)RB2(i,j)|

The absolute difference in the values of the red and green components of each point is called the color difference, and CD is used to represent the average color difference of the M × N pixels in the range of the image. Then, the following correlation between the color index described in this paper, CD, and the roughness is established:

CD=1M×Ni=1Mj=1N|R(i,j)G(i,j)|
It is easy to see from Eqs. (7) and (8) that the mathematical relationship between CD and the surface roughness should be such that when the surface roughness is minimized, CD is maximized, and as the roughness increases, CD decreases monotonically and gradually approaches a relatively small constant. Therefore, the following mathematical model of the surface roughness, Ra, and the average image color index, CD, is established:

Ra=f(CD)

3. Experimental design

3.1 Sample preparation and experimental equipment

Forty 50 × 50 mm2 test samples made of 45# steel are processed using a manual plane surface grinder. A JB-4C stylus-based roughness measuring instrument is used to measure the roughness at nine evenly distributed locations; the results are shown in the Appendix, Table 5. It can be seen from Table 5 that the stylus-based roughness measurements are affected by the location, length, and number of measurements.

The target object shown in Fig. 1 is a red and green color block, which forms a virtual image on the test sample’s surface. To allow the virtual image of the color block captured by the camera to reflect the maximum variation in roughness, as shown in Fig. 1(b), the test sample’s measurement plane is placed perpendicular to the workbench, and the color block forms a 45° angle with the workbench; the camera is parallel to the color block to ensure that the virtual image is perpendicular to the camera’s optical axis, as shown in Fig. 3. Because the test sample’s texture influences the reflected light in a certain way [28], the experiment is discussed on the basis of the texture of surface being oriented perpendicular to the workbench and horizontally.

 figure: Fig. 3

Fig. 3 Experimental model.

Download Full Size | PDF

The camera used is a 2448 × 2050 pixel Basler color CCD camera fitted with a five megapixel lens. The light source is a white LED (model OPT-LI21222) whose brightness is controlled by a lighting controller (model OPT-DPA1024E-4, maximum level 255). Digital images are captured through a data bus and stored using Pylon 4. To reduce vibration of the test equipment during the imaging process, a precision optical platform is used as workbench. The light source’s brightness is controllable during the experiments, the locations of the camera and the color block locations, and the test sample is fixed to an iron plate with magnets; the entire experimental setup is shown in Fig. 4.

 figure: Fig. 4

Fig. 4 Machine vision-based roughness measurement setup.

Download Full Size | PDF

3.2 Color block design

Based on an analysis of the virtual images of points A and B in Fig. 2 on the test sample’s surface, considering the target object is a block of two different colors, the color difference of each pixel in the virtual image decreases monotonically as the surface roughness increases. Because the human eye is more sensitive to green light than to light of the other two primary colors and is also sensitive to the color yellow, which is a mixture of red and green, the experiment combines the sensory capabilities of the human eye by creating an ideal color block in red and green.

To study the impacts of the texture’s direction and the color block’s density on the color index, four combinations of red and green are designed. Figure 5 show 150 × 150 mm2 color blocks that are evenly divided into two, four, 64, and 256 small blocks, respectively; their common property is alternating regions of red and green, which resemble a chess board. When light is reflected from the color block onto the test sample’s surface, it becomes red and green. Due to variations in the test sample’s surface roughness and the abovementioned mechanism governing reflection from rough surfaces, the virtual red and green images on the test sample’s surface should be clearly and distinctly red and green if the surface is smooth or a mixture of red and green if the surface is rough.

 figure: Fig. 5

Fig. 5 Color block design. From left to right, the number of color block is two, four, 64 and 256.

Download Full Size | PDF

3.3 Experimental procedure

To construct a mathematical model of the relationship between CD and the roughness, 15 test samples with small standard deviations, evenly distributions in roughness, as shown in Table 5, are selected. Images with a resolution of 1201 × 1001 dpi are captured and used to calculate CD; furthermore, the robustness of the correlation between CD and the roughness is evaluated. Finally, the 32 test samples listed in Table 5 are used for training the SVM-based method, and the other eight samples are used to verify the feasibility of CD as a measure of roughness. The experimental procedure is shown in Fig. 6, and the roughnesses of the 15 samples are listed in Table 1.

 figure: Fig. 6

Fig. 6 Experimental procedure flow chart

Download Full Size | PDF

Tables Icon

Table 1. Roughnesses of the 15 Test Samples (Unit: μm)

4. Experiment for comparing the roughness assessment indices

The main indices for assessing roughness used in macro-vision measurement methods include the algebraic average of the image’s gray levels, Ga [16], and the square of the main component of the image’s Fourier transform, F2 [17–19]. In addition, in the GLCM and the image matrix, the entropy, En, represents the image’s information content [13,29,30]. According to Shannon information theory, the amount of information is greatest when the entropy is maximized. It is believed that a higher value of En means the image is clearer, and virtual images are obviously clearer on smooth surfaces than on rough ones. Therefore, the correlations of the other three indices used for comparison with the roughness are

Ga=1M×Ni=1Mj=1N|I(i,j)Im)|
F2=λ
En=i=1mj=1nI(i,j)In[I(i,j)]
where Im=1M×Ni=1Mj=1NI(i,j) and λ is the largest eigenvalue of the covariance matrix of the normalized power spectrum.

Because calibration and training models need to be constructed as part of machine vision-based roughness measurement and mechanical parts are easily contaminated during the manufacturing process, the components of the surface imaging conditions may differ from those of the calibration model during inline measurement. In addition, because the calibration test samples are prone to contamination by dust and air pollution, there is also a problem with inconsistent imaging conditions for the calibration sample and the inline measured sample. The question of whether the roughness assessment index is robust to such contamination has not been investigated in past studies of vision-based roughness measurement. Therefore, the values of the four indices, Ga, En, F2, and CD, for the 15 test samples are compared before and after contamination to determine how robustly they represent the roughness. Figure 7 shows the virtual image formed on the surface before and after contamination.

 figure: Fig. 7

Fig. 7 Images before (a) contamination and (b) after contamination.

Download Full Size | PDF

4.1 Correlation comparison

Because the units are different, the values of CD, Ga, En, and F2 are normalized. It needs to be specially noted that the values of CD, Ga, and En decrease as the roughness increases, whereas F2 increases. For convenience of comparison, the following process is performed during the normalization:

CDnormal(i)=CD(i)/max(CD)
F2(i)=1F2(i)/max(F2)
F2normal(i)=F2(i)+(1max(F2))
where i = 1, 2, …, 15, CD, Ga, and En are normalized in the same way and F2 exhibits variations in the same direction as those of CD, Ga, and En after normalization.

Figures 8(a) and 8(b) are the curves representing the four indices, CD, Ga, En, and F2, on clean and contaminated surfaces, respectively; the goodness of fit is judged by the coefficient of determination, R2, of each fitted curve. The principle underlying the curve fitting is to ensure that the relationship between the indices and the roughness is monotonic first and then to fit the data to the same type of curve before and after contamination. The method of calculating R2 is shown in Eq. (17), and the R2 values are listed in Table 2;

R2=1SSESST=1(yy)2(yy¯)2
where SSE is sum of squares for error, SST is sum of squares for total, y is the measured value, y¯ is the average measured value, and y* is the predicted regression value.

 figure: Fig. 8

Fig. 8 Curves relating each index to the roughness of (a) clean surface and (b) contaminated surface.

Download Full Size | PDF

Tables Icon

Table 2. R2 Values of the Curves Fitted to the Four Indices before and after the Sample is Contaminated

It can be seen from Fig. 8 and Table 2 that the roughness’s correlation with the proposed index, CD, is more robust than its correlation with any of the other three indices is. Regardless of whether contamination has occurred, the coefficient of determination, R2, of the fitted curve the most for CD, and the difference between the values before and after contamination is small, which indicates that CD is not sensitive to contamination and is able to resist interference rather well. The value of R2 for F2 is the worst and changes the most in response to contamination, which indicates that the Fourier transform-based method does not measure highly random grinding surfaces well. Because the images used to evaluate Ga, En and F2 are all grayscale images, contamination on the test sample’s surface is seen as information relating to the roughness during gray level processing. In contrast, the proposed index, CD, is based on color information, and therefore, contamination is less important to the evaluation process. In addition, it can be seen that CD is more sensitive to roughness than the other three indices are; for the same difference in roughness, the change in CD is much greater than the change in any of the other three; moreover, CD changes more monotonically with the roughness than any of the other three indices do.

4.2 Measurement performance comparison

Although the fitted curves’ coefficients of determination, R2, illustrate the correlation between the roughness and each index, correlation does not necessarily indicate strong predictive ability; therefore, the ability of CD to measure roughness must be verified experimentally. The SVM-based method proposed by Vapnik is a learning method that uses the training error as a constraint and minimization of the confidence range as an optimization target; its ability to generalize is obviously higher than that of traditional learning methods, such as neural networks [13,31]. In addition, when using an SVM-based regression model, only a small number of samples is needed to construct a function for estimating the regression, which significantly reduces the amount of data required. Therefore, this study uses an SVM-based regression model in the experimental verification.

The standard deviation of the 15 roughness values measured using a stylus shown in Table 1 is small, and theoretically, these values are ideal for use in an SVM. However, at the same time, they are also ideal for use as verification test samples. Therefore, eight of the 15 samples are selected for verification; the verification range is from 0.127 μm to 2.245 μm. The other seven samples and the 25 samples in listed in Table 5, i.e., a total of 32 samples, are used for training. Then, the four indices, CD, Ga, En and F2, are used to make comparable predictions before and after contamination; the results and the error rates are listed in Table 3, where P1 and P2 refer to the predicted roughness values before and after contamination, respectively, and δ is the error rate relative to stylus measuring value. The cuckoo optimization algorithm [32] is used to optimize the two main parameters of the SVM, c and g, which refer to the penalty factor and the Gaussian kernel function, respectively. Two goals must be achieved; one is high precision without overlearning, and the other is that the regression data must decrease monotonically with the roughness, as shown in Fig. 9. The error rate δ is calculated as follows:

Tables Icon

Table 3. Prediction Results and Errors Rate of Four Indices

 figure: Fig. 9

Fig. 9 Raw data and regression data. Left: Ga index. Right: CD index.

Download Full Size | PDF

δ=|predictionstylus measured value|stylus measured value×100

It can be seen from Table 3 that the CD’s predictions are obviously more accurate than those of the other three indices are. The mean and standard deviation of the error rate of CD are both the smallest; the average error rate is 6.77%, and the standard deviation is 5.70% before contamination; after contamination, they are, respectively, 10.47% and 7.92%; these values are far smaller than those of the other three indices, Ga, En, and F2. Compared to the other three indices, Ga, En, and F2, the average error rate of CD provides reductions of 24.94%, 28.33%, and 26.60%, respectively, before contamination and 13.59%, 9.01%, and 45.52%, respectively, after contamination; the standard deviation is reduced by 19.54%, 24.97%, and 22.02%, respectively, before contamination and by 14.40%, 23.24%, and 33.68%, respectively, after contamination.

Therefore, using CD to measure roughness not only results in a high accuracy of approximately 90% but also provides smaller error fluctuations. Its measurement performance is quite stable and is able to resist interference relatively well, and it is able to make measurements over a wide range. To emphasize CD’s ability to resist interference, contaminated samples are used in the rest of this study unless otherwise noted.

5. Estimation and analysis of factors that impact CD

5.1 Impact of the color block design on CD

The four color block designs shown in Fig. 5 are compared experimentally using the 15 test samples listed in Table 1. The curves relating CD and the roughness are shown in Fig. 10; an SVM-based regression model is used with the eight samples listed in Table 4 for verification purposes.

 figure: Fig. 10

Fig. 10 Color index versus roughness.

Download Full Size | PDF

Tables Icon

Table 4. Prediction Results and Error Rates for the Four Color Block Designs

It can be seen from Fig. 10 that when the color block contains two, four, 64, or 256 sub-blocks, CD decreases as the roughness increases, which indicates the feasibility of the theory of using CD to measure roughness. In particular, the fluctuations in the data are consistent at every point, which indicates that the relationship between CD and the test sample’s roughness test. The measurement area should remain constant for all the designs, which indicates that the measured value of CD for each test sample is accurate, which shows that the proposed method is robust. For the same roughness level, CD is the largest for the two-block design and smallest for the 256-block design. In addition, the more sub-blocks there are, the more CD approaches an asymptote at zero; that is, the sensitivity of CD to the roughness decreases as the number of sub-blocks increases. The reason for this can be seen from Eq. (9): as the number of sub-blocks increases, the distribution of red and green becomes more even, and therefore, CD approaches zero; at this time, CD has no effect on the roughness.

The verification results listed in Table 4 correspond closely with the results shown in Fig. 10. If the number of sub-blocks reaches a certain value, the ability of CD to measure roughness decreases. Nonetheless, the average prediction error rate of CD first decreases and then increases as the number of sub-blocks increases. This result provides us with an idea about the optimal color block design, which will be the focus of follow-up studies.

5.2. Impact of lighting and texture

To increase the experimental efficiency, five samples with roughnesses of 0.052, 0.383, 0.826, 1.507, and 2.245 μm are selected from the abovementioned 15 samples based on how evenly the roughness is distributed.

The texture and lighting conditions are studied. The five test samples with evenly distributed roughnesses used in the experiment do not affect the assessment of the impacts of these two factors. The texture experiments are conducted in both vertical and horizontal orientations. With the lighting at a brightness of 110, the four color block designs are tested, and the results are shown in Fig. 11. The lighting impact experiment is conducted with the surface texture of the test sample perpendicular and horizontal to the workbench. The five test samples with different roughnesses are compared and discussed under different lighting conditions; see Fig. 12.

 figure: Fig. 11

Fig. 11 Impact of the texture orientation of the grinding sample on CD (brightness of 110) when the color block contains sub-blocks of (a) two, (b) four, (c) 64 and (d) 256 respectively.

Download Full Size | PDF

 figure: Fig. 12

Fig. 12 Relationship between lighting and CD. Surface texture is (a) perpendicular and (b) horizontal to the workbench respectively when the number of color block is two. Surface texture is (c) perpendicular and (d) horizontal to the workbench respectively when the number of color block is 256.

Download Full Size | PDF

It can be seen from Fig. 11 that the impact of the texture orientation on CD is quite large regardless of whether the two-, four-, 64-, or 256-block design is used. However, special attention should be paid to the difference between Fig. 11(a) and Figs. 11(b), 11(c), and 11(d). In Fig. 11(a), CD is larger for horizontally oriented textures than for vertically oriented textures, but Figs. 11(b), 11(c), and 11(d) show the opposite result, which indicates that the color block’s design can alter the impact of texture on CD.

Figure 12 provides two pieces of information: first, regardless of the orientation, CD is higher for lower roughnesses than for higher roughnesses, and second, the relationship between the lighting and CD is linear. Therefore, it is feasible to seek a mathematical model that can eliminate the impact of the lighting on this roughness index.

5.3 Discussion

When the number of sub-blocks is large, the mixing of red and green is based on a two-color block design. With a two-color block design, the color of the virtual image formed on the rough surface can be divided into two regions, one with pure colors and the other with mixed colors, as shown in Figs. 13(a), 13(b), and 13(c). However, the concentration points used to measure the roughness with CD are different in the two regions.

 figure: Fig. 13

Fig. 13 CD measurement area with a roughness of (a) 0.052 μm and (b) 0.826 μm. (c) Color division model. (d) Color difference for the 0.052 μm sample (3D plot).

Download Full Size | PDF

In Fig. 2, the mechanism analysis shows that CD decreases monotonically as the roughness increases in both the pure and the mixed color regions. In the pure color region, the brightness has decisive significance for CD; in this situation, CD has the same mechanism as Ga. In the mixed color region, both the pixel location and the brightness of the lighting affect CD, and not only does the brightness of each pixel decrease as the roughness increases but the amount of scattering induced by differences in the roughness also directly affects the brightness of the region in which red and green overlap. It can be seen from Fig. 13(d) that the color difference in the mixed color region is minimized at the boundaries of the blocks and gradually increases toward the two sides. That is, the red-green color difference is only meaningful in the mixed color region; the red and green color values are closest at the boundary and become more different far from the boundary.

Therefore, even for the test sample with a low roughness of 0.052 μm, using CD provides an overall measurement; this is in agreement with the conclusion from Fig. 10, which is that the measurement area should remain constant for four designs. For very rough test samples, the overall red-green mix is more obvious, and the average color difference, CD, naturally decreases as the roughness increases.

6. Conclusions

As a novel method of measuring surface roughness, the method proposed in this study is based on the high sensitivity of color information. Through comparison with Ga, En and F2, it is determined that the proposed index, CD, is more highly correlated with surface roughness and more robust to contamination. An SVM-based method is used with eight test samples with different roughnesses for verification; the verification range is from 0.127 μm to 2.245 μm. The verification proved that the measurement accuracy of CD is higher than that of Ga, En and F2; it reaches 90%. This method can also be used over a larger area. Through comparison of four color block designs, the feasibility of using CD to measure surface roughness is further verified; the results indicate that the color block design can alter the impact of the surface texture on CD. The linear relationship between CD and lighting and the robustness of CD to contamination make inline roughness measurement under various lighting conditions possible. However, it is true that we can’t ignore the influence of monochromatic interference. Because of the high roughness, specular component of the reflected radiation will decrease and the forward scattered part of the radiation will increase inversely, which may lead to monochromatic interference due to the phase delay between monochromatic lights [33,34]. Monochromatic interference can have impact on coloring, and it is therefore still need to conduct further search on whether coloring affect CD index which can be applied to evaluate the high roughness, especially for Ra larger than a wavelength.

Appendix

Tables Icon

Table 5. Nine Roughness Measurement (Units: μm) Made Using a Stylus-based Method

Funding

This work was supported by the National Natural Science Foundation of China (NSFC) (Grant No. 71271078), and the Key Project of Science and Technology of Changsha (Grant No. K1307006-11-1).

References and links

1. Z. Yilbas and M. S. J. Hasmi, “Surface roughness measurement using an optical system,” J. Mater. Process. Technol. 88(1-3), 10–22 (1999). [CrossRef]  

2. G. Samtas, “Measurement and evaluation of surface roughness based on optic system using image processing and artificial neural network,” Int. J. Adv. Manuf. Technol. 73(1-4), 353–364 (2014). [CrossRef]  

3. H. K. Chang, J. H. Kim, I. H. Kim, D. Y. Jang, and D. C. Han, “In-process surface roughness prediction using displacement signals from spindle motion,” Int. J. Mach. Tools Manuf. 47(6), 1021–1026 (2007). [CrossRef]  

4. A. Murugarajan and G. L. Samuel, “Measurement, modeling and evaluation of surface parameter using capacitive-sensor-based measurement system,” Metrol. Meas. Syst. XVIII, 403–418 (2011).

5. R. S. Lu, G. Y. Tian, D. Gledhill, and S. Ward, “Grinding surface roughness measurement based on the co-occurrence matrix of speckle pattern texture,” Appl. Opt. 45(35), 8839–8847 (2006). [CrossRef]   [PubMed]  

6. O. V. Angelsky, A. P. Maksimyak, P. P. Maksimyak, and S. G. Hanson, “Optical correlation diagnostics of rough surfaces with large surface inhomogeneities,” Opt. Express 14(16), 7299–7311 (2006). [CrossRef]   [PubMed]  

7. B. Kim and J. Seo, “Measurement of surface roughness of plasma-deposited films using laser speckles,” Appl. Surf. Sci. 359, 204–208 (2015). [CrossRef]  

8. A. S. Rawat, N. O. Kawade, and A. K. Sinha, “Laser based surface roughness measuring instrument,” BARC report. 4, 1–30 (2005).

9. A. M. Nakamura, A. Kamei, M. Kogachi, and T. Mukai, “Laboratory measurements of laser-scattered light by rough surfaces,” Adv. Space Res. 23(7), 1201–1204 (1999). [CrossRef]  

10. F. Luk, V. Huynh, and W. North, “Measurement of surface roughness by a machine vision system,” J. Phys. E Sci. Instrum. 22(12), 977–980 (1989). [CrossRef]  

11. B. Ramamoorthy and V. Radhakrishnan, “Statistical approaches to surface texture classification,” Wear 167(2), 155–161 (1993). [CrossRef]  

12. E. S. Gadelmawla, “A vision system for surface roughness characterization using the gray level co-occurrence matrix,” NDT Int. 37(7), 577–588 (2004). [CrossRef]  

13. W. Liu, X. M. Tu, Z. Y. Jia, W. Q. Wang, X. Ma, and X. D. Bi, “An improved surface roughness measurement method for micro-heterogeneous texture in deep hole based on gray-level co-occurrence matrix and support vector machine,” Int. J. Adv. Manuf. Technol. 69(1-4), 583–593 (2013). [CrossRef]  

14. R. Kamguem, S. A. Tahan, and V. Songmene, “Evaluation of machined part surface roughness using image texture gradient factor,” Int. J. Precis. Eng. Manuf. 14(2), 183–190 (2013). [CrossRef]  

15. M. A. Younis, “On line surface roughness measurements using image processing towards an adaptive control,” Comput. Ind. Eng. 35(1-2), 49–52 (1998). [CrossRef]  

16. R. Kumar, P. Kulashekar, B. Dhanasekar, and B. Ramamoorthy, “Application of digital image magnification for surface roughness evaluation using machine vision,” Int. J. Mach. Tools Manuf. 45(2), 228–234 (2005). [CrossRef]  

17. B. Y. Lee and Y. S. Tarng, “Surface roughness inspection by computer vision in turning operations,” Int. J. Mach. Tools Manuf. 41(9), 1251–1263 (2001). [CrossRef]  

18. P. Priya and B. Ramamoorthy, “The influence of component inclination on surface finish evaluation using digital image processing,” Int. J. Mach. Tools Manuf. 47(3-4), 570–579 (2007). [CrossRef]  

19. S. Palani and U. Natarajan, “Prediction of surface roughness in CNC end milling by machine vision system using artificial neural network based on 2D Fourier transform,” Int. J. Adv. Manuf. Technol. 54(9-12), 1033–1042 (2011). [CrossRef]  

20. D. M. Tsai, J. J. Chen, and J. F. Chen, “A vision system for surface roughness assessment using neural networks,” Int. J. Adv. Manuf. Technol. 14(6), 412–422 (1998). [CrossRef]  

21. Y. Uno, S. O. Prasher, R. Lacroix, P. K. Goel, Y. Karimi, A. Viau, and R. M. Patel, “Artificial neural networks to predict corn yield from compact airborne spectrographic imager data,” Comput. Electron. Agric. 47(2), 149–161 (2005). [CrossRef]  

22. A. Kolaman and O. Yadid-Pecht, “Quaternion structural similarity: a new quality index for color images,” IEEE Trans. Image Process. 21(4), 1526–1536 (2012). [CrossRef]   [PubMed]  

23. R. D. Dony and S. Wesolkowski, “Edge detection on color images using rgb vector angles,” in Electrical and Computer Engineering in Canadian Conference (IEEE, 1999), pp. 687–692. [CrossRef]  

24. M. A. Sutton, J. J. Orteu, and H. Schreier, Image Correlation for Shape, Motion and Deformation Measurements: Basic Concepts, Theory and Applications (Springer Science & Business Media, 2009).

25. S. P. Zhu, J. C. Fang, R. Zhou, J. H. Zhao, and W. B. Yu, “A new noncontact flatness measuring system of large 2-D flat workpiece,” IEEE Trans. Instrum. Meas. 57(12), 2891–2904 (2008). [CrossRef]  

26. G. A. Al-Kindi and B. Shirinzadeh, “An evaluation of surface roughness parameters measurement using vsion-based data,” Int. J. Mach. Tools Manuf. 47(3-4), 697–708 (2007). [CrossRef]  

27. R. P. Guo and Z. S. Tao, “Experimental investigation of a modified Beckmann-Kirchhoff scattering theory for the in-process optical measurement of surface quality,” Optik (Stuttg.) 122(21), 1890–1894 (2011). [CrossRef]  

28. S. Nammi and B. Ramamoorthy, “Effect of surface lay in the surface roughness evaluation using machine vision,” Optik (Stuttg.) 125(15), 3954–3960 (2014). [CrossRef]  

29. D. Sen and S. K. Pal, “Generalized Rough Sets, Entropy, and Image Ambiguity Measures,” IEEE Trans. Syst. Man Cybern. B Cybern. 39(1), 117–128 (2009). [CrossRef]   [PubMed]  

30. L. Sun, J. C. Xu, and Y. Tian, “Feature selection using rough entropy-based uncertainty measures in incomplete decision systems,” Knowl. Base. Syst. 36, 206–216 (2012). [CrossRef]  

31. G. L. Grinblat, L. C. Uzal, P. F. Verdes, and P. M. Granitto, “Nonstationary regression with support vector machines,” Neural Comput. Appl. 26(3), 641–649 (2015). [CrossRef]  

32. X. S. Yang and S. Deb, “Cuckoo search via l’evy flights,”in World Congress on Nature & Biologically Inspired Computing (NaBIC, 2009), pp.210–214. [CrossRef]  

33. O. V. Angelsky, P. V. Polyanskii, and S. G. Hanson, “Singular-optical coloring of regularly scattered white light,” Opt. Express 14(17), 7579–7586 (2006). [CrossRef]   [PubMed]  

34. O. V. Angelsky, S. G. Hanson, P. P. Polyanskii, A. P. Polyanskii, and A. L. Negrych, “Experimental demonstration of singular-optical colouring of regularly scattered white light,” J. Eur. Opt. Soc.-Rapid. 3(08029), 1–7 (2008).

Cited By

Optica participates in Crossref's Cited-By Linking service. Citing articles from Optica Publishing Group journals and other participating publishers are listed here.

Alert me when this article is cited.


Figures (13)

Fig. 1
Fig. 1 Diagram of rough surface imaging. (a) Impact of a rough surface on imaging. (b) Vertical impact of a rough surface on imaging.
Fig. 2
Fig. 2 Target object and its virtual image on (a) low-roughness surface and (b) high-roughness surface.
Fig. 3
Fig. 3 Experimental model.
Fig. 4
Fig. 4 Machine vision-based roughness measurement setup.
Fig. 5
Fig. 5 Color block design. From left to right, the number of color block is two, four, 64 and 256.
Fig. 6
Fig. 6 Experimental procedure flow chart
Fig. 7
Fig. 7 Images before (a) contamination and (b) after contamination.
Fig. 8
Fig. 8 Curves relating each index to the roughness of (a) clean surface and (b) contaminated surface.
Fig. 9
Fig. 9 Raw data and regression data. Left: Ga index. Right: CD index.
Fig. 10
Fig. 10 Color index versus roughness.
Fig. 11
Fig. 11 Impact of the texture orientation of the grinding sample on CD (brightness of 110) when the color block contains sub-blocks of (a) two, (b) four, (c) 64 and (d) 256 respectively.
Fig. 12
Fig. 12 Relationship between lighting and CD. Surface texture is (a) perpendicular and (b) horizontal to the workbench respectively when the number of color block is two. Surface texture is (c) perpendicular and (d) horizontal to the workbench respectively when the number of color block is 256.
Fig. 13
Fig. 13 CD measurement area with a roughness of (a) 0.052 μm and (b) 0.826 μm. (c) Color division model. (d) Color difference for the 0.052 μm sample (3D plot).

Tables (5)

Tables Icon

Table 1 Roughnesses of the 15 Test Samples (Unit: μm)

Tables Icon

Table 2 R2 Values of the Curves Fitted to the Four Indices before and after the Sample is Contaminated

Tables Icon

Table 3 Prediction Results and Errors Rate of Four Indices

Tables Icon

Table 4 Prediction Results and Error Rates for the Four Color Block Designs

Tables Icon

Table 5 Nine Roughness Measurement (Units: μm) Made Using a Stylus-based Method

Equations (18)

Equations on this page are rendered with MathJax. Learn more.

I(i,j)=f(L(i,j),F(i,j),R(i,j))
F(x,y)=R(x,y) r +G(x,y) g +B(x,y) b
R A1(i,j) E A r A1 2 R A2(i,j) E A r A2 2
G B1(i,j) E B r B1 2 G B2(i,j) E B r B2 2
G A1(i,j) = R B1(i,j) =0
L (A2B2)(i,j) = R A2(i,j) + G B2(i,j) E A r A2 2 + E B r B2 2
| R A1(i,j) G A1(i,j) || R A2(i,j) G A2(i,j) |
| G B1(i,j) R B1(i,j) || G B2(i,j) R B2(i,j) |
CD= 1 M×N i=1 M j=1 N | R (i,j) G (i,j) |
Ra=f(CD)
Ga= 1 M×N i=1 M j=1 N |I(i,j) I m )|
F2=λ
En= i=1 m j=1 n I(i,j)In[ I(i,j) ]
C D normal (i)=CD(i)/max(CD)
F 2 (i)=1F2(i)/max(F2)
F 2 normal (i)=F 2 (i)+(1max(F 2 ))
R 2 =1 SSE SST =1 (yy) 2 (y y ¯ ) 2
δ= | predictionstylus measured value | stylus measured value ×100
Select as filters


Select Topics Cancel
© Copyright 2024 | Optica Publishing Group. All rights reserved, including rights for text and data mining and training of artificial technologies or similar technologies.