Abstract
We propose an efficient algorithm for computing the dilation and erosion filters. For a p-element sliding window, our algorithm computes the 1D filter using 1.5 + o(1) comparisons per sample point. Our algorithm constitutes improvements over the best previously known such algorithm by Gil and Werman [5]. The previous improvement on [5] offered by Gevorkian, Astola and Atourian [2] was in better expected performance for random signals. Our result improves on [5] result without assuming any distribution of the input. Further, a randomized version of our algorithm gives an expected number of 1.25 + o(1) comparisons per sample point, for any input distribution. We deal with the problem of computing the dilation and the erosion filters simultaneously, and again improve the Gil-Werman algorithm in this case for independently distributed inputs. We then turn to the opening filter, defined as the application of the min filter to the max filter, and give an efficient algorithm for its computation. Specifically, this algorithm is only slightly slower than the computation of just the max filter. The improved algorithms are readily generalized to two dimensions for rectangular structuring element, as well as to any higher finite dimension for a hyper-box structuring element, with the number of comparisons per window remaining constant.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
T. H. Cormen, C. E. Leiserson, and R. L. Rivest. Introduction to Algorithms. MIT Press, Cambridge, Massachusetts, 1990.
D. Z. Gevorkian, J. T. Astola, and S. M. Atourian. Improving Gil-Werman algorithm for running min and max filters. IEEE Transactions on Pattern Analysis and Machine Intelligence, 19(5):526–529, May 1997.
J. Y. Gil and Z. Gutterman. Compile time symbolic derivation with C++ templates. In Proceedings of the fourth Conference on Object-Oriented Technologies and Systems (COOTS’98), Santa Fe, New Mexico, May 1998. USENIX.
J. Y. Gil and R. Kimmel. Further improvements to the Gil-Werman’s min and max filters. Submitted to IEEE Transactions on Pattern Analysis and Machine Intelligence, 2000.
J. Y. Gil and M. Werman. Computing 2-D min, median, and max filters. IEEE Transactions on Pattern Analysis and Machine Intelligence, 15(5):504–507, May 1993.
I. Pitas: 1989:FAR. Fast algorithms for running ordering and max/min recalculations. IEEE Transactions on Circuits and Systems, CAS-36(6):795–804, June 1989.
J. Serra. Image analysis and mathematical morphology. Academic Press, New York, 1982.
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2002 Kluwer Academic/Plenum Publishers
About this chapter
Cite this chapter
Gil, J.Y., Kimmel, R. (2002). Efficient Dilation, Erosion, Opening and Closing Algorithms. In: Goutsias, J., Vincent, L., Bloomberg, D.S. (eds) Mathematical Morphology and its Applications to Image and Signal Processing. Computational Imaging and Vision, vol 18. Springer, Boston, MA. https://doi.org/10.1007/0-306-47025-X_33
Download citation
DOI: https://doi.org/10.1007/0-306-47025-X_33
Publisher Name: Springer, Boston, MA
Print ISBN: 978-0-7923-7862-4
Online ISBN: 978-0-306-47025-7
eBook Packages: Springer Book Archive