English

Fast algorithms for morphological operations using run-length encoded binary images

Computer Vision and Pattern Recognition 2015-04-07 v1 Graphics Information Theory math.IT

Abstract

This paper presents innovative algorithms to efficiently compute erosions and dilations of run-length encoded (RLE) binary images with arbitrary shaped structuring elements. An RLE image is given by a set of runs, where a run is a horizontal concatenation of foreground pixels. The proposed algorithms extract the skeleton of the structuring element and build distance tables of the input image, which are storing the distance to the next background pixel on the left and right hand sides. This information is then used to speed up the calculations of the erosion and dilation operator by enabling the use of techniques which allow to skip the analysis of certain pixels whenever a hit or miss occurs. Additionally the input image gets trimmed during the preprocessing steps on the base of two primitive criteria. Experimental results show the advantages over other algorithms. The source code of our algorithms is available in C++.

Keywords

Cite

@article{arxiv.1504.01052,
  title  = {Fast algorithms for morphological operations using run-length encoded binary images},
  author = {Gregor Ehrensperger and Alexander Ostermann and Felix Schwitzer},
  journal= {arXiv preprint arXiv:1504.01052},
  year   = {2015}
}

Comments

17 pages, 2 figures. Submitted to Elsevier (Pattern Recognition). For the associated source code, see https://numerical-analysis.uibk.ac.at/g.ehrensperger

R2 v1 2026-06-22T09:10:07.485Z