<!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>Elisaveta Varco</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Vyatka State University, VyatSU</string-name>
          <email>varkoelizaveta2011@hotmail.com</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Elena Medvedeva</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Vyatka State University, VyatSU</string-name>
          <email>emedv@mail.ru</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Department of Radio Electronics</institution>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Kirov</institution>
          ,
          <country country="RU">Russia</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2020</year>
      </pub-date>
      <fpage>105</fpage>
      <lpage>108</lpage>
      <abstract>
        <p>-The paper proposes a method of image segmentation based on the joint usage of color and depth data. The method consists of two stages. The first stage involves RGB image segmentation based on contour detection and the subsequent filling of closed regions. This procedure is followed by joint color and depth segmentation. Depth data make it possible to distinguish between pixels with similar brightness characteristics for different objects and improve the quality of image segmentation. To reduce computational resources, we suggest that contours should be detected in high order bit planes of a digital image using the mathematical model of twodimensional Markov chain. The experimental results prove that the proposed method is effective.</p>
      </abstract>
      <kwd-group>
        <kwd>RGBD segmentation</kwd>
        <kwd>two-dimensional Markov chain</kwd>
        <kwd>contour detection</kwd>
        <kwd>depth map</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>I. INTRODUCTION</title>
      <p>Segmentation is used to solve a number of tasks related to
detection and recognition of static and dynamic objects in
video surveillance, autonomous driving, and others.</p>
      <p>Traditional segmentation methods are mainly focused on
the use of color or brightness features. According to these
methods, the quality of image segmentation depends
significantly on the pattern of the scene: smooth or sharp
changes in lighting; shadows created by objects; complex
backgrounds, and etc. Much work has been done in the field
over the years; however, none of the existing segmentation
techniques is able to obtain satisfactory results based on color
data alone.</p>
      <p>New RGBD sensors, for instance, the Microsoft Kinect,
which provide synchronized depth and color video frames,
have opened up new opportunities to solve the tasks related
to object detection and recognition. Unlike RGB data, depth
data are considered to be more resistant to changes in lighting
and dynamic background objects and can be an effective
additional feature for image segmentation.</p>
      <p>
        Fusion of color and depth has become a new research
topic in the field of computer vision recently. A number of
papers offer various methods for segmenting RGBD data:
methods based on combining background subtraction
algorithms with depth data [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]; methods using convolution
neural networks [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]; clustering [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]; contour, brightness and
depth [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ], and others.
      </p>
      <p>However, almost all segmentation methods based on
combining depth and color data are either insufficiently
flexible or require significant computational resources.
Therefore, research in this area is an urgent task.</p>
      <p>The aim of this paper is to develop a method for image
segmentation based on the joint usage of brightness and
depth data which can improve the quality of segmentation
with reduced computational resources.
II. IMAGE SEGMENTATION BASED ON RGBD DATA
In the RGB color space, each component is a digital
halftone image. Its pixels are represented by g-bit binary
numbers. The D component is also a multi-bit digital
image (depth map) where each element corresponds to the
information about the distance from the camera to each
point of the observed scene.</p>
      <p>There are two ways to perform RGBD data
segmentation. The first stage involves color-based image
segmentation, and the second stage – segmentation based on
depth data or vice versa. It is more preferable to use color
data at the first stage. This is due to a number of defects on
the depth map – lost and distorted depth values, uneven and
noisy object boundaries, incorrectly measured depth values
for some materials with mirror or fine-grained surfaces, and
so on. Therefore, using depth data at the first stage will
significantly distort the object boundaries and break the
object contours at the second one.</p>
      <p>In this paper, firstly, the RGB image is segmented. To
improve the accuracy of selected boundaries of objects of
interest, we use the method based on detecting contours with
subsequent pixel filling in closed image regions. The second
stage involves joint segmentation of color and depth data.
Depth data make it possible to distinguish pixels with
similar brightness or color characteristics for different
objects and thus to improve the quality of image
segmentation.</p>
      <p>Digital halftone images corresponding to color
components can be represented by a set of bit binary
images (BBI). The most informative (detailed) regions are
highlighted on the high order BBI of the digital halftone
image. The low order BBI are binary images in the form of
two-dimensional noise. Therefore, we propose to detect the
contours of objects of interest in the high order BBI of the
digital halftone image. To detect the contours, it is possible
to use the mathematical model based on two-dimensional
Markov chains with two equally probable states M 1l  ,
matrices
of
probability
of</p>
      <p>
        horizontal
, and vertical 2 П l  
M 2l 
1 П l  
and
1  1l1
1 l 
 21
1  1l2
1 l 
 22
( l  1, g ) transitions [
        <xref ref-type="bibr" rid="ref5 ref6">5, 6</xref>
        ].
2  1l1
2 l 
 21
2  1l2
2 l 
 22
      </p>
      <p>This approach to detecting contours will reduce
computational resources by using 2×2 transition
probability matrices.</p>
      <p>
        Fig. 1 shows an element  3l  of a two-dimensional binary
image with a neighborhood of neighboring elements
 i, j ,k    1(l ) ,  (2l )  .
1l
information in the  3 l  element for various combinations of
neighboring  i, j ,k    1(l ) ,  (2l )  elements is determined using
the formulas [
        <xref ref-type="bibr" rid="ref5 ref6">5,6</xref>
        ]:
      </p>
      <p>I  3l   M il   1l   M il  , 2l   M il     lo g 1 iil  2 iil  ; (1)
3 iil 
1 iil  2 ijl  ;</p>
      <p>3 ijl 
1 ijl  2 iil  ;</p>
      <p>3 ijl 
1 ijl  2 ijl  ,
3 iil 
I  3l   M il   1l   M il  , 2l   M jl     lo g
I  3l   M il   1l   M jl  , 2l   M il     lo g</p>
      <p>I  3l   M il   1l   M jl  , 2l   M jl     lo g
where r ijl   i, j  1, 2 ; r  1, 3  are elements of transition
probability matrices in one-dimensional Markov chains with
two states – 1 Π  l  (horizontally), 2 Π  l  (vertically), and
3 Π  l   1 Π  l   2 Π  l  .</p>
      <p>The elements of the transition probability matrices are
supposed to be known a priori and obtained from a large
number of samples of real images.</p>
      <p>After comparing the calculated amount of information
with the threshold, the decision on whether the analyzed
element belongs to the contour point is made. The threshold
value is calculated as the average value between the
minimum amount of information and the amount of
information when at least one of the neighboring elements
assumes a different state.</p>
      <p>For an 8-bit digital halftone image represented by 256
brightness values, it is possible to select all light regions with
brightness ranging from 128 to 255 in a dark background using
the high order (8th) bit plane, or, conversely, all dark objects in
the background with brightness above 128. To highlight regions
in less contrasting images with indistinct boundaries, it is
necessary to detect the contours in the following binary images of
the 7th or 6th bit of the digital halftone image. In this case, the
contour image will represent the sum of contour images of
several bits.</p>
      <p>The proposed method of contour detection requires
insignificant computational resources which are determined
by comparison operations with two neighboring elements.
As a result, one-pixel closed contour is obtained. This
property is important when performing the following
procedure – filling closed regions with color.</p>
      <p>
        To fill closed regions with color, the range of brightness
values Ym in ; Ym ax  for the object is specified. All the
elements within the object area are assigned an average
brightness value Y ср (or a label with a specified value). To
fill the regions with color, the line seed fill algorithm was
chosen [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. It provides a significant gain in memory and
processing time by storing only one seed element for each
filled regions. As a result of such image processing, the
object can be divided into several parts or have inaccurate
borders due to uneven illumination, the presence of shadows
or glare. In addition, extraneous objects in the background of
the scene can be seen in the image along with the objects of
interest. All these factors will influence the quality of
solution of the subsequent tasks of image detection,
classification and recognition.
      </p>
      <p>At the second stage, a range of data values
 X m in ; X m ax  is set on the depth map that the object of
interest can take, and a mask is formed. Next, the mask is
superimposed on the result of segmentation of the RGB
image and the final stage of selecting objects is performed.</p>
      <p>This procedure allows you to distinguish between objects
that have similar brightness or color characteristics, but
varied range characteristics, as well as improve the
segmentation of objects in uneven lighting, the presence of
shadows, etc.</p>
      <p>
        The RGBD Object Dataset was used to do research [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ].
The RGBD dataset contains pairs of sequences of color
images and depth maps, as well as segmentation results based
on depth and color data, using the RANSAC algorithm and
an adaptive Gaussian mixture (AGM) model [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]. Each video
sequence consists of 199 of size frames. In each image, an
object of interest is only one item.
      </p>
      <p>The results given (Fig.3d) prove that the segmentation
algorithm based on contour detection accurately localizes
the boundaries of objects.</p>
      <p>
        Additional use of depth data (Fig.3e) makes it possible to
improve the quality of segmentation: to remove the selected
fragments which are close in brightness to the object of
interest, get rid of shadows, etc. In addition, when
comparing the results in Fig. 3e and Fig.3c, it can be seen
that the developed method allows more accurate selection of
objects of interest than the method proposed in [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ].
8 BBI
6 BBI
7 BBI
5 BBI
8 layer-borders
RGB
image
Image decomposition
into g-bit binary images
      </p>
      <p>Contour detection
Filling of image segments
based on brightness
threshold</p>
      <p>Depth map
Mask formation based on</p>
      <p>distance threshold
+
Segmentation result</p>
      <p>The segmentation process can be performed
automatically for typical images (or sequences of video
frames) in which objects of interest have similar
characteristics in brightness and depth.</p>
      <p>
        Precision ( P ) and recall ( R ) criteria were used to
assess the quality of segmentation, and the error coefficient
was calculated (E) [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]:
      </p>
      <p>P r e c is io n 
R e c a ll 
E </p>
      <p>T P
T P  F P</p>
      <p>,</p>
      <p>T P
T P  F N
F P  F N
,</p>
      <p>,</p>
      <p>T P  T N  F P  F N
where TP – true positives; TN – true negatives; FP – false
positives; FN – false negatives.</p>
      <p>The precision within the segmented region is the
percentage of pixels which actually belong to the given
region in relation to all the pixels that are assigned to this
region. The recall criterion measures the percentage of all
truly defined pixels which belong to the segmented region in
relation to all the pixels. The error coefficient E takes all the
error pixels into account in relation to the total number of
pixels.</p>
      <p>Reference segmentation images were used to calculate
precision, recall and error coefficient.</p>
      <p>Joint segmentation has similar values of precision with
those for brightness segmentation but increases the recall
score (up to 2.1 times) and reduces the segmentation error
(up to 5.7 times).</p>
    </sec>
    <sec id="sec-2">
      <title>IV. CONCLUSION</title>
      <p>The proposed method of image segmentation based on
the joint usage of color and depth data makes it possible to
accurately select the boundaries of objects of interest and
effectively distinguish the pixels with similar brightness
characteristics for different objects. Due to the detected
contours in high order bit planes of the digital image using
the mathematical model of two-dimensional Markov chain, it
is possible to reduce the computational resources when
implementing the algorithm. The algorithm can be used to
solve a number of tasks related to object detection and
recognition in video surveillance systems, autonomous
driving, etc.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>R.</given-names>
            <surname>Trabelsi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>I.</given-names>
            <surname>Jabri</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Smach</surname>
          </string-name>
          and
          <string-name>
            <given-names>A.</given-names>
            <surname>Bouallegue</surname>
          </string-name>
          , “
          <article-title>Efficient and fast multi-modal foreground-background segmentation using RGBD data,” Pattern Recognition Letters</article-title>
          , vol.
          <volume>97</volume>
          , pp.
          <fpage>13</fpage>
          -
          <lpage>20</lpage>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>X.</given-names>
            <surname>Qi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Liao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Jia</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Fidler</surname>
          </string-name>
          and
          <string-name>
            <given-names>R.</given-names>
            <surname>Urtasun</surname>
          </string-name>
          , “
          <article-title>3D Graph Neural Networks for RGBD Semantic Segmentation</article-title>
          ,” IEEE International Conference on Computer Vision, Venice, Italy, pp.
          <fpage>5199</fpage>
          -
          <lpage>5208</lpage>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>H.</given-names>
            <surname>Yalic</surname>
          </string-name>
          and
          <string-name>
            <given-names>A.</given-names>
            <surname>Can</surname>
          </string-name>
          , “
          <article-title>Automatic Object Segmentation on RGB-D Data using Surface Normals and</article-title>
          Region Similarity,
          <source>” Proceedings of the 13th Intern. Joint Conf. on Computer Vision</source>
          , Imaging and
          <source>Computer Graphics Theory and Applications</source>
          , vol.
          <volume>4</volume>
          , pp.
          <fpage>379</fpage>
          -
          <lpage>386</lpage>
          ,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>F.</given-names>
            <surname>Xiang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Chen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Wang</surname>
          </string-name>
          and
          <string-name>
            <surname>C.-C. Jay Kuo</surname>
          </string-name>
          , “
          <article-title>Image segmentation using contour, surface, and</article-title>
          depth cues,
          <source>” IEEE Intern. Conf. on Image Processing</source>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>E.P.</given-names>
            <surname>Petrov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>I.S.</given-names>
            <surname>Trubin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.V.</given-names>
            <surname>Medvedeva</surname>
          </string-name>
          and
          <string-name>
            <given-names>S.M.</given-names>
            <surname>Smolskiy</surname>
          </string-name>
          , “
          <article-title>Mathematical Models of Video-Sequences of Digital Half-Tone Images,” Integrated models for information communication systems and net-works: design and development</article-title>
          ,
          <source>IGI Global</source>
          , pp.
          <fpage>207</fpage>
          -
          <lpage>241</lpage>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>E.V.</given-names>
            <surname>Medvedeva</surname>
          </string-name>
          and
          <string-name>
            <given-names>E.E.</given-names>
            <surname>Kurbatova</surname>
          </string-name>
          , “
          <article-title>Image Segmentation Based on Two-Dimensional Markov Chains,” Computer Vision in Control Systems-2</article-title>
          . Innovations in Practice, Springer International Publishing Switzerland, pp.
          <fpage>277</fpage>
          -
          <lpage>295</lpage>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>T.</given-names>
            <surname>Pavlidis</surname>
          </string-name>
          , “
          <article-title>Algorithms for Graphics and</article-title>
          Image Processing,” M.: Radio and Communications,
          <year>1986</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>RGBD</given-names>
            <surname>Object</surname>
          </string-name>
          <article-title>Dataset [Online]</article-title>
          . URL: http://rgbddataset.cs.washington.edu/dataset.html (
          <volume>23</volume>
          .
          <fpage>05</fpage>
          .
          <year>2019</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>K.</given-names>
            <surname>Lai</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Bo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Ren</surname>
          </string-name>
          and
          <string-name>
            <given-names>D.</given-names>
            <surname>Fox</surname>
          </string-name>
          , “
          <string-name>
            <given-names>A</given-names>
            <surname>Large-Scale Hierarchical MultiView RGB-D Object</surname>
          </string-name>
          Dataset,
          <source>” IEEE Intern. Conf. on Robotics and Automation</source>
          ,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>S.</given-names>
            <surname>Russell</surname>
          </string-name>
          and
          <string-name>
            <given-names>P.</given-names>
            <surname>Norving</surname>
          </string-name>
          , “Artificial Intelligence:
          <string-name>
            <given-names>A Modern</given-names>
            <surname>Approach</surname>
          </string-name>
          ,” M.: Williams Publishing House,
          <year>2006</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>