<!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>B ased of on L ossy I m age C o m pression Algorith m Fractal Discrete C osine Transfor m</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Samara</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Russia</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Samara</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Russia</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Image Processing Systems Institute of RAS - Branch of the FSRC</institution>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Samara National Research University</institution>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2020</year>
      </pub-date>
      <fpage>153</fpage>
      <lpage>156</lpage>
      <abstract>
        <p>-Lossy image compression algorithm based on fractal discrete cosine transform is proposed in this paper. The created algorithm is compared to an algorithm based on twodimensional experimentally discrete cosine transform.</p>
      </abstract>
      <kwd-group>
        <kwd>Keywords-lossy</kwd>
        <kwd>images</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>(1),
as
image</p>
    </sec>
    <sec id="sec-2">
      <title>INTRODUCTION</title>
      <p>
        which
Discrete
discrete orthogonal transforms (DOTs) are
cosine
transform
(DCT),
namely,
its
used.
twodimensional variation, is widely used in the field of image
processing. Since two-dimensional DCT is defined on a
square region, the resulting artifacts in compression have a
very noticeable mesh structure. To eliminate this effect, one
can use the classical one-dimensional DCT applied to the
sweep generated by some canonical number system (CNS)
[
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], or the fractal DCT (FDCT) defined on the fractal region
generated by CNS [2]. In this paper, we study a lossy
compression algorithm that uses various variations of the
FDCT. The results of the algorithm are compared with a
compression based on two-dimensional DCT.
      </p>
      <p>II.</p>
    </sec>
    <sec id="sec-3">
      <title>THE THEORETICAL BASIS</title>
      <sec id="sec-3-1">
        <title>A. Fractal DCT</title>
        <p>
          This section provides brief theoretical information about
the CNS in imaginary quadratic fields [
          <xref ref-type="bibr" rid="ref2">3</xref>
          ]-[6], k- fundamental
domains, and FDCT [2].
        </p>
        <p>Let  (√ ) is a quadratic field:  (√ ) = { =  +
 ;  ,  ∈  }, d is an integer, free of squares. Then the field
element  ∈  (√ ) is called a whole algebraic field element
if its norm and trace are integers</p>
        <p>( ) = ( +  √ )( −  √ ),
 ( ) = ( +  √ ) + ( −  √ ).</p>
        <p>The whole algebraic element  ∈  (√ ) is the basis of
the CNS in the ring of integer elements  (√ ), if any whole
element of this field is uniquely representable in the form of
a finite sum
[2].</p>
        <p>Copyright © 2020 for this paper by its authors.

 = ∑ =0     ,   ∈  = {0,1, . . , |
( )| − 1}
(1)</p>
        <p>CNS in the field  (√ ) is called a pair {α, N} ,
kfundamental domain   is the set of algebraic elements of
the field  (√ ), created by k-membered sum of a formula
  = {∑ =−01

   ,   ∈  }.
(2)
Let  COS ( ,  ) = 
(  )Im( )
) ,
where
parameter β is set for the reason of orthogonality:
∑ ∈   COS ( ,  )⋅  COS ( ,  ) = 0,  ≠  ,</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>For example, for</title>
      <p>( ) = 2 parameter β is calculated
 =
  +1−2  +1.
2( −1)
Then FDCT over   is called a transformation
 ( ) =  ( )∑ ∈   ( )  ( ,  ),
where</p>
      <p>∈   , and  ( ) is FDCT.</p>
      <p>Reverse FDCT (RFDCT) is called</p>
      <p>( ) = ∑ ∈   ( ) ( )  ( ,  ),</p>
    </sec>
    <sec id="sec-5">
      <title>FDCT.</title>
      <p>where  ∈   , and  ( ) is the normalizing coefficient of</p>
      <p>The normalizing coefficient of FDCT and RFDCT is
equal and is calculated using the following equation:
 ( ) =
√</p>
      <p>√
{ 
1
2
(  ), 2
(  ), 2
≡ 0(
≠ 0(
  )
  )
.
orthogonality of the basis functions:</p>
      <p>The field   is found algorithmically for the reasons of
∑  COS ( ,  )⋅  COS ( ,  ) = 0;</p>
      <p>∈   ;  ,  ∈   ;  ≠ 
∑  COS ( ,  )⋅  COS ( ,  ) ≠ 0;</p>
      <p>∈   ;  ,  ∈   ;  = 
The algorithm for calculating this region is described in</p>
      <sec id="sec-5-1">
        <title>B. Two-dimensional DCT</title>
        <p>Two-dimensional DCT is called the transformation
∑ 1−1 ∑ 22=−01  ( 1,  2)
 1=0
 ( 1, 
2
) =
 1
brightness),   is the size of the i-th side of the block, and
 ( 1,  2) is the resulting spectrum of the source signal.</p>
        <p>Then the inverse two-dimensional DCT is called the
transformation
where   ( ) is a normalizing coefficient calculated as
  ( ) = {
√ 
√
 
1 ,  = 0
2 ,  ≠ 0
.</p>
      </sec>
      <sec id="sec-5-2">
        <title>C. Description of the Compression Algorithm</title>
        <p>following steps:</p>
        <p>The studied compression algorithm consists of the
 splitting the image into blocks;
 calculating the DOT for each of the blocks;
 quantization of the obtained frequency domain (lossy
compression);
 packing
of quantized</p>
        <p>spectral components for
subsequent lossless compression.
where   is i-th component of the quantization vector (or
matrix),   is i-th component of the
mean squared error
is the maximum value of the standard deviation
for all components, Q is the algorithm parameter, which is
the image compression ratio setting. The meaning of this
formula is to give more quantization levels to a component
with a larger standard deviation. For example, for FDCT 
=
−1 +  , 
= 3, the quantization vector at 
= 1 is equal to
The quantized values of the spectral components are
sequentially, 2 bytes were
allocated to each
III.</p>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>RESEARCH</title>
      <sec id="sec-6-1">
        <title>A. Description of the experiment</title>
        <p>The comparison was carried out on 10 halftone images
512×512 in size from the</p>
      </sec>
    </sec>
    <sec id="sec-7">
      <title>Waterloo Gray Set. All images</title>
      <p>were compressed by algorithms using two-dimensional DCT
on blocks 4 х 4 and 8 х 8 and FDCT with parameters  =</p>
      <p>As a comparative measure of visual quality, PSNR, or the
ratio of peak signal to noise, and MSSIM, or a measure of
structural similarity averaged over the image, were chosen.</p>
      <p>PSNR is calculated by the formula
10
1</p>
      <p>10  1 2
( ,  ) = 20
where x and y are the compared grayscale images,  1,  2 are
image
width
and
height respectively; PSNR
value is
measured in decibels. The higher the PSNR value, the less
the image has changed compared to the original.</p>
      <p>MSSIM is calculated as the average SSIM for disjoint
88 blocks :
where x and y are grayscale images being compared, M is the
number of 88 blocks,  1 = 2.55 ,  2 = 7.65 . MSSIM
values range from -1 to 1, the higher value corresponds to a
better visual similarity of two images [7].</p>
      <p>To assess the degree of compression, informational
entropy was used. Information entropy shows how
much
information the spectral component carries on average after
compression [8], and describes the theoretical limit of
sequence compression. Accordingly, the lower the value of
entropy, the greater the compression ratio can be achieved by
compressing this sequence. Entropy was calculated from a
sequence of quantized spectral components by the formula
 = − ∑65535  
 =0

2  ,
where   – is the probability of occurrence of the value of i in
the sequence.</p>
      <sec id="sec-7-1">
        <title>B. Results</title>
        <p>As a result of the study, it turned out that for most images
for equal values of entropy, algorithms based on
twodimensional DCT show the best values of comparative
measures of visual quality compared to algorithms based on
FDCT (Fig. 2), but the following can be noted: firstly, when
the entropy is one and a half bits per sample and higher, the
MSSIM value for FDCT-based algorithms differ no more
than by 1%, which means that the difference is almost
imperceptible.</p>
        <p>Secondly, starting from a certain value of entropy, the
visual quality of images compressed by the FDCT algorithm
is superior to the visual quality of images compressed by the
algorithm based on two-dimensional DCT. This can also be
seen from the graphs in Fig. 2. Such a property can be useful
in image transmission systems for which low PSNR values
(about 20 dB) are acceptable.</p>
        <p>Moreover, Fig. 3 shows the nature of the distortions
introduced by the FDCT fractal blocks. Compared to the
square blocks of two-dimensional DCT, the fractal structure
is less noticeable, and the boundaries of the objects in the
image are sharper, although more noisy.</p>
        <p>Finally, it can be noted that in experiments on images
consisting of text, FDCT-based algorithms showed
themselves better than algorithms based on two-dimensional
DCT, which makes great practical sense when working with
scanned documents and books. An example of the operation
of algorithms in images containing text is shown in Fig. 4.</p>
      </sec>
    </sec>
    <sec id="sec-8">
      <title>IV. CONCLUSION</title>
      <p>In this paper, a lossy image compression algorithm based
on a fractal discrete cosine transform was implemented and
studied. The implemented algorithm was compared with the
algorithm based on two-dimensional DCT. As a result, it
turned out that FDCT has a completely different character of
distortions introduced into the image during compression: an
image compressed by the FDCT algorithm has sharper but
more noisy object boundaries compared to two-dimensional
DCT; the structure of fractal blocks is less noticeable than
the structure of a square block of two-dimensional DCT.
Despite the fact that FDCT does not show the best numerical
characteristics of visual quality with an equal value of
entropy compared to two-dimensional DCT, the actual visual
quality differs insignificantly for some values of entropy,
which can be used in a number of image processing areas.</p>
      <p>Actual problems associated with the FDCT-based
compression algorithm are the synthesis of fast FDCT
algorithms, the study of FDCT-based algorithms in other
kfundamental areas, as well as the synthesis of the algorithm
for reducing the noise introduced by compression when
using FDCT.</p>
      <p>M.S. Kasparyan, “Fractal discrete cosine transformations on
prefractal areas associated with the fundamental areas of canonical
number systems,” Computer Optics, vol. 38, no. 1, pp. 148-153, 2014.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>A.M.</given-names>
            <surname>Belov</surname>
          </string-name>
          , “
          <article-title>The study of the effectiveness of one-dimensional discrete cosine transforms on the scans of two-dimensional signals generated by canonical number systems</article-title>
          ,” Computer Optics, vol.
          <volume>35</volume>
          , no.
          <issue>4</issue>
          , pp.
          <fpage>519</fpage>
          -
          <lpage>522</lpage>
          ,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>I.</given-names>
            <surname>Katai</surname>
          </string-name>
          and
          <string-name>
            <given-names>A.</given-names>
            <surname>Kovacs</surname>
          </string-name>
          , “
          <article-title>Canonical number system in imaginary quadratic fields,”</article-title>
          <source>Acta Mathematica Hungarica</source>
          , vol.
          <volume>37</volume>
          , pp.
          <fpage>159</fpage>
          -
          <lpage>164</lpage>
          ,
          <year>1981</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>I.</given-names>
            <surname>Katai</surname>
          </string-name>
          and
          <string-name>
            <given-names>J.</given-names>
            <surname>Szabo</surname>
          </string-name>
          , “
          <article-title>Canonical number systems for complex integers</article-title>
          ,
          <source>” Acta Sci. Math. (Szeged)</source>
          , vol.
          <volume>37</volume>
          , pp.
          <fpage>255</fpage>
          -
          <lpage>260</lpage>
          ,
          <year>1975</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          <string-name>
            <surname>V.M. Chernov</surname>
          </string-name>
          , “
          <article-title>Arithmetic methods for the synthesis of fast discrete orthogonal transform algorithms</article-title>
          ,” M.:
          <string-name>
            <surname>Fizmatlit</surname>
          </string-name>
          ,
          <year>2007</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          <string-name>
            <surname>V.M. Chernov</surname>
          </string-name>
          , “
          <article-title>Exotic" binary number systems for rings of Gauss and Eisenstein integers</article-title>
          ,”
          <source>Computer Optics</source>
          , vol.
          <volume>42</volume>
          , no.
          <issue>6</issue>
          , pp.
          <fpage>1068</fpage>
          -
          <lpage>1073</lpage>
          ,
          <year>2018</year>
          , DOI: 10.18287/
          <fpage>2412</fpage>
          -6179-2018-42-6-
          <fpage>1068</fpage>
          -1073.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          <string-name>
            <given-names>Z.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <surname>Alan C. Bovik</surname>
          </string-name>
          ,
          <string-name>
            <surname>Hamid</surname>
            <given-names>R.</given-names>
          </string-name>
          <string-name>
            <surname>Sheikh</surname>
            and
            <given-names>E.P.</given-names>
          </string-name>
          <string-name>
            <surname>Simoncelli</surname>
          </string-name>
          , “
          <article-title>Image Quality Assessment: From Error Visibility to Structural Similarity,”</article-title>
          <source>IEEE Transactions on Image Processing</source>
          , vol.
          <volume>13</volume>
          , pp.
          <fpage>600</fpage>
          -
          <lpage>612</lpage>
          ,
          <year>2004</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          <string-name>
            <given-names>V.D.</given-names>
            <surname>Kolesnik</surname>
          </string-name>
          and
          <string-name>
            <given-names>G.</given-names>
            <surname>Sh. Poltyrev</surname>
          </string-name>
          , “Information theory course,” M.:
          <string-name>
            <surname>Nauka</surname>
          </string-name>
          ,
          <year>1982</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>