<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta>
      <journal-title-group>
        <journal-title>CEUR Workshop Proceedings</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <article-id pub-id-type="doi">10.18287/1613</article-id>
      <title-group>
        <article-title>DETERMINATION OF THE BILATERAL FILTER'S PARAMETERS FOR THE ANALYSIS OF SURFACE GEOMETRY DEVIATIONS</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>V.A. Pechenin</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>M.A. Bolotov</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>E.R. Stepanova</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Samara National Research University</institution>
          ,
          <addr-line>Samara</addr-line>
          ,
          <country country="RU">Russia</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2016</year>
      </pub-date>
      <volume>1638</volume>
      <fpage>386</fpage>
      <lpage>392</lpage>
      <abstract>
        <p>This paper considers a method of determination of the bilateral filter's parameters while processing geometric measurements. The proposed method is formulated as an optimization problem that takes into account the following parameters of the excess after filtration: its compliance with the Gaussian distribution, the availability of correlation. The paper describes approvement of the method to determine the optimal parameters of the bilateral filter when filtering the form of deviations of the measured points of a flat surface machined by grinding. Considered method of determination of the bilateral filter's parameters is implemented in the software package MATLAB and it can be used in the processing of geometric information obtained from measurements.</p>
      </abstract>
      <kwd-group>
        <kwd>method</kwd>
        <kwd>form deviation</kwd>
        <kwd>bilateral filter</kwd>
        <kwd>Pearson's chi-square test</kwd>
        <kwd>autocorrelation coefficient</kwd>
        <kwd>variance</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        The precision of determining the geometric parameters of measurement object
depends on the accuracy of the measurement of parts by coordinate measuring machine
(CMM). The problem of precision is particularly acute when measuring parts have
complex geometric shapes. Measured information consists of a set of points in space.
During processing of the measured data it is often necessary to remove noise
representing the inaccuracy of measuring instrument [
        <xref ref-type="bibr" rid="ref1 ref2">1,2</xref>
        ]. For modern contact CMM such
error is 0.7-2 µm but when measuring complex curved surfaces or if condition is
noncompliance with normal conditions this measurement error can be greater. When
measuring surfaces with laser and optical means (e.g., T-SCAN-CS and 6 COMET
company Steinbichler Optotechnik GmbH) the magnitude of errors increase to 10-50
µm. The problems associated with noise reduction occur in image processing [
        <xref ref-type="bibr" rid="ref3 ref4 ref5">3-5</xref>
        ].
There are extensive research and a variety of developed noise reduction algorithms
specifically for image processing tasks, they can be used for noise reduction in the
processing of the measured data [
        <xref ref-type="bibr" rid="ref6 ref7">6,7</xref>
        ].
For this study the coordinates of points on a flat surface treated by grinding were
measured by the coordinate measuring machine DEA Global Performance 07.10.07.
Deviations from the nominal geometry are calculated at the measured points.
Filtration of calculated deviations at surface points is performed. The aim of the research is
to determine the filter parameters suitable for processing of measured deviations.
1
      </p>
    </sec>
    <sec id="sec-2">
      <title>Calculation of form deviations</title>
      <p>Measurement was carried out on a flat surface at 9792 points (153grid points along
the x direction and 64 points in the direction y, figure 1).
The coordinate system is defined as follows: 1 plane defines the axis OZ; at the
intersection of the planes 1, 2 and 3 the coordinate system center is calculated; at the
intersection of the planes 2 and 1 the axis OY is calculated.</p>
      <p>Two coordinate systems: roughing and finishing are performed for the most accurate
positioning. The algorithm of positioning is the same in both cases but the planes of
roughing system were measured manually by 4 points on each plane. Finish
positioning was performed in automatic mode by 9 points for each plane.</p>
      <p>Then in the software (PC-DMIS) of CMM the form deviations at given points was
calculated representing a deviation of the measured points from the points on the
nominal surface. The calculated deviations can be characterized by the equation:
I (u)  dF (u)   r. (u) , (1)
where dF(u) is the actual form deviation at the point;
 r (u) is the passport value of measurement error, the random component of
deviation.</p>
    </sec>
    <sec id="sec-3">
      <title>Utilized filter</title>
      <p>
        For the separation of the error on the systematic and random (noise) errors the
bilateral filter was used. The bilateral filter was introduced for the first time in [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]. This
filtering technique is used mainly in tasks of image processing [
        <xref ref-type="bibr" rid="ref10 ref9">9,10</xref>
        ] and it is
applicable to noise reduction of measured deviations.
      </p>
      <p>
        During work of the bilateral filter the value of deviation at the point is calculated (as
for digital images it is the intensity of the pixel) as a weighted medium intensity of the
neighboring values of deviations in a neighborhood of radius r . Weight of
neighboring deviations is changed in accordance with values of the distances between points
(spatial weight) and a value of deviations (the intensity of pixels for images) at points
that is the order filter. The widest application has bilateral filter based on the Gaussian
function. Taking into account that random errors of measurement generally obey a
normal law of distribution [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] Gaussian bilateral filter was used in the work.
The bilateral filter I (u) for a set of deviations (an image) at the point is defined by the
following equation:
      </p>
      <p>Wc ( p  u )  Ws ( I (u)  I ( p) )  I ( p)
Iˆ(u)  pN (u) , (2)
Wc ( p  u )  Ws ( I (u)  I ( p) )
pN (u)
where N (u) is the neighborhood of the point u ;
Wc is a domain filter (Gaussian filter) with parameter  c ( Wc (x)  e x2 /(2c2 ) );;
Ws is a rank filter (weighted similarity function) with parameter  s
( Ws (x)  e x2 /(22s ) ).</p>
      <p>In practice (as in our study) the neighborhood N (u) consists of a set of points qi 
which satisfies the inequality:
u  qi  r, (3)
where r  2   c
The excess of filtering is calculated at each point respectively by the equation:
r (u)  I (u)  Iˆ(u).
(4)
3</p>
    </sec>
    <sec id="sec-4">
      <title>Noise analysis</title>
      <p>To determine the threshold values of the filter parameters on the basis of pre-position
that the filtered component should be of random nature the linear autocorrelation
coefficients are calculated:
,
(5)
where  x (n) are the linear autocorrelation coefficient in the x direction;
n is a lag of autocorrelation; in the x direction n  1,..., N x  1 .</p>
      <p>Similarly the linear coefficient in the y direction is described there is n  1,..., N y  1 .
The null hypothesis lies in the fact that the value of the random component of the
deviation at each i-th point does not correlate to other values, so  x (i)  0 .
To estimate compliance of nature of the calculated excess  r of the filtering with
random errors of measurement the test for compliance with the normal law by the
Pearson’s chi-square test (criterion  2 ) was used. According to the null hypothesis
(Н0) the distribution of the array of filtered-off deviations follows the law of normal
distribution and according to the alternative hypothesis that does not correspond to the
normal law.
4</p>
    </sec>
    <sec id="sec-5">
      <title>Results</title>
      <p>The search problem of the optimal filter parameters {с ,  s } is formulated as follows:
r   min, (6)
with the set of constraints:
  2  r    2 ,
 critical (7)
Var r   Var ,
 critical
where r  is the linear autocorrelation coefficient calculated by the equation 5;
2 r  is the Pearson’s chi-square test calculated in base of the excess  r of the
filtering;
2 is the critical value of the Pearson’s chi-square test for a given belief line of
critical
importance  ;
Varr  is the variance calculated in base of the excess  r of the filtering;
Var</p>
      <p>is the critical value of the variance, so the passport uncertainty of measuring
critical
instrument is taken in place of it.</p>
      <p>The solution was carried out by the method of uniform search.</p>
      <p>
        To determine the random error component the filter with parameters c  1;5 and
 s  0.1;3 was used. Figure 2 shows the results of the filtering of the measured form
deviations at the surface points. In Case F1 parameters  c  1 and  s  1 are used;
in F2 parameters  c  3 and  s  0,1 are used; in F3 -  c  5 and  s  3 are used.
(8)
It could be noticed from the results in Figure 1that in the case F3 the surface after the
filtration is smoother, but the magnitude of the random component of the error
significantly exceeds the passport uncertainty of used CMM; it means that we filtered off
the useful signal together with the noise. In any case an additional analysis of the
results is required in order to make a conclusion about the quality of the filter.
According to this criterion only filter with parameters  c  3 and  s  0,1 is suited.
Autocorrelation coefficients  x and  y (eq. 4) were also calculated. Table 1 shows
the values of the criterion  2 , as well as the expectations (  ), minimum and
maximum values of autocorrelation coefficients for the series of experiments.
The values of the autocorrelation coefficients indicate a very weak correlation of the
deviations. To estimate the significance of the correlation the Student’s t-test was
used. Despite the fact that the resulting noise (according to criterion  2 ) is strictly
subjected to a normal distribution only in the case F2 it was noticed visually in
histograms that distribution in the remaining cases are close to normal. Therefore the
results of the Student’s t-test are applicable to considered noise values [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ]. t-test for the
coefficients  (  may be  x or  y ) is calculated by the equation:
t(M  2) 
      </p>
      <p>M  2   / 1  2 ,
where M is the number of points used for calculation of  .
Min
-0,013
-0,018
-0,018
-0,013
-0,017
-0,017
-0,014
-0,018
-0,018


For these samples it may be concluded that increase of parameters  c and  s
increases the probability that the null hypothesis of absence of correlation is incorrect.
5</p>
    </sec>
    <sec id="sec-6">
      <title>Conclusion</title>
      <p>As a result the filtration of noise in the measurement of form deviation of the
precision surface is performed. The form deviation becomes available in the stage of the
measurement of surface with CMM DEA Global Performance 07.10.07. For the
filtering operation the bilateral filter with different parameters  c and  s were utilized.
The obtained results, as well as their analysis by the criterion  2 and the
autocorrelation function show that use of the bilateral filter allows high-quality noise filtering
and obtaining more reliable data on measured deviations with the parameters  c  3
and  s  0,1 .</p>
    </sec>
    <sec id="sec-7">
      <title>Acknowledgements</title>
      <p>This work was financially supported by the Ministry of Education and Science of the
Russian Federation within the framework of the Federal Target Program "Research
and development on priority directions of scientific-technological complex of Russia
for 2014-2020 years". The unique identifier of ASRED is RFMEFI57815X0131.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Soifer</surname>
            <given-names>VA</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kupriyanov</surname>
            <given-names>AV</given-names>
          </string-name>
          .
          <article-title>Analysis and recognition of the nanoscale images: conventional approach and novel problem statement</article-title>
          .
          <source>Computer Optics</source>
          ,
          <year>2011</year>
          ;
          <volume>35</volume>
          (
          <issue>2</issue>
          ):
          <fpage>136</fpage>
          -
          <lpage>144</lpage>
          . [in Russian]
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Myasnikov</surname>
            <given-names>VV</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Popov</surname>
            <given-names>SB</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sergeyev</surname>
            <given-names>VV</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Soifer</surname>
            <given-names>VA</given-names>
          </string-name>
          . Computer Image Processing.
          <article-title>Part I: Basic concepts and theory. Edited by Soifer VA</article-title>
          . VDM Verlag,
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Kazanskiy</surname>
            <given-names>NL</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Khonina</surname>
            <given-names>SN</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Skidanov</surname>
            <given-names>RV</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Morozov</surname>
            <given-names>AA</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kharitonov</surname>
            <given-names>SI</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Volotovskiy</surname>
            <given-names>SG</given-names>
          </string-name>
          .
          <article-title>Formation of images using multilevel diffractive lens</article-title>
          .
          <source>Computer Optics</source>
          ,
          <year>2014</year>
          ;
          <volume>38</volume>
          (
          <issue>3</issue>
          ):
          <fpage>425</fpage>
          -
          <lpage>434</lpage>
          . [in Russian].
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Borodin</surname>
            <given-names>SA</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Volkov</surname>
            <given-names>AV</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kazanskiy</surname>
            <given-names>NL</given-names>
          </string-name>
          .
          <article-title>Device for analyzing nanoroughness and contamination on a substrate from the dynamic state of a liquid drop deposited on its surface</article-title>
          .
          <source>Journal of Optical Technology</source>
          ,
          <year>2009</year>
          ;
          <volume>76</volume>
          (
          <issue>7</issue>
          ):
          <fpage>408</fpage>
          -
          <lpage>412</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Kopenkov</surname>
            <given-names>VN</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sergeev</surname>
            <given-names>VV</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Timbai</surname>
            <given-names>EI</given-names>
          </string-name>
          .
          <article-title>Regression restoration methods as applied to solve the problem of multidimensional indirect measurements</article-title>
          .
          <source>Pattern Recognition and Image Analysis</source>
          ,
          <year>2011</year>
          ;
          <volume>21</volume>
          (
          <issue>3</issue>
          ):
          <fpage>501</fpage>
          -
          <lpage>504</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Fleishman</surname>
            <given-names>S</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Drori</surname>
            <given-names>I</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Cohen-Or</surname>
            <given-names>D</given-names>
          </string-name>
          .
          <article-title>Bilateral mesh denoising</article-title>
          .
          <source>ACM Transactions on Graphics</source>
          ,
          <year>2003</year>
          ;
          <volume>22</volume>
          (
          <issue>3</issue>
          ):
          <fpage>950</fpage>
          -
          <lpage>953</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Abdul-Rahman</surname>
            <given-names>HS</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Scott</surname>
            <given-names>PJ</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Jiang</surname>
            <given-names>XJ</given-names>
          </string-name>
          .
          <article-title>Freeform surface filtering using the lifting wavelet</article-title>
          .
          <source>Precision Engineering</source>
          ,
          <year>2013</year>
          ;
          <volume>37</volume>
          (
          <issue>1</issue>
          ):
          <fpage>187</fpage>
          -
          <lpage>202</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Tomasi</surname>
            <given-names>C</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Manduchi</surname>
            <given-names>R</given-names>
          </string-name>
          .
          <article-title>Bilateral filtering for gray and color images</article-title>
          .
          <source>In ICCV</source>
          ,
          <year>1998</year>
          ;
          <fpage>839</fpage>
          -
          <lpage>846</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Eisemann</surname>
            <given-names>E</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Durand</surname>
            <given-names>F</given-names>
          </string-name>
          .
          <article-title>Flash photography enhancement via intrinsic relighting</article-title>
          .
          <source>In ACM SIGGRAPH</source>
          ,
          <year>2004</year>
          ;
          <volume>23</volume>
          (
          <issue>1</issue>
          ):
          <fpage>673</fpage>
          -
          <lpage>678</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Durand</surname>
            <given-names>F</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dorsey</surname>
            <given-names>J</given-names>
          </string-name>
          .
          <article-title>Fast bilateral filtering for the display of high-dynamic-range images</article-title>
          .
          <source>ACM Transactions on Graphics</source>
          ,
          <year>2002</year>
          ;
          <volume>21</volume>
          (
          <issue>3</issue>
          ):
          <fpage>257</fpage>
          -
          <lpage>266</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Sprauel</surname>
            <given-names>JM</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Linares</surname>
            <given-names>JM</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bachmann</surname>
            <given-names>J</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bourdet</surname>
            <given-names>P.</given-names>
          </string-name>
          <article-title>Uncertainties in CMM measurements, Control of ISO specifications</article-title>
          .
          <source>CIRP Annals - Manufacturing Technology</source>
          ,
          <year>2003</year>
          ;
          <volume>52</volume>
          (
          <issue>1</issue>
          ):
          <fpage>423</fpage>
          -
          <lpage>426</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Sun</surname>
            <given-names>X</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Langbein</surname>
            <given-names>FC</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rosin</surname>
            <given-names>PL</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Martin</surname>
            <given-names>RR</given-names>
          </string-name>
          .
          <article-title>Noise analysis and synthesis for 3D laser depth scanners</article-title>
          .
          <source>Graphical Models</source>
          ,
          <year>2009</year>
          ;
          <volume>71</volume>
          (
          <issue>2</issue>
          ):
          <fpage>34</fpage>
          -
          <lpage>48</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>