원시데이터 수집 시스템
선정목록으로

A Simple and Fast Spline Filtering Algorithm for Surface Metrology

간접 관련 모빌리티 소재 · (3) 자동차 인테리어 소재 (17) 스펀본드 부직포(23) 컴파운드

기본 정보

저자
  1. Hao Zhang — College of Mechanical and Electronic Engineering, Nanjing Forestry University, Nanjing, 210037, China|||National Institute of Standards and Technology, Gaithersburg, MD 20899 USA
  2. Daniel Ott — National Institute of Standards and Technology, Gaithersburg, MD 20899 USA
  3. John Song — National Institute of Standards and Technology, Gaithersburg, MD 20899 USA
  4. Mingsi Tong — School of Mechatronics Engineering, Harbin Institute of Technology, Harbin, 150001, China|||National Institute of Standards and Technology, Gaithersburg, MD 20899 USA
  5. Wei Chu — National Institute of Standards and Technology, Gaithersburg, MD 20899 USA
DOI
10.6028/jres.120.010
저널
Journal of Research of the National Institute of Standards and Technology
발행년도
2015
발행기관
The National Institute of Standards and Technology
피인용수
3
라이선스
publisher-specific-oa
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.6028/jres.120.010
토픽
Surface Roughness and Optical Measurements
OpenAlex ID
W2463276226

평가 내용

관련도
간접 관련
사업분야
모빌리티 소재 · (3) 자동차 인테리어 소재
부 분야
(17) 스펀본드 부직포, (23) 컴파운드
R&D 측면
분석·모델링
확신도
0.70
근거 용어
Spline Filtering Algorithm, Surface Metrology, ISO standards, surface evaluation
판단 근거
논문은 표면 거칠기 및 형상 측정을 위한 스플라인 필터링 알고리즘을 다루고 있으며, 이는 코오롱인더스트리의 다양한 산업용 필름, 섬유, 자동차 내장재의 표면 물성 분석 및 품질 관리 공정에 적용 가능한 분석 기법입니다.
R&D 활용 포인트
산업용 필름, 부직포, 인공피혁 등 고분자 소재의 표면 거칠기(Roughness) 및 미세 구조를 정밀하게 분석하고 표준화된 데이터로 평가하는 데 활용할 수 있습니다.
평가 입력
초록 654자

초록

Spline filters and their corresponding robust filters are commonly used filters recommended in ISO (the International Organization for Standardization) standards for surface evaluation. Generally, these linear and non-linear spline filters, composed of symmetric, positive-definite matrices, are solved in an iterative fashion based on a Cholesky decomposition. They have been demonstrated to be relatively efficient, but complicated and inconvenient to implement. A new spline-filter algorithm is proposed by means of the discrete cosine transform or the discrete Fourier transform. The algorithm is conceptually simple and very convenient to implement.

본문 26,826자

본문 펼치기
[Volume 120 (2015) http://dx.doi.org/10.6028/jres.120.010](http://dx.doi.org/10.6028/jres.120.010) Journal of Research of the National Institute of Standards and Technology # _A Simple and Fast Spline Filtering_ _Algorithm for Surface Metrology_ Hao Zhang <sup>1,2</sup> , Daniel Ott <sup>2</sup> , John Song <sup>2</sup> , Mingsi Tong <sup>2,3</sup> , and Wei Chu <sup>2</sup> 1College of Mechanical and Electronic Engineering, Nanjing Forestry University, Nanjing, 210037, China 2National Institute of Standards and Technology, Gaithersburg, MD 20899 USA 3School of Mechatronics Engineering, Harbin Institute of Technology, Harbin, 150001, China hao.zhang@nist.gov daniel.ott@nist.gov jun-feng.song@nist.gov mingsi.tong@nist.gov wei.chu@nist.gov Spline filters and their corresponding robust filters are commonly used filters recommended in ISO (the International Organization for Standardization) standards for surface evaluation. Generally, these linear and non-linear spline filters, composed of symmetric, positive-definite matrices, are solved in an iterative fashion based on a Cholesky decomposition. They have been demonstrated to be relatively efficient, but complicated and inconvenient to implement. A new spline-filter algorithm is proposed by means of the discrete cosine transform or the discrete Fourier transform. The algorithm is conceptually simple and very convenient to implement. Key words: discrete cosine transform; discrete Fourier transform; spline filter; surface metrology. Accepted: July 10, 2015 Published: July 15, 2015 http://dx.doi.org/10.6028/jres.120.010 1. Introduction A typical engineering surface consists of a range of spatial frequencies. The high frequency or short wavelength components are referred to as roughness, the medium frequencies as waviness and low frequency components as form [1, 2]. Filtration is a critical process used to isolate form, waviness, and surface roughness from each other as well as from finer, higher frequency content such as instrument noise [3]. At present, the Gaussian filter, the spline filter and their corresponding robust filters are recommended as ISO standard profile filters [4-7]. Compared with the widely used Gaussian filter, the spline filters have advantages such as end preserving, efficient calculation and good form following. Generally, the spline filter is implemented using an iterative procedure based on a Cholesky matrix decomposition [2, 8]. It is a widely used and relatively efficient method for solving the spline filter. In this paper, a new approach for computing the spline filter is proposed that relies on the discrete cosine transform (DCT) or the discrete Fourier transform (DFT) rather than matrix decomposition. This new algorithm is conceptually more simple, efficient, and, in practice, more convenient to implement. 129 [Volume 120 (2015) http://dx.doi.org/10.6028/jres.120.010](http://dx.doi.org/10.6028/jres.120.010) Journal of Research of the National Institute of Standards and Technology 2. The Spline Filters 2.1 Linear Spline Filter In ISO/TS 16610-22 [5], the standard spline filter is given as In ISO/TS 16610-22 [5], the standard spline filter is given as (1) (?+ ?? <sup>2</sup> ?+ (1 −?)?)?= ? the classic variational method in Eq. (2) [8-9]. where ? is the identity matrix, ? is the vector of sampled data values, ? is the vector of output data values, and ? and ? are the coefficient matrices. The spline filter of Eq. (1) is obtained as the solution matrix of the classic variational method in Eq. (2) [8-9]. (2) min(‖?−?‖ <sup>2</sup> + ?? <sup>2</sup> ‖?1?‖ <sup>2</sup> + (1 −?)‖?2?‖ <sup>2</sup> ) Generally, Eq. (2) is described as a linear combination of a least squares approach and a penalty component where consisting of two differential terms. More specifically, the least squares term aims to guarantee a close ‖⋅‖ denotes the Euclidean norm (L2 norm), and ?1and ?2 stand for 1 <sup>st</sup> and 2 <sup>nd</sup> differential operators. match between the result ? and the profile ? [10], and the penalty component helps to ensure appropriate smoothness of the filtered result. The scalars ? and ? are used to determine the balance between closeness to the original data and amount of smoothness, where directly by simple mathematical derivation. Here it should be noted that the boundary conditions, which are ?= �2sin(π⁄??)�−1 (??is the cut-off wavelength) and 0 ≤?≤1 [5]. Since all terms of Eq. (2) are differentiable, the matrix equation of Eq. (1) is obtained match between the result ? and the profile ? [10], and the penalty component helps to ensure appropriate smoothness of the filtered result. The scalars ? and ? are used to determine the balance between closeness to the original data and amount of smoothness, where directly by simple mathematical derivation. Here it should be noted that the boundary conditions, which are ?= �2sin(π⁄??)�−1 (??is the cut-off wavelength) and 0 ≤?≤1 [5]. Since all terms of Eq. (2) are differentiable, the matrix equation of Eq. (1) is obtained non-periodic (see Eqs. (3) and (4)). dictated by ? and ?, vary depending on the type of surface profile, which may be classified as periodic or ⋱ 2 −1 ⋱ 2 −1 ⎧ ⎪ ⎪ ⎪ ⎨ ⎝ ⎛ ⎜ ⎝ ?= non-periodic ⎞ ⎟ ⎠ ⎠ ⎞ periodic ⎟ ⎠ ⎛ ⎜ ⎝ ⎜ ⎝ ⎛ ⎜ ⎝ 1 −1 −1 2 −1 ⋱ ⋱ −1 2 −1 −1 1 −1 −1 2 ⎟ −1 1 ⎠ ⎞ ⎟ −1 2 ⎠ 2 −1 ⋱ ⋱ −1 −1 2 −1 1 2 −1 −1 −1 2 −1 ⋱ ⋱ ⋱ −1 2 −1 ⎝ ⎪ ⎨ ⎪ ⎪ ⎪ ⎩ 1 −2 1 −2 5 −4 1 1 −4 6 −4 ⋱ ⋱ ⋱ 1 −4 1 −4 1 −4 ⋱ −4 1 −4 ⋱ −4 1 ⋱ 1 (3) (4) 5 ⋱ ?= ⎧ ⎪ ⎪ ⎪ ⎪ ⎪ ⎨ ⎪ ⎪ ⎪ ⎪ ⎪ ⎩ ⎛ ⎜ <sup>⎜⎜</sup> ⎝ ⎝ ⎛ ⎜ <sup>⎜⎜</sup> ⎝ 1 −4 5 1 −2 1 6 −4 1 1 −4 −4 6 −4 1 1 1 −4 6 −4 1 ⋱ ⋱ ⋱ ⋱ ⋱ 1 −4 6 −4 ⎞ ⎟ <sup>⎟⎟</sup> <sup>⎠</sup> ⎞ ⎟ <sup>⎟⎟</sup> <sup>⎠</sup> 6 ⋱ 1 6 ⋱ 1 1 −4 ⋱ −4 1 1 −4 ⋱ −4 ⋱ 1 non-periodic periodic ⎞ 1 ⋱ ⋱ 6 −4 1 ⎟ <sup>⎟⎟</sup> −4 5 −2 1 −2 1 <sup>⎠</sup> 1 −4 1 1 −4 1 ⎞ 1 ⋱ ⋱ 6 −4 1 ⎟ <sup>⎟⎟</sup> −4 6 −4 1 −4 6 <sup>⎠</sup> −4 6 −4 ⋱ 6 ⋱ 1 130 [http://dx.doi.org/10.6028/jres.120.010](http://dx.doi.org/10.6028/jres.120.010) [Volume 120 (2015) http://dx.doi.org/10.6028/jres.120.010](http://dx.doi.org/10.6028/jres.120.010) Journal of Research of the National Institute of Standards and Technology 2.2 Robust Spline Filter It is well known that the linear filter is vulnerable to outliers [11]. Although there is no agreement on a universal and formal definition of an outlier, it is usually regarded as the observations that lie abnormally far from others, such as scratches and deep valleys on a surface. The roughness profiles or surfaces will be distorted when the linear filtering algorithm is applied to this original sampling data containing outliers. The resulting filtered data will contain excessively swollen or sunk areas due to being “pulled down or up” in the vicinity of abnormal points. This phenomenon will certainly cause a serious error when performing the evaluation or analysis of a practical surface. In order to solve this problem, the concept of the robustness of a filtering algorithm is introduced. In a robust filter, the effect of outliers on surrounding data is mitigated. Both L1-norm and L2-norm based robust spline filters have been demonstrated [7, 12]. A robust spline filter based on the L2-norm [12] is obtained by the direct expansion of Eq. (1), that is: by the direct expansion of Eq. (1), that is: (5) (?+ ?? <sup>2</sup> ?+ (1 −?)? <sup>4</sup> ?)?= ? z residuals from iteration to iteration, until the residuals remain unchanged [13]. Several weighting functions where ? and ? are the same coefficient matrices as in Eqs. (3) and (4). ? contains the additional weights corresponding to each data point of are available such as Huber, Hampel, and Andrews. Indeed, the most widely used weighting function in z . ? is updated with a specified weighting function by using current surface metrology is the Tukey function [6]. 3. Simplified Algorithm 3.1 The Spline Filter for Non-Periodic Profiles As previously mentioned, the standard spline filter is endowed with different solution matrices based on the non-periodic condition, which is also called the natural boundary, that is, when the 2 <sup>nd</sup> differential the periodicity of the profile and how this is handled at boundaries. Let us first focus on the matrix equation equals zero. If we instead redefine the boundary condition as the 1 <sup>st</sup> differential equation equalling ? under zero, the original matrix ? can be simplified and rewritten in the following form 2 −3 1 1 −4 ⋱ −4 ⋱ 1 ?= ⎛ ⎜ <sup>⎜⎜</sup> ⎝ ⎝ 6 ⋱ 1 1 −4 ⋱ −4 1 ⎞ 1 ⋱ ⋱ 6 −4 1 ⎟ <sup>⎟⎟</sup> −4 6 −3 1 −3 2 <sup>⎠</sup> ⎞ ⎟ <sup>⎟⎟</sup> <sup>⎠</sup> (6) . 2 −3 1 −3 6 −4 1 1 −4 6 −4 ⋱ ⋱ ⋱ 1 −4 6 ⋱ ⎝ It can be easily verified that ?= ? <sup>?</sup> ?, −1 (7) ⎞ ⎟ ?= ⎛ ⎜ ⎝ ⎜ ⎝ ?, −1 1 1 −2 1 ⋱ ⋱ ⋱ 1 −2 1 ⋱ ⎟ −2 1 1 −1⎠ ⎝ 1 −1⎠ where ? is a tridiagonal matrix and ? <sup>?</sup> represents the transpose of ?. Furthermore, an eigen decomposition of ? yields ?= ??? <sup>?</sup> [13]. ? is a diagonal matrix containing the eigenvalues of ? [14] : 131 [http://dx.doi.org/10.6028/jres.120.010](http://dx.doi.org/10.6028/jres.120.010) [Volume 120 (2015) http://dx.doi.org/10.6028/jres.120.010](http://dx.doi.org/10.6028/jres.120.010) Journal of Research of the National Institute of Standards and Technology ?= diag(?1, …, ??) with ?? = −2 + 2cos ((?−1)π/?) where ? is the number of sampled points. Since ? is a unitary matrix, Eq. (1) can be written as ?= (?−?? <sup>2</sup> ?+ (1 −?)? <sup>?</sup> ?) <sup>−1</sup> ?= ?(?−?? <sup>2</sup> ?+ (1 −?)? Since ? is a unitary matrix, Eq. (1) can be written as (8) ?= (?−?? <sup>2</sup> ?+ (1 −?)? <sup>?</sup> ?) <sup>−1</sup> ?= ?(?−?? <sup>2</sup> ?+ (1 −?)? <sup>2</sup> ) <sup>−1</sup> ? <sup>?</sup> ? According to Reference [15], ? <sup>?</sup> is a type-2 DCT matrix and ? is an inverse DCT matrix. Let us define ?= diag(?1, …, ??) with ?? = [1 −?? <sup>2</sup> ?? + (1 −?) ?2? ]−1, Eq. (8) can be rewritten in the form (9) ?= DCT <sup>−1</sup> �?DCT(?)� ? is an inverse DCT matrix. Let us define 2? ]−1, Eq. (8) can be rewritten in the form DCT(?)� ?= diag(?1, …, ??) with ?? = [1 −?? <sup>2</sup> ?? + (1 −?) ?2? ]−1, Eq. (8) can be rewritten in the form (9) ?= DCT <sup>−1</sup> �?DCT(?)� [In fact, DCT is a Fourier-related transform similar to DFT, a technique for mapping the “time domain”](http://en.wikipedia.org/wiki/List_of_Fourier-related_transforms) [where to the “frequency domain.” Both DCT and DFT express a signal in terms of a sum of sinusoids with DCT](http://en.wikipedia.org/wiki/List_of_Fourier-related_transforms) <sup>−1</sup> [represents the inverse discrete cosine transform.](http://en.wikipedia.org/wiki/List_of_Fourier-related_transforms) different frequencies and amplitudes. The distinction between DFT and DCT is that, DFT uses both cosine and sine functions, while DCT uses only cosine functions [16]. Boundary conditions have a direct impact on the form of discrete transfer functions such that different combinations of the discrete boundary conditions give rise to eight different types of DCT. Of these eight DCT representations, the most commonly used transform is type-2 [16]. For the case of a periodic profile, the boundary conditions will require that matrix 3.2 The Spline Filter for Periodic Profiles ? refer to the classic assumption of circular data defined as ?? = ??+?, that is 6 −4 1 1 −4 ⎞ ⎟ <sup>⎟⎟</sup> <sup>⎠</sup> (10) . 6 ⋱ 1 −4 ⋱ −4 1 −4 ⋱ −4 ⋱ 1 ?= ⎛ ⎜ <sup>⎜⎜</sup> ⎝ ⎝ 1 −4 1 ⎞ 1 ⋱ ⋱ 6 −4 1 ⎟ <sup>⎟⎟</sup> −4 6 −4 1 −4 6 <sup>⎠</sup> −4 6 −4 ⋱ 6 ⋱ 1 ?? = ??+?, that is 6 −4 1 1 −4 −4 6 −4 1 1 1 −4 6 −4 1 ⋱ ⋱ ⋱ ⋱ ⋱ 1 −4 6 −4 1 −4 ⎝−4 1 1 −4 6 <sup>⎠</sup> One can obtain the same description ?= ? <sup>?</sup> ?, where ? is also a circulant matrix, −2 1 1 (11) ⎞. ⎟ ?= ⎛ ⎜ ⎝ ⎜ ⎝ 1 −2 1 ⋱ ⋱ ⋱ 1 −2 1 ⋱ ⎞. ⎟ −2 1 1 −2⎠ <sup>?</sup> ?, where ? −2 1 1 1 −2 1 ⋱ ⋱ ⋱ 1 −2 1 For this case, a DCT is not able to fulfill the spline filter equation because the boundary definition for any boundary condition is exactly the same as the boundary assumption of the DFT. According to signal processing theory, a discrete spectrum necessarily comes from a periodic signal in the time domain. Hence, type of DCT does not comply with a periodic boundary of ?? = ??+?. However, it is interesting that this it is rational to apply the fast Fourier transform (FFT) to the computation of the spline filter given a periodic boundary. As expected, following the related derivation shown in Section 3.1, we obtain periodic boundary. As expected, following the related derivation shown in Section 3.1, we obtain (12) ?= FFT <sup>−1</sup> �?FFT(?)� where FFT <sup>−1</sup> stands for the inverse fast Fourier transform. 132 [http://dx.doi.org/10.6028/jres.120.010](http://dx.doi.org/10.6028/jres.120.010) [Volume 120 (2015) http://dx.doi.org/10.6028/jres.120.010](http://dx.doi.org/10.6028/jres.120.010) Journal of Research of the National Institute of Standards and Technology 4. Robust Simplified Algorithm As previously mentioned, the sensitivity of the linear filter to outliers may result in the mean line deviating severely from the actual distribution. The occurrence of dropouts, e.g., resulting from an instrument’s inability to measure certain data features, is frequent in practice [13]. Fortunately, the weighting function is demonstrated to be an effective method for handling such dropouts. This function serves the purpose of giving outliers a low weight and dropouts a weight of zero, while allocating a relatively high weight to high-quality data. For convenience, Eq. (5) can be rewritten as For convenience, Eq. (5) can be rewritten as (13) This implicit formula can be solved using an iterative procedure (?+ ?? <sup>2</sup> ?+ (1 −?)? <sup>4</sup> ?)? = (?−?)?+ ? z . This implicit formula can be solved using an iterative procedure (14) ? <sup>?+1</sup> = (?+ ?? <sup>2</sup> ?+ (1 −?)? <sup>4</sup> ?) <sup>−1</sup> (?( z −? <sup>?</sup> ) + ? <sup>?</sup> ) appropriate boundary conditions, we can easily obtain the new equations where ? <sup>?+1</sup> refers to ? <sup>?</sup> at the _k_ th iteration step. Furthermore, referring to Eqs. (9) and (12) for the appropriate boundary conditions, we can easily obtain the new equations (15) or ? <sup>?+1</sup> = DCT <sup>−1</sup> (?DCT(?( z −? <sup>?</sup> ) + ? <sup>?</sup> ) ) for the non-periodic case, or (16) The robustness to outliers is realized by iterating the weighted function of Eq. (15) or (16) and updating the ? <sup>?+1</sup> = FFT <sup>−1</sup> (?FFT(?( z −? <sup>?</sup> ) + ? <sup>?</sup> ) ) for the periodic case. weights using robust estimators for the current residuals z ( −? <sup>?</sup> ). It should be noted that during one iteration, the DCT and FFT only require ?log(?) operations for a profile with _n_ data points, whereas Eq. (1) requires a Cholesky factorization with a computational complexity of ?(? <sup>3</sup> ) [13]. 5. Experiments and Comparison Comparing filtering results for a standard surface is helpful for highlighting the advantages or shortcomings of particular filtering algorithms. The comparison to be presented here will use both simulated and practical profiles. Figure 1 shows an experiment that assesses the linear filtering techniques. A simulated profile composed of 10 harmonic components with frequencies ranging from applied to this simulated profile. The filtering results and differences between the filtered profiles are 0.1/?? to 25/?? is created, where the shown in Figs. 1 (a) and (b) respectively. Figure 1 (b) clearly shows that the mean lines obtained by cut-off wavelength ?? equals 1600 points. The DCT based linear spline filter and standard spline filter were applying these two filters are almost identical, except at the ends of the surface. The identical results over most of the surface demonstrate the validity and feasibility of the new filtering algorithm. Also, the distortion occurring on both ends demonstrates the effect of the 1 <sup>st</sup> differential boundary condition. In Fig. relative to the peak-to-peak value of the simulated surface. In fact, for a general measurement, this small error does not significantly impact the assessment of the profile as a whole. 1 (a) the actual maximum deviation at the edges is 0.0145 µm, and the largest error is less than 2.02 % In Fig. 2, a simulated periodic profile is used to validate the spline filtering algorithm based on the FFT. Both Eq. (12) and the standard spline filter with periodic boundary conditions are implemented. As expected, their filtered profiles are identical, even at the boundaries. This perfect result further demonstrates the accuracy and effectiveness of the new algorithm. 133 [http://dx.doi.org/10.6028/jres.120.010](http://dx.doi.org/10.6028/jres.120.010) [Volume 120 (2015) http://dx.doi.org/10.6028/jres.120.010](http://dx.doi.org/10.6028/jres.120.010) Journal of Research of the National Institute of Standards and Technology Fig. 1. Simulated profile and mean lines: (a) DCT based linear spline filter and standard spline filter under cut-off wavelength 0.8 mm; (b) Difference of the mean line of the DCT based spline filter relative to the standard filter. Fig. 2. FFT based linear spline filter and standard spline filter for a periodic function using cut-off wavelength of 0.8 mm. The results from the FFT based algorithm and traditional matrix decomposition are indistinguishable. Figure 3 shows a more complicated profile with a 5.6 mm length. It is found that there are many outliers such as scratches, deep valleys and sharp spikes distributed along this profile. The DCT based robust spline filter, the L2-norm based robust spline filter and the standard spline filter are applied to obtain the mean lines with a cut-off wavelength of 0.8 mm. It should be noted that the two robust filters can also easily handle missing data and dropouts if these points are assigned values that deviate far from the profile such that they appear as outliers. From the result in Fig. 3, it is evident that the robust algorithms are resistant to the outliers and able to acquire the satisfactory mean lines that follow the practical form very well. 134 [http://dx.doi.org/10.6028/jres.120.010](http://dx.doi.org/10.6028/jres.120.010) [Volume 120 (2015) http://dx.doi.org/10.6028/jres.120.010](http://dx.doi.org/10.6028/jres.120.010) Journal of Research of the National Institute of Standards and Technology Fig. 3. DCT based robust spline filter, L2-norm based robust spline filter and standard spline filter with a cut-off wavelength of 0.8 mm applied to data with outliers. In the graph, the filtered curves for DCT based robust spline filter and L2-norm based robust spline filter are indistinguishable in most parts. In order to further demonstrate the efficacy of the newly proposed filter, an example consisting of a profile that may be encountered in practice is shown in Fig. 4. This practical engineering profile is 14.3 mm robust spline algorithm, the L2-norm based robust spline filter, and the second-order Gaussian regression filter with a cut-off wavelength of 0.8 mm are presented concurrently. The robustness of the DCT based in length with sampling interval 0.125 µm. In this figure, the mean lines determined by the DCT based algorithm throughout the entire profile is verified again, but a larger difference between the robust spline filters and the Gaussian regression filter is exhibited in this example. These differences are caused by the dissimilar transmission characteristics of the filters and the second-order polynomial fitting principle in the Gaussian regression filter [17]. Fig. 4. DCT based robust spline filter, L2-norm based robust spline filter and Gaussian regression filter with a cut-off wavelength of 0.8 mm applied to a practical profile. 135 [http://dx.doi.org/10.6028/jres.120.010](http://dx.doi.org/10.6028/jres.120.010) [Volume 120 (2015) http://dx.doi.org/10.6028/jres.120.010](http://dx.doi.org/10.6028/jres.120.010) Journal of Research of the National Institute of Standards and Technology For this example, all of the filtering algorithms were implemented in Matlab and executed on an ordinary, commercially available desktop computer. For the test profile in Fig. 4, which contains 114,400 data points, the second-order Gaussian regression filter requires multiple hours to attain the robustness requirement. In comparison, the L2-norm based robust spline filter requires 1160 ms to finish the task, and the newly developed DCT robust algorithm takes only 720 ms to filter this profile. While the speed enhancements of the proposed method are only marginal for the profiles investigated here, it is possible that more dramatic improvements can be realized for larger or higher dimension arrays. Nevertheless, the primary benefit of this method is the relative simplicity of computing Eq. (15) and (16) without the requirement of any matrix operation and manipulation. 6. Conclusion In this paper, several new algorithms for the spline filters are proposed based on the DCT and FFT. Both the linear and robust spline filters for periodic and non-periodic profiles are considered. In the resulting algorithms, the DCT and FFT which are utilized in the filtering process require only addition to the potential scaling benefits, the DCT and FFT produce a more straightforward and simple to ?(?log(?)) computations, whereas the traditional algorithm based on Cholesky factorization requires implement algorithm than the standard spline filter based on matrix decomposition. Meanwhile, although ?(? <sup>3</sup> ). In an approximation for the non-periodic boundary condition is utilized, the error caused by the end effects does not affect the surface evaluation significantly. For periodic profiles, the new and faster FFT based algorithm showed no differences when compared to the traditional spline filter. In brief, these new algorithms for generating spline filters, based on the discrete cosine and discrete Fourier transforms, provide measureable improvements in computational speed and demonstrate excellent robustness to outliers and dropouts that are expected in real world data. Comparison of this new approach with traditional methods directly demonstrates the utility of these new techniques. Acknowledgments The funding for this research was provided by NIST’s Special Programs Office (SPO), the National Natural Science Foundation of China (E051101) and Jiangsu University Natural Science Foundation (12KJB460006). The authors are grateful to Bala Muralikrishnan and Li Ma for their editorial comments and helpful revisions. 7. References [1] J. Raja, B. Muralikrishnan, S. Fu. Recent advances in separation of roughness, waviness and form. Prec. Eng. 2002; 26(2):222[235. http://dx.doi.org/10.1016/S0141-6359(02)00103-4](http://dx.doi.org/10.1016/S0141-6359%2802%2900103-4) [2] H. Zhang, Y. B. Yuan, W. Y. Piao. The spline filter: a regularization approach for the Gaussian filter. Prec. Eng. 2012; [36(4):586-592. http://dx.doi.org/10.1016/j.precisioneng.2012.04.008](http://dx.doi.org/10.1016/j.precisioneng.2012.04.008) [3] ASME B46.1-2009. Surface texture (surface roughness waviness, and lay). New York: American Society of Mechanical Engineers 2010. [4] ISO 16610-21. Geometrical product specifications (GPS)-filtration-part 21: linear profile filters: Gaussian filters; 2011. [5] ISO/TS 16610-22. Geometrical product specifications (GPS)-filtration-part 22: linear profile filters: spline filters; 2006. [6] ISO/TS 16610-31. Geometrical product specifications (GPS)-filtration-part 31: Robust profile filters: Gaussian regression filters; 2006. [7] ISO/TS 16610-32. Geometrical product specifications (GPS)-filtration-part 32: Robust profile filters: spline filters; 2006. [8] H. Zhang, M. Tong, W. Chu. An areal isotropic spline filter for surface metrology. Journal of Research of NIST 2015; 120:64[73. http://dx.doi.org/10.6028/jres.120.006](http://dx.doi.org/10.6028/jres.120.006) [9] I. J. Schoenberg. Spline functions and the problem of graduation. Proceedings of the National Academy of Sciences of the [United States of America 1964; 52:947-950. http://dx.doi.org/10.1073/pnas.52.4.947](http://dx.doi.org/10.1073/pnas.52.4.947) [10] D. Janecki. A generalized L2-spline filter. Measurement 2009; 42(6):937-943. [http://dx.doi.org/10.1016/j.measurement.2009.01.020](http://dx.doi.org/10.1016/j.measurement.2009.01.020) [11] H. Li, C. F. Cheung, X. Jiang, W. Lee, S. To. A novel Gaussian filtering method for the characterization of surface generation [in ultra-precision machining. Prec. Eng. 2006; 30(4):421-430. http://dx.doi.org/10.1016/j.precisioneng.2006.01.005](http://dx.doi.org/10.1016/j.precisioneng.2006.01.005) 136 [http://dx.doi.org/10.6028/jres.120.010](http://dx.doi.org/10.6028/jres.120.010) [Volume 120 (2015) http://dx.doi.org/10.6028/jres.120.010](http://dx.doi.org/10.6028/jres.120.010) Journal of Research of the National Institute of Standards and Technology [12] T. Goto, J. Miyakura, K. Umeda. A robust spline filter on the basis of L2-norm. Prec. Eng. 2005; 29(2):151-161. [http://dx.doi.org/10.1016/j.precisioneng.2004.06.004](http://dx.doi.org/10.1016/j.precisioneng.2004.06.004) [13] D. Garcia. Robust smoothing of gridded data in one and higher dimensions with missing values. Computational Statistics and [Data Analysis 2010; 54(4): 1167-1178. http://dx.doi.org/10.1016/j.csda.2009.09.020](http://dx.doi.org/10.1016/j.csda.2009.09.020) [14] W. C. Yueh. Eigenvalues of several tridiagonal matrices. Applied Mathematics E-notes 2005; 5:66-74. [15] G. Strang. The Discrete Cosine Transform. SIAM Review 1999; 41(1): 135-147. [http://dx.doi.org/10.1137/S0036144598336745](http://dx.doi.org/10.1137/S0036144598336745) [16] V. Udayashankara. Real time digital signal processing: fundamentals, algorithms and implementation using TMS processor. Prentice-Hall of India Private Limited, New Delhi, India (2010): 233-252. [17] B. Muralikrishnan, J. Raja. Computational Surface and Roundness Metrology. Springer, London, UK (2009): 67-76. _About the authors:_ _Hao Zhang, Daniel Ott, Mingsi Tong, and Wei Chu are the guest researchers of the_ _Surface & Nanostructure Metrology Group of the Semiconductor and Dimensional Metrology Division_ _(SDMD) of the Physical Measurement Laboratory (PML) at NIST. John Song is a project leader of the_ _Surface & Nanostructure Metrology Group of SDMD of PML at NIST. The National Institute of Standards_ _and Technology is an agency of the U.S. Department of Commerce._ 137 [http://dx.doi.org/10.6028/jres.120.010](http://dx.doi.org/10.6028/jres.120.010)

섹션 본문 33문단 · 14,217자

(제목 없음)

1Spline filters and their corresponding robust filters are commonly used filters recommended in ISO (the International Organization for Standardization) standards for surface evaluation. Generally, these linear and non-linear spline filters, composed of symmetric, positive-definite matrices, are solved in an iterative fashion based on a Cholesky decomposition. They have been demonstrated to be relatively efficient, but complicated and inconvenient to implement. A new spline-filter algorithm is proposed by means of the discrete cosine transform or the discrete Fourier transform. The algorithm is conceptually simple and very convenient to implement.

Introduction

2A typical engineering surface consists of a range of spatial frequencies. The high frequency or short wavelength components are referred to as roughness, the medium frequencies as waviness and low frequency components as form [1,2]. Filtration is a critical process used to isolate form, waviness, and surface roughness from each other as well as from finer, higher frequency content such as instrument noise [3]. At present, the Gaussian filter, the spline filter and their corresponding robust filters are recommended as ISO standard profile filters [4][5][6][7]. Compared with the widely used Gaussian filter, the spline filters have advantages such as end preserving, efficient calculation and good form following.

3Generally, the spline filter is implemented using an iterative procedure based on a Cholesky matrix decomposition [2,8]. It is a widely used and relatively efficient method for solving the spline filter. In this paper, a new approach for computing the spline filter is proposed that relies on the discrete cosine transform (DCT) or the discrete Fourier transform (DFT) rather than matrix decomposition. This new algorithm is conceptually more simple, efficient, and, in practice, more convenient to implement. http://dx.doi.org/10.6028/jres.120.010

Linear Spline Filter

4In ISO/TS 16610-22 [5], the standard spline filter is given as

5where is the identity matrix, is the vector of sampled data values, is the vector of output data values, and and are the coefficient matrices. The spline filter of Eq. (1) is obtained as the solution matrix of the classic variational method in Eq. (2) [8][9].

6where ‖⋅‖ denotes the Euclidean norm (L 2 norm), and 1 and 2 stand for 1 st and 2 nd differential operators. Generally, Eq. (2) is described as a linear combination of a least squares approach and a penalty component consisting of two differential terms. More specifically, the least squares term aims to guarantee a close match between the result and the profile [10], and the penalty component helps to ensure appropriate smoothness of the filtered result. The scalars and are used to determine the balance between closeness to the original data and amount of smoothness, where = �2sin(π⁄ )� −1

7( is the cut-off wavelength) and 0 ≤ ≤ 1 [5]. Since all terms of Eq. (2) are differentiable, the matrix equation of Eq. (1) is obtained directly by simple mathematical derivation. Here it should be noted that the boundary conditions, which are dictated by and , vary depending on the type of surface profile, which may be classified as periodic or non-periodic (see Eqs. (3) and (4)).

Robust Spline Filter

8It is well known that the linear filter is vulnerable to outliers [11]. Although there is no agreement on a universal and formal definition of an outlier, it is usually regarded as the observations that lie abnormally far from others, such as scratches and deep valleys on a surface. The roughness profiles or surfaces will be distorted when the linear filtering algorithm is applied to this original sampling data containing outliers. The resulting filtered data will contain excessively swollen or sunk areas due to being "pulled down or up" in the vicinity of abnormal points. This phenomenon will certainly cause a serious error when performing the evaluation or analysis of a practical surface.

9In order to solve this problem, the concept of the robustness of a filtering algorithm is introduced. In a robust filter, the effect of outliers on surrounding data is mitigated. Both L 1 -norm and L 2 -norm based robust spline filters have been demonstrated [7,12]. A robust spline filter based on the L 2 -norm [12] is obtained by the direct expansion of Eq. (1), that is:

10where and are the same coefficient matrices as in Eqs. (3) and (4). contains the additional weights corresponding to each data point of z. is updated with a specified weighting function by using current residuals from iteration to iteration, until the residuals remain unchanged [13]. Several weighting functions are available such as Huber, Hampel, and Andrews. Indeed, the most widely used weighting function in surface metrology is the Tukey function [6].

The Spline Filter for Non-Periodic Profiles

11As previously mentioned, the standard spline filter is endowed with different solution matrices based on the periodicity of the profile and how this is handled at boundaries. Let us first focus on the matrix under the non-periodic condition, which is also called the natural boundary, that is, when the 2 nd differential equation equals zero. If we instead redefine the boundary condition as the 1 st differential equation equalling zero, the original matrix can be simplified and rewritten in the following form

12It can be easily verified that = ,

13where is a tridiagonal matrix and represents the transpose of . Furthermore, an eigen decomposition of yields = [13]. is a diagonal matrix containing the eigenvalues of [14]:

14where is the number of sampled points.

15Since is a unitary matrix, Eq. (1) can be written as

16According to Reference [15], is a type-2 DCT matrix and is an inverse DCT matrix. Let us define

17where DCT −1 represents the inverse discrete cosine transform. In fact, DCT is a Fourier-related transform similar to DFT, a technique for mapping the "time domain" to the "frequency domain." Both DCT and DFT express a signal in terms of a sum of sinusoids with different frequencies and amplitudes. The distinction between DFT and DCT is that, DFT uses both cosine and sine functions, while DCT uses only cosine functions [16]. Boundary conditions have a direct impact on the form of discrete transfer functions such that different combinations of the discrete boundary conditions give rise to eight different types of DCT. Of these eight DCT representations, the most commonly used transform is type-2 [16].

The Spline Filter for Periodic Profiles

18For the case of a periodic profile, the boundary conditions will require that matrix refer to the classic assumption of circular data defined as = + , that is

19One can obtain the same description = , where is also a circulant matrix,

20For this case, a DCT is not able to fulfill the spline filter equation because the boundary definition for any type of DCT does not comply with a periodic boundary of = + . However, it is interesting that this boundary condition is exactly the same as the boundary assumption of the DFT. According to signal processing theory, a discrete spectrum necessarily comes from a periodic signal in the time domain. Hence, it is rational to apply the fast Fourier transform (FFT) to the computation of the spline filter given a periodic boundary. As expected, following the related derivation shown in Section 3.1, we obtain

21where FFT −1 stands for the inverse fast Fourier transform.

Robust Simplified Algorithm

22As previously mentioned, the sensitivity of the linear filter to outliers may result in the mean line deviating severely from the actual distribution. The occurrence of dropouts, e.g., resulting from an instrument's inability to measure certain data features, is frequent in practice [13]. Fortunately, the weighting function is demonstrated to be an effective method for handling such dropouts. This function serves the purpose of giving outliers a low weight and dropouts a weight of zero, while allocating a relatively high weight to high-quality data.

23For convenience, Eq. (5) can be rewritten as

24This implicit formula can be solved using an iterative procedure

25where +1 refers to at the kth iteration step. Furthermore, referring to Eqs. (9) and (12) for the appropriate boundary conditions, we can easily obtain the new equations +1 = DCT −1 ( DCT( (z − ) + ) ) for the non-periodic case,

26or +1 = FFT −1 ( FFT( (z − ) + ) ) for the periodic case.

27The robustness to outliers is realized by iterating the weighted function of Eq. (15) or (16) and updating the weights using robust estimators for the current residuals (z − ). It should be noted that during one iteration, the DCT and FFT only require log( ) operations for a profile with n data points, whereas Eq.

28(1) requires a Cholesky factorization with a computational complexity of ( 3 ) [13].

Experiments and Comparison

29Comparing filtering results for a standard surface is helpful for highlighting the advantages or shortcomings of particular filtering algorithms. The comparison to be presented here will use both simulated and practical profiles. Figure 1 shows an experiment that assesses the linear filtering techniques. A simulated profile composed of 10 harmonic components with frequencies ranging from 0.1/ to 25/ is created, where the cut-off wavelength equals 1600 points. The DCT based linear spline filter and standard spline filter were applied to this simulated profile. The filtering results and differences between the filtered profiles are shown in Figs. 1 (a) and (b) respectively. Figure 1 (b) clearly shows that the mean lines obtained by applying these two filters are almost identical, except at the ends of the surface. The identical results over most of the surface demonstrate the validity and feasibility of the new filtering algorithm. Also, the distortion occurring on both ends demonstrates the effect of the 1 st differential boundary condition. In Fig. 1 (a) the actual maximum deviation at the edges is 0.0145 µm, and the largest error is less than 2.02 % relative to the peak-to-peak value of the simulated surface. In fact, for a general measurement, this small error does not significantly impact the assessment of the profile as a whole.

30In Fig. 2, a simulated periodic profile is used to validate the spline filtering algorithm based on the FFT. Both Eq. (12) and the standard spline filter with periodic boundary conditions are implemented. As expected, their filtered profiles are identical, even at the boundaries. This perfect result further demonstrates the accuracy and effectiveness of the new algorithm. Figure 3 shows a more complicated profile with a 5.6 mm length. It is found that there are many outliers such as scratches, deep valleys and sharp spikes distributed along this profile. The DCT based robust spline filter, the L 2 -norm based robust spline filter and the standard spline filter are applied to obtain the mean lines with a cut-off wavelength of 0.8 mm. It should be noted that the two robust filters can also easily handle missing data and dropouts if these points are assigned values that deviate far from the profile such that they appear as outliers. From the result in Fig. 3, it is evident that the robust algorithms are resistant to the outliers and able to acquire the satisfactory mean lines that follow the practical form very well.

31http://dx.doi.org/10.6028/jres.120.010 In order to further demonstrate the efficacy of the newly proposed filter, an example consisting of a profile that may be encountered in practice is shown in Fig. 4. This practical engineering profile is 14.3 mm in length with sampling interval 0.125 µm. In this figure, the mean lines determined by the DCT based robust spline algorithm, the L 2 -norm based robust spline filter, and the second-order Gaussian regression filter with a cut-off wavelength of 0.8 mm are presented concurrently. The robustness of the DCT based algorithm throughout the entire profile is verified again, but a larger difference between the robust spline filters and the Gaussian regression filter is exhibited in this example. These differences are caused by the dissimilar transmission characteristics of the filters and the second-order polynomial fitting principle in the Gaussian regression filter [17]. For this example, all of the filtering algorithms were implemented in Matlab and executed on an ordinary, commercially available desktop computer. For the test profile in Fig. 4, which contains 114,400 data points, the second-order Gaussian regression filter requires multiple hours to attain the robustness requirement. In comparison, the L 2 -norm based robust spline filter requires 1160 ms to finish the task, and the newly developed DCT robust algorithm takes only 720 ms to filter this profile. While the speed enhancements of the proposed method are only marginal for the profiles investigated here, it is possible that more dramatic improvements can be realized for larger or higher dimension arrays. Nevertheless, the primary benefit of this method is the relative simplicity of computing Eq. (15) and (16) without the requirement of any matrix operation and manipulation.

Conclusion

32In this paper, several new algorithms for the spline filters are proposed based on the DCT and FFT. Both the linear and robust spline filters for periodic and non-periodic profiles are considered. In the resulting algorithms, the DCT and FFT which are utilized in the filtering process require only ( log( )) computations, whereas the traditional algorithm based on Cholesky factorization requires ( 3 ). In addition to the potential scaling benefits, the DCT and FFT produce a more straightforward and simple to implement algorithm than the standard spline filter based on matrix decomposition. Meanwhile, although an approximation for the non-periodic boundary condition is utilized, the error caused by the end effects does not affect the surface evaluation significantly. For periodic profiles, the new and faster FFT based algorithm showed no differences when compared to the traditional spline filter.

33In brief, these new algorithms for generating spline filters, based on the discrete cosine and discrete Fourier transforms, provide measureable improvements in computational speed and demonstrate excellent robustness to outliers and dropouts that are expected in real world data. Comparison of this new approach with traditional methods directly demonstrates the utility of these new techniques.

참고문헌 11건

  1. EIGENVALUES OF SEVERAL TRIDIAGONAL MATRICES Applied Mathematics E-Notes [electronic only] · 2005
  2. The spline filter: A regularization approach for the Gaussian filter Precision Engineering · Elsevier BV · 2012 10.1016/j.precisioneng.2012.04.008
  3. The Discrete Cosine Transform SIAM Review · Society for Industrial and Applied Mathematics · 1999 10.1137/s0036144598336745
  4. Recent advances in separation of roughness, waviness and form Precision Engineering · Elsevier BV · 2002 10.1016/s0141-6359(02)00103-4
  5. A generalized -spline filter Measurement · Elsevier BV · 2009 10.1016/j.measurement.2009.01.020
  6. A Robust Spline Filter on the basis of L2-norm Precision Engineering · Elsevier BV · 2004 10.1016/j.precisioneng.2004.06.004
  7. SPLINE FUNCTIONS AND THE PROBLEM OF GRADUATION Proceedings of the National Academy of Sciences · National Academy of Sciences · 1964 10.1073/pnas.52.4.947
  8. Robust smoothing of gridded data in one and higher dimensions with missing values Computational Statistics & Data Analysis · Elsevier BV · 2009 10.1016/j.csda.2009.09.020
  9. An Areal Isotropic Spline Filter for Surface Metrology Journal of Research of the National Institute of Standards and Technology · The National Institute of Standards and Technology · 2015 10.6028/jres.120.006
  10. A Simple and Fast Spline Filtering Algorithm for Surface Metrology Journal of Research of the National Institute of Standards and Technology · The National Institute of Standards and Technology · 2015 10.6028/jres.120.010
  11. Computational Surface and Roundness Metrology Springer eBooks · Springer Nature · 2008 10.1007/978-1-84800-297-5