LIFO-STACK SIZE DETERMINATION FOR GROWING OF THE IMAGE REGIONS

This paper considers the problem of memory allocation for the organization of the LIFO-stack in the algorithm for image segmentation based on growing regions is considered. Segmentation divides the image into regions with identical or similar properties and is the most demanding process for the capa...

Full description

Bibliographic Details
Main Author: V. Yu. Tsviatkou
Format: Article
Language:Russian
Published: Educational institution «Belarusian State University of Informatics and Radioelectronics» 2020-03-01
Series:Doklady Belorusskogo gosudarstvennogo universiteta informatiki i radioèlektroniki
Subjects:
Online Access:https://doklady.bsuir.by/jour/article/view/2640
id doaj-54ee5d289b8c441aa89766693c4b91fd
record_format Article
spelling doaj-54ee5d289b8c441aa89766693c4b91fd2021-07-28T16:19:58ZrusEducational institution «Belarusian State University of Informatics and Radioelectronics»Doklady Belorusskogo gosudarstvennogo universiteta informatiki i radioèlektroniki1729-76482020-03-01182455210.35596/1729-7648-2020-18-2-45-521575LIFO-STACK SIZE DETERMINATION FOR GROWING OF THE IMAGE REGIONSV. Yu. Tsviatkou0Belarusian State University of Informatics and RadioelectronicsThis paper considers the problem of memory allocation for the organization of the LIFO-stack in the algorithm for image segmentation based on growing regions is considered. Segmentation divides the image into regions with identical or similar properties and is the most demanding process for the capacity of RAM. The cultivation of areas begins with the neighborhoods of pre-selected initial growth pixels and uses stacks to store the coordinates of adjacent pixels attached to the cultivated region. Stack loading is maximized when the segment size matches the size of the YX image. In the absence of an expression for the exact determination of the size of the stack, it is possible to guarantee the stable operation of the algorithm for growing regions, eliminating the overflow of the memory allocated for processing if the stack size is assumed equal to YX. However, this approach does not take into account the fact that filling the coordinate stacks is also accompanied by a selection of them, which makesthe stack size always smaller than YX. The article proposes an expression that allows one to increase the accuracy of determining the required size of the LIFO-stack for storing the coordinates of adjacent pixels depending on the image size. The expression takes into account the conditions of the maximum load of the LIFO-stack when: a) the segmentation of the square region with the initial growth pixel in the corner of this region is carried out; b) in the scan window, adjacent pixels are always selected in order with the first selectable pixel located in the corner of the scan window. Using the proposed expression to calculate the required capacity of the LIFO-stack under conditions of its maximum load in the image segmentation algorithm based on growing regions provides a 2-fold reduction in the number of LIFO-stack memory cells.https://doklady.bsuir.by/jour/article/view/2640lifo-stackimage segmentationregion growingstack sizememory allocation
collection DOAJ
language Russian
format Article
sources DOAJ
author V. Yu. Tsviatkou
spellingShingle V. Yu. Tsviatkou
LIFO-STACK SIZE DETERMINATION FOR GROWING OF THE IMAGE REGIONS
Doklady Belorusskogo gosudarstvennogo universiteta informatiki i radioèlektroniki
lifo-stack
image segmentation
region growing
stack size
memory allocation
author_facet V. Yu. Tsviatkou
author_sort V. Yu. Tsviatkou
title LIFO-STACK SIZE DETERMINATION FOR GROWING OF THE IMAGE REGIONS
title_short LIFO-STACK SIZE DETERMINATION FOR GROWING OF THE IMAGE REGIONS
title_full LIFO-STACK SIZE DETERMINATION FOR GROWING OF THE IMAGE REGIONS
title_fullStr LIFO-STACK SIZE DETERMINATION FOR GROWING OF THE IMAGE REGIONS
title_full_unstemmed LIFO-STACK SIZE DETERMINATION FOR GROWING OF THE IMAGE REGIONS
title_sort lifo-stack size determination for growing of the image regions
publisher Educational institution «Belarusian State University of Informatics and Radioelectronics»
series Doklady Belorusskogo gosudarstvennogo universiteta informatiki i radioèlektroniki
issn 1729-7648
publishDate 2020-03-01
description This paper considers the problem of memory allocation for the organization of the LIFO-stack in the algorithm for image segmentation based on growing regions is considered. Segmentation divides the image into regions with identical or similar properties and is the most demanding process for the capacity of RAM. The cultivation of areas begins with the neighborhoods of pre-selected initial growth pixels and uses stacks to store the coordinates of adjacent pixels attached to the cultivated region. Stack loading is maximized when the segment size matches the size of the YX image. In the absence of an expression for the exact determination of the size of the stack, it is possible to guarantee the stable operation of the algorithm for growing regions, eliminating the overflow of the memory allocated for processing if the stack size is assumed equal to YX. However, this approach does not take into account the fact that filling the coordinate stacks is also accompanied by a selection of them, which makesthe stack size always smaller than YX. The article proposes an expression that allows one to increase the accuracy of determining the required size of the LIFO-stack for storing the coordinates of adjacent pixels depending on the image size. The expression takes into account the conditions of the maximum load of the LIFO-stack when: a) the segmentation of the square region with the initial growth pixel in the corner of this region is carried out; b) in the scan window, adjacent pixels are always selected in order with the first selectable pixel located in the corner of the scan window. Using the proposed expression to calculate the required capacity of the LIFO-stack under conditions of its maximum load in the image segmentation algorithm based on growing regions provides a 2-fold reduction in the number of LIFO-stack memory cells.
topic lifo-stack
image segmentation
region growing
stack size
memory allocation
url https://doklady.bsuir.by/jour/article/view/2640
work_keys_str_mv AT vyutsviatkou lifostacksizedeterminationforgrowingoftheimageregions
_version_ 1721267622049218560