<!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>The Construction of Images Using Minimal Spline</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Burova I.G.</string-name>
          <email>i.g.burova@spbu.ru</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Bezrukavaya O.V.</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>St. Petersburg State University</institution>
          ,
          <addr-line>St. Petersburg</addr-line>
          ,
          <country country="RU">Russia</country>
        </aff>
      </contrib-group>
      <fpage>13</fpage>
      <lpage>18</lpage>
      <abstract>
        <p>Tasks of data compression, transmission, subsequent recovery with a given accuracy are of great practical importance. In this paper we consider a problem of constructing graphical information on a plane with the help of a parametric defined splines with different properties. Here we compare the polynomial and the trigonometric splines of the first and the second order, the polynomial integro-differential splines, the trigonometric integro-differential splines. We consider a compression of the image to a relatively small number of points, and a restoration of graphic information with the given accuracy.</p>
      </abstract>
      <kwd-group>
        <kwd>Image Construction</kwd>
        <kwd>Polynomial Splines</kwd>
        <kwd>Trigonometrical Splines</kwd>
        <kwd>Integro-differential Splines</kwd>
        <kwd>Interpolation</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>Plotting functions by means of splines is widely used in practice [3–8]. Here we
compare the polynomial and the trigonometric splines of the first and the
second order, the polynomial integro-differential splines, the trigonometric
integrodifferential splines. These splines are characterized by the fact that the
approximation of a function is constructed at each grid interval separately as a linear
combination of values of the functions in neighboring grid nodes and some
basic functions (see [1, 2]). The image can be compressed to a small number of
points, which we call the control points (points of interpolation). The result of
the image compression has the form of the control points and information of the
applied basic splines. If it is necessary, the user can restore the image through
an appropriate algorithm.</p>
      <p>Right polynomial, right trigonometric splines
Let n be natural number, a, b be real numbers, {tj } be ordered equidistant set
of nodes on [a, b], h = tj+1 − tj .</p>
      <p>
        Let function u be such that u ∈ C3[a, b]. We use the approximation for u(t)
in the form
(
        <xref ref-type="bibr" rid="ref1">1</xref>
        )
where ωj (t), ωj+1(t), ωj+2(t) we determine from the system
u(x) = u(x), u(x) = ϕi(x), i = 1, 2, 3.
      </p>
      <p>e
Here ϕi(x), i = 1, 2, 3, is Chebyshev system on [a, b], ϕi ∈ C3[a, b].
2.1</p>
      <p>
        Right polynomial splines
In polynomial case we take ϕi(x) = xi−1, So we have from (
        <xref ref-type="bibr" rid="ref2">2</xref>
        )
(
        <xref ref-type="bibr" rid="ref2">2</xref>
        )
(
        <xref ref-type="bibr" rid="ref4">4</xref>
        )
(
        <xref ref-type="bibr" rid="ref5">5</xref>
        )
(
        <xref ref-type="bibr" rid="ref6">6</xref>
        )
(
        <xref ref-type="bibr" rid="ref7">7</xref>
        )
ωj (t) =
(t − tj+1) (t − tj+2) , ωj+1(t) =
(tj − tj+1) · (tj − tj+2)
      </p>
      <p>
        (t − tj )
(tj+1 − tj ) · (tj+1 − tj+2)
(t − tj+2) , (
        <xref ref-type="bibr" rid="ref3">3</xref>
        )
ωj+2(t) =
      </p>
      <p>(t − tj )
(tj+2 − tj ) · (tj+2 − tj+1)
(t − tj+1) .</p>
      <p>
        We obtain for t ∈ [tj , tj+1] the estimation of the error of the approximation
by the polynomial splines (
        <xref ref-type="bibr" rid="ref1">1</xref>
        ), (
        <xref ref-type="bibr" rid="ref3">3</xref>
        ) – (
        <xref ref-type="bibr" rid="ref4">4</xref>
        ): |ue(t) − u(t)| ≤ K1h3ku000k[tj,tj+2], K1 =
0.0642.
2.2
      </p>
      <p>
        Right trigonometric splines
In trigonometric case we take ϕ1 = 1, ϕ2 = sin(x), ϕ3 = cos(x). So we have from
the system (
        <xref ref-type="bibr" rid="ref2">2</xref>
        ):
      </p>
      <p>ωj (t) =
ωj+1(t) =
ωj+2(t) =
sin(t/2 − tj+1/2) sin(t/2 − tj+2/2)
sin(tj /2 − tj+1/2) · sin(tj /2 − tj+2/2)</p>
      <p>,
sin(t/2 − tj /2) sin(t/2 − tj+2/2)
sin(tj+1/2 − tj /2) · sin(tj+1/2 − tj+2/2)</p>
      <p>
        sin(t/2 − tj /2) sin(t/2 − tj+1/2)
sin(tj+2/2 − tj /2) · sin(tj+2/2 − tj+1/2)
,
The error of the approximation u(t) by (
        <xref ref-type="bibr" rid="ref1">1</xref>
        ), (
        <xref ref-type="bibr" rid="ref5">5</xref>
        )–(
        <xref ref-type="bibr" rid="ref7">7</xref>
        ) is the next:
      </p>
      <p>|ue(t) − u(t)| ≤ K2h3ku0 + u000k[tj,tj+2], K2 &gt; 0, t ∈ [tj , tj+1].
3</p>
      <p>
        Integro-differential splines
Integro-differential polynomial splines were invented by Kireev V.I [3]. The
way of constructing the nonpolynomial integro-differential splines is in [2]. The
integro-differential right spline of the third order has the form:
u(t) = u(tj )wj (t) + u(tj+1)wj+1(t) +
e
u(t)dt wj&lt;1&gt;(t), t ∈ [tj , tj+1], (
        <xref ref-type="bibr" rid="ref8">8</xref>
        )
where ωj (t), ωj+1(t), wj&lt;1&gt;(t) we determine from the system (
        <xref ref-type="bibr" rid="ref2">2</xref>
        ).
(9)
(10)
(11)
(12)
      </p>
      <p>(−tj + t)(3t − tj − 2tj+2) ,
(tj − tj+1)(tj − 3tj+1 + 2tj+2)</p>
      <p>6(−tj+1 + t)(−tj + t)
(tj − tj+2)2(tj − 3tj+1 + 2tj+2)
.</p>
      <p>u(t)dt ≈ (tj+2 − tj)(u(tj) + 4u(tj+1) + u(tj+2))/6.</p>
      <p>
        We can use in (
        <xref ref-type="bibr" rid="ref8">8</xref>
        ) the next formula:
We obtain |ue(t) − u(t)| ≤ K3h3ku000k[tj,tj+2], K3 &gt; 0, t ∈ [tj, tj+1].
3.2 Integro-differential right trigonometrical splines
      </p>
      <sec id="sec-1-1">
        <title>In trigonometric case we have</title>
        <p>A3</p>
        <p>B3
wj(t) =
, wj+1(t) =</p>
        <p>A4
B4
,
where</p>
        <p>A3 = (cos(−tj+1 + tj) − cos(tj+1 − tj+2) − tj+2 sin(t − tj+1) + tj sin(t − tj+1) −
cos(t − tj) + cos(t − tj+2)),</p>
        <p>B3 = (cos(−tj+1 +tj)−cos(tj+1 −tj+2)−tj+2 sin(−tj+1 +tj)+tj sin(−tj+1 +
tj) − 1 + cos(tj − tj+2)),</p>
        <p>A4 = (cos(t − tj) − cos(t − tj+2) + tj+2 sin(t − tj) − tj sin(t − tj) − 1 + cos(tj −
tj+2)),</p>
        <p>B4 = (cos(−tj+1 +tj)−cos(tj+1 −tj+2)−tj+2 sin(−tj+1 +tj)+tj sin(−tj+1 +
tj) − 1 + cos(tj − tj+2)),
wj&lt;1&gt;(t) = (sin(t − tj+1) − sin(−tj+1 + tj) − sin(t − tj))/B5,
(13)</p>
        <p>B5 = (cos(−tj+1 +tj)−cos(tj+1 −tj+2)−tj+2 sin(−tj+1 +tj)+tj sin(−tj+1 +
tj) − 1 + cos(tj − tj+2)).</p>
        <p>
          If we know only the values u(tj), u(tj−1) = u(tj − h), u(tj+2) = u(tj + 2h),
then we can use in (
          <xref ref-type="bibr" rid="ref8">8</xref>
          ) the formula:
3.1 Integro-differential right polynomial splines
        </p>
      </sec>
      <sec id="sec-1-2">
        <title>In polynomial case we have</title>
        <p>wj(t) =</p>
        <p>A1
(tj − tj+2)(tj − tj+1)(tj − 3tj+1 + 2tj+2)
,
A1 = (−tj+1+t)(3tj+2t+3ttj −6tj+1t−2tj2−2tjtj+2−2tj2+2+3tj+1tj+2+3tj+1tj),
tj+2
Z
tj
It =
u(t)dt = u(tj−1)
2h cos(h) − 2 sin(h) − u(tj) −2h cos(h) + sin(h) + h +
cos(h) − cos(2h) cos(h) − 1
2 sin(h) cos(h) − h − sin(h)
+u(tj+2) + R1.</p>
        <p>− cos(h) − 1 + 2 cos2(h)
It can be shown that R1 = 0, if u(t) = 1, sin(t), cos(t), and</p>
        <p>It = (−(4/9)u(tj−1) + (5/3)u(tj) + (7/9)u(tj+2)) h + O(h3).</p>
        <p>Constructing approximation on the plane
4.1</p>
        <p>Piecewise linear set of parametric spline
Let function u be such that u ∈ C2[a, b].</p>
        <p>We build the approximation of u(t) in the form
u˜(t) = −A (u(tj ) − u(tj+1)) + u(tj ), A =
t − tj ,
tj+1 − tj
(14)
Here t ∈ [tj , tj+1], j = 0, . . . , n − 1. We can obtain for t ∈ [tj , tj+1]
|ue(t) − u(t)| ≤ K0h2ku00k[tj,tj+1], K0 = 0.125.</p>
        <p>Consider the approximation of the curve on the plane using the linear splines.
Let n points z1, z2, . . ., zn are given on the plane. Suppose point zi has
coordinates (xi, yi). Then we can construct the next approximations:</p>
        <p>x˜(t) = −A (x(tj ) − x(tj+1)) + x(tj ), y˜(t) = −A (y(tj ) − y(tj+1)) + y(tj ),
where A = (t − tj )/(tj+1 − tj ), if t ∈ [tj , tj+1]. The error of the approximation
on the plain is the next: R(t) = p|x˜(t) − x(t)|2 + |y˜(t) − y(t)|2.
4.2</p>
        <p>
          Minimal quadratic set of the right polynomial parametric
spline
Consider the approximation of the curve on the plane with the help of quadratic
splines (
          <xref ref-type="bibr" rid="ref1">1</xref>
          ), (
          <xref ref-type="bibr" rid="ref3">3</xref>
          )–(
          <xref ref-type="bibr" rid="ref4">4</xref>
          ). Let functions x = x(t) and y = y(t) be such that x, y ∈
C3[a, b], x(tj ) is the value of x in the node tj , y(tj ) is the value of y in the node
tj . Then we can use the following formulas:
        </p>
        <p>x˜(t) = ACx(tj ) − ABx(tj+1) + BCx(tj+2), y˜(t) = ACy(tj ) − ABy(tj+1) +
BCy(tj+2) on [tj , tj+1], j = 1, . . . , n − 1, where A = (t − tj+2)/(tj − tj+1),
B = (t − tj )/(tj+1 − tj+2), C = (t − tj+1)/(tj − tj+2).
5</p>
      </sec>
    </sec>
    <sec id="sec-2">
      <title>Numerical experiments</title>
      <p>
        Let function z(t) = (x(t), y(t) be such that x(t) = sin(t), y(t) = cos(t). Suppose
we have zj = (x(j), y(j)), j = 1, 2, . . . , 9. We construct z˜ = (x(t), ye(t)), with the
e
help of splines (
        <xref ref-type="bibr" rid="ref1">1</xref>
        ), (
        <xref ref-type="bibr" rid="ref3">3</xref>
        )–(
        <xref ref-type="bibr" rid="ref4">4</xref>
        ), (
        <xref ref-type="bibr" rid="ref1">1</xref>
        ), (
        <xref ref-type="bibr" rid="ref5">5</xref>
        )–(
        <xref ref-type="bibr" rid="ref7">7</xref>
        ), (
        <xref ref-type="bibr" rid="ref8">8</xref>
        ), (9)–(11), (
        <xref ref-type="bibr" rid="ref8">8</xref>
        ), (12)–(13). The results
of application the splines (
        <xref ref-type="bibr" rid="ref1">1</xref>
        ), (
        <xref ref-type="bibr" rid="ref3">3</xref>
        )–(
        <xref ref-type="bibr" rid="ref4">4</xref>
        ), and the splines (
        <xref ref-type="bibr" rid="ref1">1</xref>
        ), (
        <xref ref-type="bibr" rid="ref5">5</xref>
        )–(
        <xref ref-type="bibr" rid="ref7">7</xref>
        ) are presented
on graphs 1a, 1b. The results of application the splines (
        <xref ref-type="bibr" rid="ref8">8</xref>
        ), (9)–(11), and the
splines (
        <xref ref-type="bibr" rid="ref8">8</xref>
        ), (12)–(13) are presented on graphs 2a, 2b.
      </p>
      <p>
        Now we take x(t) = t − 2 sin(t), y(t) = 1 − 2 cos(t). The result of application
the trigonometric splines (
        <xref ref-type="bibr" rid="ref1">1</xref>
        ), (
        <xref ref-type="bibr" rid="ref5">5</xref>
        )–(
        <xref ref-type="bibr" rid="ref7">7</xref>
        ) is presented on graph 3a. The result of
application the polynomial splines (
        <xref ref-type="bibr" rid="ref8">8</xref>
        ), (9)–(11) is presented on graph 3b.
1
0.5
0
–0.5
–1
1
0
0.5
–0.5
–1
–0.5
0.5
1
–1
–0.5
0.5
1
1
0.5
–0.5
–1
1
0
0.5
–0.5
–1
      </p>
      <p>Imaging of letters using a piecewise linear splines
Here we construct, compress and restore the image of the letters using splines.</p>
      <p>For example, consider the construction and compression of the letter A.
Coordinates of points for the letter "A" zi, i = 1, 2, 3, 4, 5, we take in the form:
x[1]:=2:x[2]:=3:x[3]:=4:x[4]:=3.5:x[5]:=2.5:
y[1]:=2:y[2]:=4:y[3]:=2:y[4]:=3:y[5]:=3:
t[1]:=1:t[2]:=2:t[3]:=3:t[4]:=4:t[5]:=5:</p>
      <p>Coordinates of points for the letter "E" zi, i = 1, 2, 3, 4, 5 are given as:
Figure 4a shows the letter "A" which is constructed with the help of the
control points: (2;2),(3;4),(4;2),(3.5;3), (2.5;3), and Fig. 4b shows the letter "E"
which is constructed with the help of the points: (4;4), (2;4), (2;3), (3;3), (2;3),
(2;2), (4;2) and the splines (14).</p>
      <p>Each letter is given by a minimum number of the control points. For different
letters the number of control points is different. Now we can compress the image
and have only the control points and the information about the basis splines. We
can hold or send the information someone. The recipient can restor the letters
using the control points and information about the splines.
4
3.5
3
2.5
2 2
4
3.5
3
2.5
2 2
4</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Burova</surname>
            <given-names>I.G.</given-names>
          </string-name>
          ,
          <string-name>
            <given-names>Demyanovich</given-names>
            <surname>Yu</surname>
          </string-name>
          .
          <source>K. Minimal Splines and theirs Applications</source>
          . Spb. (
          <year>2010</year>
          )
          <article-title>(Russian).</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <given-names>Burova</given-names>
            <surname>Irina</surname>
          </string-name>
          .
          <source>On Integro Differential Splines Construction. Advances in Applied and Pure Mathematics. Proceedinngs of the 7-th International Conference on Finite Differences</source>
          , Finite Elements, Finite Volumes, Boundary
          <string-name>
            <surname>Elements (F-</surname>
          </string-name>
          and
          <string-name>
            <surname>-B</surname>
          </string-name>
          '
          <volume>14</volume>
          ).
          <source>Gdansk. Poland</source>
          . pp.
          <fpage>57</fpage>
          -
          <lpage>61</lpage>
          (May 15-17,
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Kireev</surname>
            <given-names>V.I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Panteleev</surname>
            <given-names>A.V.</given-names>
          </string-name>
          <article-title>Numerical methods in examples and tasks</article-title>
          . M. 480 p. (
          <year>2008</year>
          )
          <article-title>(in Russian)</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Ruzanski</surname>
            ,
            <given-names>E. P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chandrasekar</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          <article-title>Weather radar data interpolation using a kernelbased lagrangian nowcasting technique</article-title>
          .
          <source>IEEE Transactions on Geoscience and Remote Sensing</source>
          . Vol.
          <volume>53</volume>
          ,
          <issue>Issue 6</issue>
          (
          <issue>1</issue>
          ), pp.
          <fpage>3073</fpage>
          -
          <lpage>3083</lpage>
          (
          <year>June 2015</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Mariani</surname>
            ,
            <given-names>M. C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Basu</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          <article-title>Spline interpolation techniques applied to the study of geophysical data</article-title>
          .
          <source>Physica A: Statistical Mechanics and its Applications</source>
          . Vol.
          <volume>428</volume>
          ,
          <issue>15</issue>
          . pp.
          <fpage>68</fpage>
          -
          <lpage>79</lpage>
          (
          <year>June 2015</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Parker</surname>
          </string-name>
          , W.D.,
          <string-name>
            <surname>Umrigar</surname>
            ,
            <given-names>C.J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Alfe</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Petruzielo</surname>
            ,
            <given-names>F.R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hennig</surname>
            ,
            <given-names>R.G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wilkins</surname>
            ,
            <given-names>J.W.</given-names>
          </string-name>
          <article-title>Comparison of polynomial approximations to speed up planewave-based quantum Monte Carlo calculations</article-title>
          .
          <source>Journal of Computational Physics</source>
          . Vol.
          <volume>287</volume>
          , pp.
          <fpage>77</fpage>
          -
          <lpage>87</lpage>
          (
          <issue>April</issue>
          05,
          <year>2015</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Tzivelekis</surname>
            ,
            <given-names>C.A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Yiotis</surname>
            ,
            <given-names>L.S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Fountas</surname>
            ,
            <given-names>N.A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Krimpenis</surname>
            ,
            <given-names>A.A.</given-names>
          </string-name>
          <article-title>Parametrically automated 3D design and manufacturing for spiral-type free-form models in an interactive CAD/CAM environment</article-title>
          .
          <source>International Journal on Interactive Design and Manufacturing</source>
          .
          <volume>10</volume>
          p. (
          <issue>10</issue>
          <year>February 2015</year>
          )
          <article-title>(Articles not published yet)</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <given-names>Zavjalov</given-names>
            <surname>Yu</surname>
          </string-name>
          .S.,
          <string-name>
            <surname>Kvasov</surname>
            <given-names>B.I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Miroshnichenko</surname>
            <given-names>V.L.</given-names>
          </string-name>
          <string-name>
            <surname>Metody</surname>
          </string-name>
          spline-functions. M.(
          <year>1980</year>
          )
          <article-title>(Russian)</article-title>
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>