<!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>Improving the spatial resolution of digital images and video sequences using subpixel scanning</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Aleksandr L. Reznik</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Aleksandr A. Soloviev</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Andrey V. Torgov</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Institute of Automation and Electrometry of the Siberian Branch of the Russian Academy of Sciences</institution>
          ,
          <addr-line>Novosibirsk</addr-line>
          ,
          <country country="RU">Russia</country>
        </aff>
      </contrib-group>
      <fpage>238</fpage>
      <lpage>245</lpage>
      <abstract>
        <p>High-performance method for improving the resolution of digital images and video sequences based on minimum-variance signal reconstruction are considered. A distinctive feature of the developed algorithms is that they allow (with the availability of modern computing power) to obtain improved images and video in “real time”.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Image reconstruction</kwd>
        <kwd>high-performance algorithms</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>In the process of digital registration, the image is recorded into a two-dimensional digital array
using elements of a rectangular photomatrix. In this case, whatever technology is used, the
spatial resolution of the resulting image is determined by the size of a single photocell of the
matrix. And while there has been tremendous progress in high-resolution digital cameras, there
is still a need to improve the resolution of digital images. At the same time, a certain limit has
already been reached in improving the quality of images by purely technological methods, since
with a decrease in the size of elements of photo matrices, the cost of their production increases
significantly [1, 2].</p>
      <p>That is why purely digital methods of image processing to improve their spatial resolution
are of great interest. Such a need arises, in particular, in a situation where it is not possible to
obtain a high-resolution image, but it is possible to obtain an excessive number of low-quality
images, which must then be processed in an optimal way.</p>
      <p>The results of this work are important for solving applied problems of automatic scanning, in
most problems of digital image processing, in areas related to stereo reconstruction of optical and
thermal images, in the development of modern night vision devises, for processing surveillance
data from video cameras, and in other fields of science and technology.</p>
      <p>And although theoretical developments in this area have existed for several decades, only
the rapid progress in the development of modern computer technology has made it possible to
successfully apply computational algorithms for solving problems of improving the quality of
digital images (their use was previously complicated by the enormous computational costs that
computers could not provide several decades ago).</p>
      <p>It should also be noted that the choice of optimal processing algorithms (with their help
the quality of processed digital images will be improved), in each specific case, depends on
two components: first, on a priori knowledge of the statistical characteristics of images, and
secondly, on the required specific output image parameters that must be achieved as a result of
applying the developed processing algorithm. This explains the presence of a large number of
studies in the field of creating mathematical and software-algorithmic methods for improving
the quality of matrix images. Each of these studies has a specific purpose and is being developed
to address one of the many challenges in digital imaging.
2. Improving the resolution of digital images based on the
calculation of the image with the least variance
As we mentioned above, the possibility of increasing the resolution of images requires reducing
the size of the elements of the photomatrix. However, there are a number of technical dificulties
here. A possible way out of this situation is multiple acquisition of the same image by a
“badresolution” photo sensor, which changes its position during the shooting. In this case, using
algorithms that efectively process the results of such a subpixel scan, it is possible to obtain an
image with a higher spatial resolution.
2.1. Improving the spatial resolution of images — one-dimensional case
Let us consider a one-dimensional registration scheme (see Figure 1). Here the number 
corresponding to the dimension of the restored vector  = (1, 2, . . . ,  ) is a multiple of
 — the number of resolution elements located into the integrating aperture, that is, the field
size (in one-dimensional in the case, the size of the interval) of scanning is an integer number
of times larger than the size of the aperture:  =  × .</p>
      <p>The described registration mode leads to an underdetermined problem, when the observed
data are insuficient for accurate reconstruction of the signal (image), and its statistically
valid estimate must be constructed. Various authors [3, 4] from the field of signal and image
processing have developed mathematical models, computational schemes and algorithms for
solving such problems, which allow constructing rather efective schemes for solving specific
applied problems. For example, in [5], such an estimate is obtained by algebraic methods by
means of pseudo-inversion of matrices. The resulting solution has a number of advantages,
but also has certain disadvantages. One of them is that the solution obtained with the help
of pseudo-inversion is generally unbalanced (the sum of the weight coeficients with which
the samples-observations are included in the solution is diferent for diferent elements of the
generated image signal), and this leads to an increase in the variance the restored field, which is
not always acceptable.</p>
      <p>In contrast to the classical approach, which leads to a solution with the minimum norm, in
this work we are looking for a solution with the minimum variance (energy), which is not the
same in the general case. The solution with the minimum norm is the “least bright” signal
corresponding to the system of observations, while the solution with the minimum variance
selects the “smoothest” solution from all images that satisfy the observation system.</p>
      <p>Let us write the system of equations corresponding to the observation vector
 = (1, 2, . . . , (− 1)+1):
⎧ 1 + 2 + · · ·
⎪
⎪⎪⎨ 2 + 3 + · · ·
.</p>
      <p>.
⎪ .
⎪
⎪⎩ (− 1)+1 + (− 1)+2 + · · ·
+  = 1,
+ +1 = 2,
+  = (− 1)+1.</p>
      <p>It is easy to see that in this case the mean value of the signal
To find this solution, we will do the following. Let us fix free variables
1, 2, . . . , − 1 and
is a constant expressed in terms of the elements of the observation vector  and independent of
the variables . Let’s write the expression for the variance
⟨⟩ =
=
=
1 + 2 + · · · +  =</p>
      <p>(1 + · · · + ) + (+1 + · · ·
1 + +1 + 2+1 + · · ·</p>
      <p>=
1</p>
      <p>∑︁( − ⟨ ⟩)2 =
 − 1 =1</p>
      <p>︃(  )︃
1 1
=  − 1 ∑=︁1 2 −  − 1</p>
      <p>1
=  − 1 ||||2 − const ⇒ min .</p>
      <p>+ 2) + ((− 1)+1 + · · ·

+ (− 1)+1
+ )</p>
      <p>
        =
1 ∑︁ (︀ 2 − 2⟨⟩ + ⟨⟩2)︀ =
 − 1 =1
(1 + +1 + 2+1 + · · ·

+ (− 1)+1)2 =
(
        <xref ref-type="bibr" rid="ref1">1</xref>
        )
(
        <xref ref-type="bibr" rid="ref2">2</xref>
        )
(
        <xref ref-type="bibr" rid="ref3">3</xref>
        )
⎪
⎪
⎪
      </p>
      <p>.
⎪⎪⎪⎪ ..
⎪
⎪
⎪
⎪
⎪
⎪⎨ ...
⎪
⎪
⎪
⎪ .
⎪⎪⎪⎪ ..
⎪
⎪⎪⎪⎪ ...
⎪
⎧  = 1 − 1 − ··· −
⎪⎪⎪ +1 = 1 + (2 − 1),
⎪
⎪
⎪
+2 = 2 + (3 − 2),</p>
      <p>− 1,
⎪
⎪ 2 = 1 −
⎪
⎪
⎪
⎪
⎪
⎪ 2− 1 = − 1 + ( − − 1),
⎪
⎪</p>
      <p>
        1 − ··· −
⎪
⎪ 2+1 = 1 + (2 − 1) + (+2 − +1),
⎪
2+2 = 2 + (3 − 2) + (+3 − +2),
− 1 + (+1 − ),
(
        <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>
        )
express through them the remaining variables , +1, ..., :
1 =
︂[ 2 − 1 + ( − 2)( − 1)]︂ 1 + −

︂[  − 1]︂ 2 +  (− 1)+1+
      </p>
      <p>︂[ 1 ]︂

=1
+ ∑︁
− 2︂{[ ( −  − 1) + 1]︂ +1 + −</p>
      <p>︂[  − 
− 1]︂ +2 .</p>
      <p>︂}
⎪
⎪ − 1 = − 1 + ( − − 1) + (2 −
⎪
⎪
⎪⎩  = 1− 1− ...− − 1+(+1 − )+(2+1 − 2)+...+((− 1)+1 − (− 1)).
2− 1) + ···
+ ((− 1) − (− 1)− 1),</p>
      <p>
        Substituting (
        <xref ref-type="bibr" rid="ref4">4</xref>
        ) into (
        <xref ref-type="bibr" rid="ref2">2</xref>
        ) and equating to zero the partial derivatives of the resulting expression
with respect to the variables 1, 2, ..., − 1, we obtain a set of ( − 1) relations
1 + 2 + ··· + 2 + ··· + − 1 =
+︀[ (− 1)(+1− )+(− 2)(2+1− 2)+...+1 × ((− 1)+1− (− 1))︀] ,
= − [︀ (− 1)(+1− )+(− 2)(++1− +)+...+1 × ((− 2)++1− (− 2)+)︀] +
 = 1,..., − 1
and, after simple transformations,
 = 1−{ (− 1)[(+1− )− (2− 1)]+(− 2)[(++1− +) −
(+2− +1)]+
+...+1× [︀ ((− 2)++1− (− 2)+)− ((− 2)+2− (− 2)+1)
︀]} ,  = 2,...,− 1.
      </p>
      <p>
        Successively applying the last relation (
        <xref ref-type="bibr" rid="ref6">6</xref>
        ) to the variables 2, ..., − 1 and then substituting
the obtained expressions into the first of the equations of system
(
        <xref ref-type="bibr" rid="ref5">5</xref>
        ), we obtain a solution for
the element 1:
Further, from (
        <xref ref-type="bibr" rid="ref6">6</xref>
        ) we find a solution for the elements 2, . . . , − 1:
      </p>
      <p>1 ∑− ︁2( −  − 1) [(++1 − +) − (+2 − +1)] ,  = 2, . . . ,  − 1. (8)
 = 1 −  =0
And, finally, we successively obtain a solution for all other elements of the photomatrix:
− 1
∑︁
=− +1
 = − +1 −
,  = , . . . , .
2.2. Improving the spatial resolution of images — two-dimensional case
The problem of reconstructing a two-dimensional field with a minimum dispersion from a set
of low-resolution images shifted relative to each other is formulated as follows (Figure 2).</p>
      <p>We need to construct an estimate for image elements  = (), which would satisfy the
conditions:
1)
2)
+− 1 +− 1
∑︁ ∑︁  =  ,  = 1, . . . ,  −  + 1,  = 1, . . . ,  −  + 1,
= =
 
∑︁ ∑︁ ( − ⟨ ⟩)2 ⇒ min,
=1 =1
where ⟨⟩ =</p>
      <p>1 ∑︁ ∑︁ .
  =1 =1</p>
      <p>In the discrete case to restore the two-dimensional field  = (),  = 1, . . . ,  ,  =
1, . . . ,  according to the observed data, which is a matrix  = ( ),  = 1, . . . ,  −  + 1,
 = 1, . . . ,  −  + 1, the solution with the minimum variance is found by analogy with the
onedimensional case with the only diference that the variance of the reconstructed field is expressed
in terms of its bordering elements (i.e., elements  for which  ≤  − 1 or  ≤  − 1). Thus, the
dimension of the problem being solved decreases from  ×  to ( − 1) × ( +  −  + 1), and
(9)
(10)
the filter matrix, which is responsible for the formation of the restored field and does not depend
on the observation results, is calculated in advance only once. If the field size is a multiple of
the linear size  of the integrating aperture, i.e. when  =  ×  and  =  × , the solution is
found using factorization by two-fold sequential application of the one-dimensional procedure
described above. For this, new vectors are formed  = (1, 1, . . . , ),  = 1, . . . ,  −  +1:

 = ∑︁ ,+− 1,  = 1, . . . ,</p>
      <p>=1
and then, for each of  = 1, . . . ,  −  + 1, a one-dimensional problem is solved (according to
the already described algorithm):
(11)
(12)
(13)
1)
2)
1)
2)</p>
      <p>∑︁ ,+− 1 =  ,  = 1, . . . ,  −  + 1,
=1

∑︁ ( − ⟨  ⟩)2 ⇒ min, where ⟨ ⟩ =
=1</p>
      <p>1 ∑︁ ∑︁ .</p>
      <p>=1 =1

∑︁ ,+−  = ,  = 1, . . . ,  −  + 1,
=1

∑︁ ( − ⟨ ⟩)2 ⇒ min, where ⟨⟩ =
=1
 
1 ∑︁ ∑︁ .
 =1 =1</p>
      <p>In conclusion, when all the elements of the solution (12) are found by the “columns”, i.e. all
variables ( = 1, . . . ,  −  + 1,  = 1, . . . ,  ) are defined, the initial field is restored as a
result of the independent solution of  one-dimensional problems for each  = 1, . . . ,  :</p>
      <p>A great advantage of the developed algorithms is that the filter matrix for specific parameters
of restoration can be calculated in advance, which significantly increases the speed of restoration
and, in fact (using modern computing equipment), allows the restoration of images in “real
time”.
2.3. Results
The proposed methods have been tested on a large number of real and artificially generated
control digital images. In the overwhelming majority of cases, a high quality of recovery has
been demonstrated [6, 7]. Examples of image reconstruction with minimal variance are shown
in Figure 3.</p>
    </sec>
    <sec id="sec-2">
      <title>3. Improving the resolution of video sequences</title>
      <p>To restore the spatial resolution of video sequences, the same algorithms are used that are
described in Section 2 with the only diference that each of the frames of the video sequence
(we use standard video with 24 frames per second) must be processed independently, which
a
b
c
leads to a significantly longer calculation time. This time can be reduced by the preliminary
calculation of the filter matrix for fixed video parameters, however, the whole video processing
process can be quite long for high-resolution video.</p>
      <p>When restoring video sequences, the key problem is not the speed of calculations, but the
precise positioning of video cameras (it is necessary to achieve the same conditions for subpixel
shift, as in the case of processing two-dimensional digital images, as shown in Figure 2).</p>
      <p>Simulation on test video sequences showed that with correct positioning, these algorithms can
be successfully used for video sequences with obtaining video files of higher spatial resolution.
Figure 4 shows examples of image restoration with 9 cameras installed in a 3 × 3 array.
a
b</p>
    </sec>
    <sec id="sec-3">
      <title>4. Conclusion</title>
      <p>The most important criterion in evaluating the developed algorithms is to determine how
the images with the minimum variance correspond to real images. Studies have shown that
most real images are quite “smooth”, which makes the developed algorithms very efective in
improving the spatial resolution of such images.</p>
      <p>An important distinctive feature of the developed methods is that when performing
calculations on special computers, the matrix templates necessary for carrying out all the required
mathematical operations can be calculated in advance, which significantly reduces the
computational capacity of the algorithms.</p>
      <p>The proposed methods have been tested on a large number of real and artificially
generated control digital images and video sequences. The high quality of restoration has been
demonstrated in the overwhelming majority of cases.</p>
    </sec>
    <sec id="sec-4">
      <title>Acknowledgments</title>
      <p>This work was partially supported by the Russian Foundation for Basic Research (project No.
1901-00128), and Ministry of Science and Higher Education of the Russian Federation (project
No. 121022000116-0).</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <surname>Cressler</surname>
            <given-names>J.D.</given-names>
          </string-name>
          <string-name>
            <surname>Silicon</surname>
          </string-name>
          <article-title>Earth: Introduction to microelectronics and nanotechnology, second edition</article-title>
          . CRC Press,
          <year>2015</year>
          . 617 p.
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <surname>Williams</surname>
            <given-names>J.B.</given-names>
          </string-name>
          <article-title>The electronics revolution: Inventing the future</article-title>
          ,
          <source>first edition</source>
          . Springer,
          <year>2017</year>
          . 296 p.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <surname>Lawson</surname>
            <given-names>C.L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hanson</surname>
            <given-names>R.J.</given-names>
          </string-name>
          <article-title>Solving least squares problems</article-title>
          .
          <source>Society for Industrial and Applied Mathematics</source>
          , New Ed edition,
          <year>1987</year>
          . 350 p.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <surname>Bates</surname>
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>McDonnell</surname>
            <given-names>M</given-names>
          </string-name>
          .
          <article-title>Image restoration and reconstruction</article-title>
          . Oxford University Press,
          <year>1986</year>
          . 320 p.
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <surname>Pratt</surname>
            <given-names>W.K.</given-names>
          </string-name>
          <article-title>Digital image processing: 4th edition</article-title>
          . Wiley-Interscience,
          <year>2007</year>
          . 812 p.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <surname>Reznik</surname>
            <given-names>A.L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Efimov</surname>
            <given-names>V.M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Vas'kov S.T.</surname>
          </string-name>
          <article-title>Optimal image reconstruction by results of twocoordinate subpixel scanning // Pattern Recognition</article-title>
          and
          <string-name>
            <given-names>Image</given-names>
            <surname>Analysis</surname>
          </string-name>
          .
          <year>2007</year>
          . Vol.
          <volume>17</volume>
          . No. 2. P.
          <volume>211</volume>
          -
          <fpage>216</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <surname>Efimov</surname>
            <given-names>V.M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Reznik</surname>
            <given-names>A.L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Torgov</surname>
            <given-names>A.V.</given-names>
          </string-name>
          <article-title>Application of increase spatial sampling for improving the resolution of images obtained from photodetector arrays // Optoelectronics, Instrumentation</article-title>
          and
          <string-name>
            <given-names>Data</given-names>
            <surname>Processing</surname>
          </string-name>
          .
          <year>2009</year>
          . Vol.
          <volume>45</volume>
          . No. 5. P.
          <volume>399</volume>
          -
          <fpage>402</fpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>