<!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>Fast Full-Search Motion Estimation Method Based On Fast Fourier Transform Algorithm</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Elena I. Zakharenko</string-name>
          <email>zaxarenko.elena@gmail.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Evgeniy A. Altman</string-name>
          <email>altmanea@gmail.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Omsk State Transport University</institution>
        </aff>
      </contrib-group>
      <fpage>183</fpage>
      <lpage>186</lpage>
      <abstract>
        <p>Motion estimation (ME) is used extensively in video codecs based on MPEG-4 standards to remove interframe redundancy. Motion estimation is based on the block matching method which evaluates block mismatch by the sum of squared differences (SSD) measure. Winograd's Fourier transform is applied and the redundancy of the overlapped area computation among reference blocks is eliminated in order to reduce the computational amount of the ME. When the block size is N × N and the number of reference blocks in a search window is the same as the current block, this method reduces the computational amount (additions and multiplications) by 58 % of the straightforward approach for N = 8 and to 81 % for N = 16 without degrading motion tracking capability. The proposed fast full-search ME method enables more accurate motion estimation in comparison to conventional fast ME methods, thus it can be applied in video systems.</p>
      </abstract>
      <kwd-group>
        <kwd>motion estimation</kwd>
        <kwd>fast Fourier transform</kwd>
        <kwd>correlation</kwd>
        <kwd>convolution theorem</kwd>
        <kwd>full-search</kwd>
        <kwd>video encoding</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        The popularity of video as a mean of data representation and transmission is
increasing. Hence the requirements for a quality and size of video are growing. High
visual quality of video is provided by coding. In 1960s the motion estimation (ME)
and compensation were proposed to improve the efficiency of video coding [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ].
      </p>
      <p>The current frame is divided into non-overlapping blocks. For each block of the
current frame the most similar block of the reference frame within the limited search
area is found. The criterion of the similarity of the two blocks is called a metric
comparison of the two blocks. The position of the block, for which an extremum of metric
is founded, determines the coordinates of the motion vector of the current block.</p>
      <p>
        The full search algorithm is the most accurate method of the block ME, i.e. the
proportion of true motion vectors found is the highest [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. The current block is
compared to all candidate blocks within the restricted search area in order to find the best
match.
      </p>
      <p>
        This ME algorithm requires a lot of computing resources. Therefore, a lot of
alternative fast motion estimation algorithms were developed. In 1981 T. Koga and other
authors proposed a three-step search algorithm (TTS) [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ].
      </p>
      <p>
        The disadvantage of fast search methods is finding a local extremum of a function
of the difference of two blocks. Consequently motion estimation degrades by half
degradation in some sequences compared to brute-force and visual quality of video
degrades as well [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ].
2
      </p>
    </sec>
    <sec id="sec-2">
      <title>The Criterion To Compare Blocks</title>
      <p>The standards of video coding do not regulate the choice of criterion for matching
two blocks (metric).</p>
      <p>One of the most popular metrics is the sum of square difference (SSD):</p>
      <p>Nh 1 Nw 1
SSD(i, j)    (B(x, y)  S (x  i, y  j))2 ,</p>
      <p>y0 x0
where i, j – the coordinates of the motion vector of the current block, i ϵ (–Vw/2; Vw/2),
j ϵ (–Vh/2; Vh/2), where Vw × Vh – size of the area which can be is the upper left corner
of the title block on the reference frame; x, y – coordinates of the current block B;
Nw × Nh – block size B; S – reference area of size Sw × Sh, where Sw = Nw + Vw, Sh =
= Nh + Vh; B and S – luminance images in color format YUV.</p>
      <p>Inside the search area size Sw × Sh is the minimum value of SSD criterion for the
current block B, which determines the coordinates of the motion vector in order.</p>
      <p>
        SSD can be calculated through fewer number of operations by decomposition into
three components [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]:
      </p>
      <p>Nh 1 Nw 1
  B2 (x, y) 
y0 x0</p>
      <p>Nh 1 Nw 1
   B(x, y)S (x  i, y  j) 
y0 x0</p>
      <p>Nh 1 Nw 1
   S 2 (x  i, y  j),</p>
      <p>y0 x0</p>
      <p>
        In [
        <xref ref-type="bibr" rid="ref5 ref6">5, 6</xref>
        ] for the (3) computation were used Fast Fourier Transform (FFT). We
propose to replace this algorithm by other fast transforms: Winograd algorithm and
the number-theoretic transform of Farm (NTT).
3
      </p>
    </sec>
    <sec id="sec-3">
      <title>Research Results</title>
      <p>A programming model for block motion estimation using SSD metrics was
implemented in Matlab in order to analyze the effectiveness of the fast Fourier transform
algorithm for computing the block matching criterion.</p>
      <p>
        Expression (4) is calculated using the algorithm described in [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ].
(1)
(2)
(3)
(4)
      </p>
      <p>To analyze the effectiveness of the algorithms of fast Fourier transform (FFT) for
motion estimation were considered Cooley-Tukey and Winograd algorithms. We
selected B block 16 × 16 and 8 × 8 pixels, a reference area S is twice as much as B
block, i.e. is 32 × 32 and 16 × 16, respectively.</p>
      <p>Operating time of algorithm is significant for processing and analysis of video, it
depends on its computational complexity. The number of arithmetic operations
(multiplications (×) and additions (+)) is significant when the complexity of the method
for motion estimation is measured. Therefore, this criterion was chosen as the metric
calculation efficiency of SSD.</p>
      <p>Table 1 shows the results for a block size of 16 × 16 pixels and the reference area S
32 × 32 dots.</p>
      <p>The results for block 8×8 and the search area 16×16 similar to presented in Table 1.
Winograd algorithms reduces the computational complexity of the ME algorithm by
58 % for block size 8×8.</p>
      <p>Having analyzed the results shown in Tables 1, it is obvious that the choice of
convolution algorithm has a significant impact on the computational complexity of
motion estimation.</p>
      <p>For the hardware implementation of a significant impact on the area occupied on
the chip, providing multiplication. As can be seen from Table 1 application of the
Winograd algorithms for calculating SSD reduces number of the real multiplications.</p>
      <p>The algorithms examined operate with complex numbers in order to get the result.
For identifying more efficient ways to compute the two-dimensional convolution the
number-theoretic transform of Farm (NTT) was considered. This algorithm is based
on modular arithmetic and uses only integer real numbers.</p>
      <p>It is hard to assess the computational efficiency by the number of arithmetic
operations of NTT relative to considered algorithms, because besides addition and
multiplication there are operations modulo Farm. In this case the criterion of comparison of
these methods is the estimated performance. This criterion evaluates the time required
to calculate the coordinates of the moving blocks with each of the FFT algorithms
considered in the developed model. The results of Matlab simulation are presented in
Table 2.</p>
      <p>NTT</p>
      <p>Time, ms
5,5
6,7
6,1</p>
      <p>As shown in Table 2 motion estimation method based on block matching using
Winograd algorithm has the lowest complexity.</p>
    </sec>
    <sec id="sec-4">
      <title>Conclusions</title>
      <p>A new fast full search algorithm for block motion estimation based on convolution
theorem and Winograd’s Fourier transform is presented. Proposed method reduces the
computational complexity of the ME algorithm by 58 % the size of block 8 × 8, and –
81 % the size of block 16 × 16 pixels for the search area, exceeding twice the size of
the current block. The developed motion estimation algorithm of full search can be
used in the environment with a high demand for the quality of video, and the
computational complexity of the algorithm is not critical. The further direction of research in
this area will be the analysis of fast algorithm for computing two-dimensional
convolution through its decomposition into several convolutions shorter length.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Haskell</surname>
            <given-names>B.G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Limb</surname>
            <given-names>J.O.</given-names>
          </string-name>
          :
          <article-title>Predictive video encoding using measured subjective velocity</article-title>
          . U.S. Patent No.
          <volume>3</volume>
          ,
          <issue>632</issue>
          ,
          <issue>865</issue>
          (
          <year>1972</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Lee C.-H.</surname>
          </string-name>
          ,
          <string-name>
            <surname>Chen L</surname>
          </string-name>
          .
          <string-name>
            <surname>-H.</surname>
          </string-name>
          :
          <article-title>A Fast Motion Estimation Algorithm Based on the Block Sum Pyramid</article-title>
          .
          <source>J. IEEE Trans. Image Processing</source>
          , vol.
          <volume>6</volume>
          , pp.
          <fpage>1587</fpage>
          -
          <lpage>1591</lpage>
          (
          <year>1997</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Koga</surname>
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Iinuma</surname>
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hirano</surname>
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Iijima</surname>
            <given-names>Y.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ishiguro</surname>
            <given-names>T.</given-names>
          </string-name>
          :
          <article-title>Motion compensated interframe coding for video conferencing</article-title>
          .
          <source>In: Proc. Nat. Telecommun</source>
          . Conf., New Orleans, LA, pp.
          <source>G5.3.1-5.3.5</source>
          (
          <year>1981</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Cheung</surname>
            <given-names>C. H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Po L. M.:</surname>
          </string-name>
          <article-title>A novel cross-diamond search algorithm for fast block motion estimation</article-title>
          .
          <source>J. IEEE Trans. Circuits Syst. Video Technol.</source>
          , vol.
          <volume>12</volume>
          , no.
          <issue>12</issue>
          , pp.
          <fpage>1168</fpage>
          -
          <lpage>1177</lpage>
          (
          <year>2002</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Kilthau</surname>
            <given-names>S. L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Drew</surname>
            <given-names>M. S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Moller</surname>
            <given-names>T.</given-names>
          </string-name>
          <article-title>Full search content independent block matching based on the fast Fourier transform</article-title>
          .
          <source>IEEE 1CIP, I</source>
          , pp.
          <fpage>669</fpage>
          -
          <lpage>672</lpage>
          (
          <year>2002</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <given-names>Zubarev</given-names>
            <surname>Iu</surname>
          </string-name>
          .B.,
          <string-name>
            <surname>Dvorkovich</surname>
            <given-names>V.P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Nechepaev</surname>
            <given-names>V.V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sokolov</surname>
            <given-names>A.</given-names>
          </string-name>
          <string-name>
            <surname>Iu</surname>
          </string-name>
          .:
          <article-title>Metody analiza i kompensatsii dvizheniia v dinamicheskikh izobrazheniiakh</article-title>
          .
          <source>J. Elektrosviaz', no. 11</source>
          , pp.
          <fpage>15</fpage>
          -
          <lpage>21</lpage>
          (
          <year>1998</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>