Binary Morphology and Related Operations on Run-Length Representations

Binary morphology on large images is compute intensive, in particular for large structuring elements. Run-length encoding is a compact and space-saving technique for representing images. This paper describes how to implement binary morphology directly on run-length encoded binary images for rectangular structuring elements. In addition, it describes efficient algorithm for transposing and rotating run-length encoded images. The paper evaluates and compares run length morphologial processing on page images from the UW3 database with an efficient and mature bit blit-based implementation and shows that the run length approach is several times faster than bit blit-based implementations for large images and masks. The experiments also show that complexity decreases for larger mask sizes. The paper also demonstrates running times on a simple morphology-based layout analysis algorithm on the UW3 database and shows that replacing bit blit morphology with run length based morphology speeds up performance approximately two-fold.

[1]  Amit Kumar Das,et al.  A fast algorithm for skew detection of document images using morphology , 2001, International Journal on Document Analysis and Recognition.

[2]  Laurent Najman Using mathematical morphology for document skew estimation , 2003, IS&T/SPIE Electronic Imaging.

[3]  Marcel van Herk A fast algorithm for local minimum and maximum filters on rectangular and octagonal kernels , 1992, Pattern Recognit. Lett..

[4]  L. Vincent Morphological Algorithms , 2018, Mathematical Morphology in Image Processing.

[5]  Michael Werman,et al.  Computing 2-D Min, Median, and Max Filters , 1993, IEEE Trans. Pattern Anal. Mach. Intell..

[6]  Jim Piper,et al.  Erosion and dilation of binary images by arbitrary structuring elements using interval coding , 1989, Pattern Recognit. Lett..

[7]  Henry S. Baird,et al.  Image segmentation by shape-directed covers , 1990, [1990] Proceedings. 10th International Conference on Pattern Recognition.

[8]  Marc Van Droogenbroeck Algorithms for openings of binary and label images with rectangular structuring elements , 2002 .

[9]  Rein van den Boomgaard,et al.  Methods for fast morphological image transforms using bitmapped binary images , 1992, CVGIP Graph. Model. Image Process..

[10]  Dan S. Bloomberg IMPLEMENTATION EFFICIENCY OF BINARY MORPHOLOGY , 2002 .

[11]  Marc Van Droogenbroeck,et al.  Morphological Erosions and Openings: Fast Algorithms Based on Anchors , 2005, Journal of Mathematical Imaging and Vision.

[12]  Thomas M. Breuel,et al.  Optimal Line and Arc Detection on Run-Length Representations , 2005, GREC.

[13]  Friedrich M. Wahl,et al.  Document Analysis System , 1982, IBM J. Res. Dev..

[14]  Ron Kimmel,et al.  Efficient Dilation, Erosion, Opening and Closing Algorithms , 2000, ISMM.

[15]  Isabelle Guyon,et al.  DATA SETS FOR OCR AND DOCUMENT IMAGE UNDERSTANDING RESEARCH , 1997 .

[16]  Ron Kimmel,et al.  Efficient Dilation, Erosion, Opening, and Closing Algorithms , 2002, IEEE Trans. Pattern Anal. Mach. Intell..

[17]  Vishal Misra,et al.  A memory efficient method for fast transposing run-length encoded images , 1999, Proceedings of the Fifth International Conference on Document Analysis and Recognition. ICDAR '99 (Cat. No.PR00318).

[18]  Ching Y. Suen,et al.  A generic method of cleaning and enhancing handwritten data from business forms , 2001, International Journal on Document Analysis and Recognition.