<!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>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>D.A. Kolchaev</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Е.R. Muratov</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>М.B. Nikiforov</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Ryazan State Radio Engineering University</institution>
          ,
          <addr-line>Gagarina, 59/1, 390005, Ryazan</addr-line>
          ,
          <country country="RU">Russia</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2017</year>
      </pub-date>
      <fpage>127</fpage>
      <lpage>131</lpage>
      <abstract>
        <p>Mathematical processing of images in real-time vision systems can be conventionally divided into two stages: preprocessing (filtering, contrasting, protection from natural distortions, etc.) and final one (imposition, visualization, solution of the navigation task, etc.). Mentioned tasks can be solved by a lot of known and specially developed methods with various degrees of efficiency. The present paper suggests a mathematical criterion model and algorithm of automatic selection of the most effective method at each stage of the image processing pipeline in relation to the current situation at its input.</p>
      </abstract>
      <kwd-group>
        <kwd>image processing pipeline</kwd>
        <kwd>real time</kwd>
        <kwd>automatic algorithm selection</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
    </sec>
    <sec id="sec-2">
      <title>2. Task definition</title>
      <p>N W
  Lxy
L  y 1 x1</p>
      <p>HW
where H , W – a height and width of the image, and Lxy – brightness of the element of the current image with coordinates x
and y .</p>
      <p>Such objective characteristics as root-mean-square deviation ( ) and entropy ( ) are used for quantitate quality assessment.
Root-mean-square deviation is equal to notions - local contrast and accuracy to some extent. Entropy is a measure of quantity of
information in the image.</p>
      <p>Task to estimate image quality has a multicriterion nature, so an additive generalized criterion F is introduced as follows:
p
F    i fi ,</p>
      <p>i1
p
where  i – weight coefficients,   i  1 – a condition of normalization F , f i – partial normalized criteria, p – a number
i1
of partial criteria.</p>
      <p>Normalized partial indices of the contrast and numbers of informative levels are determined as follows:</p>
      <p>Kn 
(Lmax  Lmin) ,</p>
      <p>255
Nn </p>
      <p>N</p>
      <p>,
Nmax
where Lmax  max( Lxy ), Lmin  min( Lxy ) – maximum and minimum values of brightness of image elements, N – a number of
informative levels being different from null, Nm ax  256 – a maximum number of informative levels in digital images for
visualization.</p>
      <p>
        Shannon entropy estimation can be calculated for any half-tone (including television and thermal) image. In this case
estimation of distribution of possibilities of gray shades in the half-tone image is calculated [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. Calculation of the entropy is
performed based on the image histogram which distribution of frequencies is described by a simple expression:
(1)
(3)
pi 
      </p>
      <p>N</p>
      <p>i ,</p>
      <p>HW
 2   pi (i  i )2 ,</p>
      <p>i
where Ni – a number of elements having i level.</p>
      <p>Calculation of the image entropy is performed according to formula:
   pi log 2 ( pi ) . (2)</p>
      <p>i</p>
      <p>For normalization entropy values can be divided into a coefficient being an entropy maximum for such number of levels. For
the half-tone image with 256 brightness gradations it is equal to 8. So, the image entropy value can vary from 0 to 1.</p>
      <p>Image dispersion is calculated as following:
where i   i pi , i – a level of quantization.</p>
      <p>i</p>
      <p>For the half-tone image estimation of dispersion of distribution of possibilities of gray shades is calculated. Experimentally it
was determined on a series of different images that root-mean-square deviation varies within the range from ≈0 to ≈100, then the
mean value is 50, consequently n :
 </p>
      <p>,   50,
50

 (100  )
n   , 50    100,
 50
0,   100.

</p>
      <p>For average brightness, values belonging to middle of the range are preferable, and on boundaries of the brightness range its
gradations cannot exceed 8. Normalized value of the entropy has the form:  n </p>
      <p>
        Main complication of particular index application is selection of weight coefficients taking into consideration influence of
corresponding particular indices on the generalized criterion as a whole. Fishburne criterion is used for selection of initial values
of these coefficients [
        <xref ref-type="bibr" rid="ref3 ref4">3, 4</xref>
        ]:
i 
2( p  i  1)
p( p  1)
.
      </p>
      <p>For this purpose partial criteria are divided into groups by priorities: (Ln ,  n ) ; (K n , N n ) and ( n ). Root-mean-square
deviation contribution weightiness to the value of the quality function integral index is described by this index meaning: it
determines accuracy and to some extent perceives intense noise. Then indices are arranged by descending of influence inside
separated priority groups.</p>
      <p>Taking into account above-mentioned facts, integral performance index (IPI) of the image brightness component has the form:
IPI  0,33Ln  0,27
n
 0,20K
n
 0,13N
n
 0,07 n.</p>
      <p>Correction of coefficients under partial indices is performed by the method of expert evaluations, besides their amount should
be equal to one.</p>
      <p>Noise power for the whole image is calculated in the block of noise evaluation. For this purpose, image is divided into
windows of size 3x3 and value of the neighbor pixel brightness which is located diagonally to the central one is subtracted from
the central pixel brightness. Result of subtraction is raised to the square and summed up by all pixels of the image.</p>
      <p>Described algorithm allows automatically selecting a method of contrasting and also a mode of interference compensation.
However, usage of this algorithm on a video sequence leads to appearance of areas where a sharp jump in brightness occurs
(other algorithm of contrasting is chosen), such event negatively influences on perception of video information by an operator.
The method described below is suggested to be used for solution of this issue.</p>
    </sec>
    <sec id="sec-3">
      <title>4. Interpolation method of proportional application of two boundary algorithms</title>
      <p>following form:</p>
      <p>Let’s suppose that  is a number of the video frame where replacement of the algorithm occurs, then  +  =  ′ is a number
of the following frame where analysis and selection of the enhancement algorithm are performed, then  т is a current video
frame, besides</p>
      <p>≤  т ≤  ′. Let’s designate   as an enhancement algorithm on the k –frame and   ′ as an enhancement
algorithm after t frames after k –frame. Interpolation method is the following: for each  т frame, proportion of two algorithms</p>
      <p>and   ′ is calculated, so, the closer  т is to  ′, the higher coefficient the result of algorithm   ′ is used with, and
consequently, the lower coefficient the result of algorithm   is used with. Reversed situation can occur similarly when  т is
closer to boundary  . Hence, formula for calculation of the resulting image pixel brightness depending on value  т has the
  , =   ,
  ( т) ∗ (1 −
 т − 

) +   ,

 ′( т) ∗ (  т −</p>
      <p>),

where x,y – pixel coordinates,   ,

  ( т) – a buffer with a result of the first algorithm for the current frame,   ,
 ′( т) – a buffer
automatic selection of the following enhancement algorithm.
 ′ frames correspondingly,  – a number of frames between moments when automatic choice of the algorithm happens.
with a result of the second algorithm for the same frame,   ( т),   ′( т) – results of operation of algorithms selected on  and</p>
      <p>Such formula allows gradually changing applied algorithms without sharp bursts on the resulting image but requires
processing of the image by two algorithms that decreases resulting performance. The algorithm based on this method begins
operation with obtaining of results of the automatic selection for 
and  ′ frames. Then each frame is processed by two
algorithms   and</p>
      <p>′, processing results are stored in two buffers of images. Each pixel of the resulting image is formed
according to formula 4. After achievement of the interval boundary ( т =  ′),   =   ′, and value   ′ is obtained from</p>
    </sec>
    <sec id="sec-4">
      <title>5. Results of the algorithm for automatic selection of the enhancement method</title>
      <p>So, the best element is (A3, B0)  M.
(4)
Number of levels: 250
Average brightness: 155.36
Entropy: 0.815
IPI: 0.827
Noise evaluation: 12.8
Noise-compensation algorithm: without noise compensation
Contrasting algorithm: Retinex</p>
      <p>Image Processing, Geoinformation Technology and Information Security / D.A. Kolchaev, Е.R. Muratov, М.B. Nikiforov</p>
      <p>We can see that the frame with number (k+t) is now processed by the same sequence of algorithms as other frames. It allows
avoiding undesirable darkening.</p>
      <p>
        Fig.3 shows a diagram of dependence of IPI on a number of the frame. Numbers of frames are marked in horizontal direction
and values of quality indices are marked in vertical direction, A0-A3 – contrasting algorithms (A0 –without contrasting, A1 –
linear stretch of the histogram [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], A2 – histogram equalization [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ], A3 – Multi Scale Retinex with Color Restoration [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]), Auto
– IPI values under automatic selection of contrasting algorithms.
      </p>
      <p>0,96
0,86
0,76
0,66
0,56
0,46
0,36
0
5
7
A0
A1</p>
      <p>On the diagram we can see areas which value of IPI has not the best value for, it is described by delay occurred because the
stack is used and evaluation is performed after every t=50 frames.</p>
    </sec>
    <sec id="sec-5">
      <title>6. Conclusion References</title>
      <p>Application of the suggested algorithm for automatic selection of the enhancement method allows automatically finding the
best combination of methods for image enhancement. The algorithm provides a possibility to change both a number of used
methods of enhancement and also methods for image evaluation not causing significant changes in the algorithm structure. It
allows implementing new enhancement algorithms and also new methods of evaluation. Application of the stack for
accumulation of processing results and interpolation method of proportional application of two boundary algorithms allows
avoiding errors in choice of the best algorithms.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>Elesina</given-names>
            <surname>SI</surname>
          </string-name>
          .
          <article-title>Imposition of images in correlation-extreme navigation systems</article-title>
          . Edited by
          <string-name>
            <surname>Kostyashkina</surname>
            <given-names>LN</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Nikiforov</surname>
            <given-names>MB</given-names>
          </string-name>
          . Moscow: Radio Engineering,
          <year>2015</year>
          ; 208 p.
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <surname>Wang</surname>
            <given-names>Z</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bovik</surname>
            <given-names>AC</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sheikh</surname>
            <given-names>HR</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Simoncelli</surname>
            <given-names>EP</given-names>
          </string-name>
          .
          <article-title>Image quality assessment: From error visibility to structural similarity</article-title>
          .
          <source>IEEE Trans. Image Process</source>
          .
          <year>2004</year>
          ;
          <volume>13</volume>
          (
          <issue>4</issue>
          ):
          <fpage>600</fpage>
          -
          <lpage>612</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>Gurov</given-names>
            <surname>VS</surname>
          </string-name>
          .
          <article-title>Image processing in aviation vision systems: monograph</article-title>
          . Edited by
          <string-name>
            <surname>Kostyashkina</surname>
            <given-names>LN</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Nikiforov</surname>
            <given-names>MB</given-names>
          </string-name>
          . Moscow: FIZMATLIT,
          <year>2016</year>
          ;
          <fpage>240p</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <surname>Fishburne</surname>
            <given-names>PS</given-names>
          </string-name>
          .
          <article-title>Theory of utility for decision-making</article-title>
          . Moscow: Nauka,
          <year>1978</year>
          ; 352 p.
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <surname>Gonzalez</surname>
            <given-names>RC</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Woods</surname>
            <given-names>RE</given-names>
          </string-name>
          .
          <source>Digital Image Processing. Prentice Hall</source>
          ,
          <volume>2</volume>
          <fpage>edition</fpage>
          ,
          <year>2002</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <surname>Singh</surname>
            <given-names>RP</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dixit</surname>
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Histogram</surname>
          </string-name>
          <article-title>Equalization: A Strong Technique for Image Enhancement</article-title>
          .
          <source>International Journal of Signal Processing, Image Processing and Pattern Recognition</source>
          <year>2015</year>
          ;
          <volume>8</volume>
          (
          <issue>8</issue>
          ):
          <fpage>345</fpage>
          -
          <lpage>352</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <surname>Petro</surname>
            <given-names>AB</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sbert</surname>
            <given-names>CS</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Morel</surname>
            <given-names>JM. Multiscale</given-names>
          </string-name>
          <string-name>
            <surname>Retinex</surname>
          </string-name>
          .
          <source>Image Processing On Line</source>
          <year>2014</year>
          ;
          <volume>4</volume>
          :
          <fpage>71</fpage>
          -
          <lpage>88</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>