Skip to main content

Part of the book series: Computational Imaging and Vision ((CIVI,volume 18))

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 169.00
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 219.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 219.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. T. H. Cormen, C. E. Leiserson, and R. L. Rivest. Introduction to Algorithms. MIT Press, Cambridge, Massachusetts, 1990.

    Google Scholar 

  2. 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.

    Article  Google Scholar 

  3. 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.

    Google Scholar 

  4. 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.

    Google Scholar 

  5. 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.

    Article  Google Scholar 

  6. 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.

    Google Scholar 

  7. J. Serra. Image analysis and mathematical morphology. Academic Press, New York, 1982.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints 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

Publish with us

Policies and ethics