<!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 />
    <article-meta>
      <title-group>
        <article-title>Application of spatial interpolation methods for restoration of partially defined images</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Y D Vybornova</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>Moskovskoe Shosse 34, Samara, Russia, 443086</addr-line>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2018</year>
      </pub-date>
      <fpage>89</fpage>
      <lpage>95</lpage>
      <abstract>
        <p>The purpose of this paper is to analyze the practical applicability of spatial interpolation methods in the task of estimating the missing pixels of partially defined images. The paper presents three methods of spatial interpolation: inverse distance weighting, interpolation based on a triangulated irregular network, and kriging. The results of experimental research on these methods are given. Experiments show that all methods demonstrate a high quality of pixel prediction, but the choice of the most appropriate method directly depends on the input data.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        Broadly speaking, interpolation is used to obtain intermediate values from a discrete set of known
values. In the problem of image processing, the interpolation methods are used to predict the raster cell
values when having a limited number of the input data points [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ].
      </p>
      <p>
        The interpolation techniques known today can be classified into deterministic and statistical [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ].
Deterministic methods are based on a function of distance or area. The main advantage of such
methods is high processing speed. Statistical methods are based on a function of spatial similarity. The
main advantage of these methods is the sensitivity to the multidirectional data. That is why such
methods are commonly used to interpolate various kinds of surfaces (for example, to create a digital
terrain model).
      </p>
      <p>
        In this paper, three methods of spatial interpolation are considered: inverse distance weighting,
interpolation based on a triangulated irregular network, and kriging. These methods are used
extensively in a wide variety of applied sciences, including geology, hydrology, meteorology and
oceanography. However, in relation to image processing field, these methods have not been
investigated in detail yet [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ].
      </p>
      <p>Our research is devoted to the applicability analysis of the above-mentioned spatial interpolation
methods in the task of estimating the missing pixels of partially defined images, i.e. images with a
predetermined fraction of unknown pixels.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Methods of spatial interpolation</title>
      <sec id="sec-2-1">
        <title>2.1. Inverse Distance Weighting</title>
        <p>
          Inverse distance weighting (IDW) is a deterministic algorithm based on the assumption that the
predicted value is more influenced by the nearby points than the points located further [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ].
        </p>
        <p>Interpolation is performed using the known values from a neighborhood of a given point. It is
assumed that each point with a known value (hereinafter, called the reference point) has a local effect
decreasing with distance. The points located closer to the estimated position are assigned a greater
weight, than those located further:</p>
        <p>m
z(s0 )   wi z(si )  i1 m
i1  d0jp</p>
        <p>j1
m
 z(si )d0ip
,
where z(s0 ) is an estimated value of a point in a certain location s0 , and z(s1), z(s2 ),
, z(sn ) –
reference point values.</p>
        <p>The weights are proportional to the inverse distance taken to the power of p. Consequently, an
increase in distance leads to the fast decrease of weight. The weight decrease rate depends on the value
of p. Thus, for p=0, the weights wi are the same, and the predicted value is the average of all
measured points. As p increases, weights of the distant points start to decrease rapidly. If the value of
p is large, only the nearest neighborhood points will affect the predicted value.</p>
        <p>To speed up the calculations, the weights of the most distant points with little effect can be taken as
zero. It is common practice to limit the number of reference points, used to predict an unknown value,
by specifying the search area. In this paper, the search area is represented by a circle of a variable
radius r.</p>
      </sec>
      <sec id="sec-2-2">
        <title>2.2. Kriging</title>
        <p>
          Kriging [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ] is a statistical interpolation method for prediction of unknown values using the values of
the nearby points. Similar to the IDW method, weights are assigned to each point in accordance with
the distance to the unknown value. However, here the estimation is performed on the basis of data
correlation.
        </p>
        <p>
          To date, research on kriging in image processing tasks is limited to several publications [
          <xref ref-type="bibr" rid="ref6 ref7 ref8">6-8</xref>
          ].
The basic kriging formula is:
        </p>
        <p>n
z(s0 )  i z(si ) ,</p>
        <p>i1
, z(sn ) are the reference points, and z(s0 ) is a value of the point to be
where z(s1), z(s2 ),</p>
        <p>n
evaluated. Also, it should be noted that i  1.</p>
        <p>i1</p>
        <p>The main task is to determine the weights i so as to minimize the variance of the estimate, taking
into account the unbiasedness requirement E z(s0 )  z(s)  0 .</p>
        <p>There are several methods of kriging, which differ in the way of obtaining the weight components
i . In this paper, the method of ordinary kriging is considered. This type of kriging is the most
common for spatial data modeling, and is considered the best as it minimizes the estimation error
variance.</p>
        <p>The estimation process begins with the construction of an empirical variogram, for all pairs of
locations separated by distance h:</p>
        <p>V (h) 
average((z(si )  z(s j ))2 )</p>
        <p>.
2</p>
        <p>After the spatial description is obtained, in order to make a prediction we need to determine the
most appropriate variogram model (a curve that models the empirical variogram trends). In this paper,
the following models are considered:
1) linear:  (h)  c0  c1t ;
2) circular:  (h)  c0  c1
2
</p>
        <p>t 1 t 2  arcsin t  ;</p>
        <p>Here, t  ah , a is a range of influence, c0 is a nugget, c0  c1 is a threshold.</p>
        <p>The characteristics for model description are shown in figure 1. As can be seen from the figure, the
nugget is a point at which semivariogram intersects the ordinate axis, and the threshold is the value at
which the model starts to equalize. The distance to the threshold is called the range of influence. There
is no spatial autocorrelation among points outside the range.</p>
        <p>The selected model allows to assign weights for the reference points and to estimate the unknown
values. It should be noted that there is no universal model suitable for all input data. As a rule, the
model is selected experimentally.</p>
      </sec>
      <sec id="sec-2-3">
        <title>2.3. Triangulated Irregular Network</title>
        <p>The interpolation method based on a triangulated irregular network (TIN) uses triangulation of data
points to produce a two-dimensional function estimating the unknown values within each triangle [9].</p>
        <p>Generally, an irregular network is obtained using the Delaunay triangulation [10]: points are
connected with line segments in such a way that for any triangle obtained, all the points, except its
vertices, lie outside the circumcircle of this triangle. Compared to other triangulation methods,
Delaunay triangulation has several advantages:
1) the resulting triangles are close to equiangular, which makes it possible to reduce the
numerical accuracy problems that can potentially arise in case of dividing the surface into long
narrow triangles;
2) any point on the surface is located close to the reference point;
3) it does not depend on the point processing order.</p>
        <p>Thus, triangulation allows to obtain the appropriate reference points for each unknown point. When
the triangulated irregular network is constructed, we can accurately estimate the unknown values by
applying any standard interpolation method within each triangle.</p>
        <p>In this paper, the triangulated irregular network is constructed using Delaunay triangulation, and
interpolation is performed by the following standard methods [11]:
1) linear;
2) cubic;
3) nearest neighbour;
4) natural neighbour.</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>3. Experimental results</title>
      <p>The practical applicability of spatial interpolation methods, described in this paper, is demonstrated on
the example of binary images.</p>
      <p>The test images were converted to partially defined by removing 30, 50 and 70 percent of the
pixels. The location of pixels to remove was selected using a pseudo-random number generator. The
original and the resulting partially defined images are shown in figure 2. Here, the undefined pixels are
indicated in gray.</p>
      <p>(a)
(b)
(c)
(d)</p>
      <p>To evaluate the quality of interpolation methods, we calculated the fraction of pixels matched for
the original and interpolated images.</p>
      <p>It is necessary to take into account that the image, obtained after interpolation, is halftone, while
the original image is binary. To provide an accurate comparison, the resulting halftone images were
converted into binary by thresholding. The comparison results for three interpolation methods are
given in Table 1.
p=2, r=4
p=2, r=5
p=2, r=6
p=2, r=7
p=2, r=8
p=2, r=9
p=2, r=10
linear
nearest
natural
cubic
linear
circular
spherical
exponential
gaussian
stable</p>
      <p>From Table 1 it is evident that in the case of the "Mickey" image, where the object and background
are clearly distinguishable, all methods show approximately the same result for certain parameters.
For the "Ornament" image, the kriging method demonstrates the best result, while the IDW method
proved to be the least accurate. However, in the case of 70% removed pixels, the quality of all
interpolation methods decreases significantly for both images.</p>
      <p>The best results for each interpolation method are represented as halftone images in Table 2.</p>
      <p>TIN</p>
      <p>Kriging
%
r=9 natural exponential p=5 natural exponential
Table 3 also shows the best interpolation results obtained for each method, but the images are
converted to binary using the thresholding procedure.</p>
      <p>It can be seen from Tables 2 and 3 that in the case of 30% removed pixels, all the methods
demonstrate an excellent result, and it is almost impossible to distinguish a small difference in quality.
When 50% of the pixels are removed, the interpolation quality for the "Ornament" image slightly
decreases. The 70% pixel removal significantly reduces the quality of all methods for both images.</p>
      <p>On the whole, Tables 2 and 3 confirm the results of Table 1. Thus, according to the experimental
results, it can be concluded that all the investigated methods can be used for interpolation of partially
defined images, but it should noted that there is no single interpolation method suitable in all
situations: all methods have advantages and disadvantages. In practice, the choice of a particular
interpolation method (and also the choice of parameters) should depend on the sample data and the
error tolerance.
natural
exponential
natural
stable
natural
exponential
natural</p>
      <p>stable
p=6
p=5
p=5
%
natural
exponential
natural
exponential</p>
    </sec>
    <sec id="sec-4">
      <title>4. Conclusion</title>
      <p>In this paper, three spatial interpolation methods are investigated: inverse distance weighting,
interpolation based on a triangulated irregular network, and kriging. The practical applicability of
these methods in the task of estimating the missing pixels of partially defined images is analyzed. The
experiments show that all three methods can be used for solving the image processing problems, but
the result of pixel prediction depends on the input data characteristics, such as the number of reference
points. Hence, to provide the better results, the interpolation method should be selected separately for
each input image.</p>
      <p>Mitas L and Mitasova H 1999 Spatial interpolation Geographical Information Systems: Principles,
Techniques, Management and Applications 1 481-492
Lee D T and Schachter B J 1980 Two algorithms for constructing a Delaunay triangulation
International Journal of Computer and Information Sciences 9(3) 219-242
Dumitru P D, Plopeanu M and Badea D 2013 Comparative study regarding the methods of
interpolation Recent Advances in Geodesy and Geomatics Engineering 1 45-52</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <surname>Gonzalez R C and Woods R E 2002 Digital Image Processing</surname>
          </string-name>
          (New Jersey: Prentice Hall) p
          <fpage>943</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <surname>Fadnavis</surname>
            <given-names>S 2014</given-names>
          </string-name>
          <article-title>Image interpolation techniques in digital image processing: an overview Int</article-title>
          .
          <source>Journal of Engineering Research and Applications</source>
          <volume>4</volume>
          (
          <issue>10</issue>
          )
          <fpage>70</fpage>
          -
          <lpage>73</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <surname>Gashnikov</surname>
            <given-names>M V</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Glumov</surname>
            <given-names>N I</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kuznetsov</surname>
            <given-names>A V</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mitekin</surname>
            <given-names>V A</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Myasnikov</surname>
            <given-names>V V</given-names>
          </string-name>
          and
          <string-name>
            <surname>Sergeev</surname>
            <given-names>V V</given-names>
          </string-name>
          <year>2016</year>
          <article-title>Image processing, pattern recognition: Hyperspectral remote sensing data compression and</article-title>
          protection
          <source>Computer Optics</source>
          <volume>40</volume>
          (
          <issue>5</issue>
          )
          <fpage>689</fpage>
          -
          <lpage>712</lpage>
          DOI: 10.18287/
          <fpage>2412</fpage>
          -6179-2016-40-5-
          <fpage>689</fpage>
          -712
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <surname>Watson D F and Philip G M 1985</surname>
          </string-name>
          <article-title>A refinement of inverse distance weighted interpolation</article-title>
          <source>GeoProcessing</source>
          <volume>2</volume>
          <fpage>315</fpage>
          -
          <lpage>327</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <surname>Jassim</surname>
            <given-names>F A</given-names>
          </string-name>
          and
          <string-name>
            <surname>Altaany F H 2013</surname>
          </string-name>
          <article-title>Image interpolation using kriging technique for spatial data</article-title>
          <source>Canadian Journal on Image Processing and Computer Vision</source>
          <volume>4</volume>
          (
          <issue>2</issue>
          )
          <fpage>91</fpage>
          -
          <lpage>96</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <surname>Panagiotopoulou</surname>
            <given-names>A</given-names>
          </string-name>
          and
          <string-name>
            <surname>Anastassopoulos</surname>
            <given-names>V 2007</given-names>
          </string-name>
          <article-title>Super-resolution image reconstruction employing Kriging interpolation technique Proc</article-title>
          .
          <source>IEEE Int. Workshop Syst</source>
          .,
          <source>Signals and Image Processing</source>
          <volume>1</volume>
          <fpage>144</fpage>
          -
          <lpage>147</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <surname>Ruiz-Alzola</surname>
            <given-names>J</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Alberola-Lopez</surname>
            <given-names>C</given-names>
          </string-name>
          and
          <string-name>
            <surname>Westin C F 2005</surname>
          </string-name>
          <article-title>Kriging filters for multidimensional signal processing</article-title>
          <source>Signal Processing</source>
          <volume>8</volume>
          <fpage>413</fpage>
          -
          <lpage>439</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <surname>Panggabean</surname>
            <given-names>M</given-names>
          </string-name>
          and
          <string-name>
            <surname>Rønningen L 2011</surname>
          </string-name>
          <article-title>Chroma interpolation using windowed kriging for colorimage compression-by-network with guaranteed delay Proc</article-title>
          .
          <source>IEEE EURASIP 17th International Conference on Digital Signal Processing (DSP) 1</source>
          <volume>1-6</volume>
          [9]
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>