Skip to main content

Morphological Image Processing

  • Chapter
  • First Online:
Digital Image Processing

Abstract

In processing the color and grayscale images, which occur mostly, their binary version is often used. In morphological processing of images, pixels are added or removed from the images. The structure and shape of the objects are analyzed so that they can be identified. The basic operations in this processing are binary convolution and correlation, that is based on logical operations rather than arithmetic operations. Dilation and erosion are the basic operations, and rest of the operations and algorithms are based on these operations. Morphological processing is also extended to gray-level images using the minimum and maximum operators.

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 49.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 64.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 99.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

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to D. Sundararajan .

Exercises

Exercises

8.1 Find the dilation of x(m, n) and h(m, n).

$$ h(m, n)=\left[ \begin{array}{l@{\quad }l@{\quad }l} 1&{} 0&{} 1\\ 0&{} {\varvec{1}}&{} 0\\ 1&{} 1&{} 1 \end{array} \right] $$

(i)

$$ x(m, n)=\left[ \begin{array}{l@{\quad }l@{\quad }l@{\quad }l} 1&{} 1&{} 0&{} 0\\ 1&{} 1&{} 0&{} 0\\ 0&{} 1&{} 1&{} 1\\ 1&{} 1&{} 1&{} 0 \end{array} \right] $$

(ii)

$$ x(m, n)=\left[ \begin{array}{l@{\quad }l@{\quad }l@{\quad }l} 1&{} 0&{} 0&{} 0\\ 1&{} 0&{} 0&{} 0\\ 1&{} 1&{} 0&{} 0\\ 0&{} 1&{} 0&{} 0 \end{array} \right] $$

(iii)

$$ x(m, n)=\left[ \begin{array}{l@{\quad }l@{\quad }l@{\quad }l} 0&{} 1&{} 1&{} 1\\ 0&{} 0&{} 1&{} 1\\ 0&{} 0&{} 0&{} 0\\ 1&{} 0&{} 0&{} 0 \end{array} \right] $$

8.2 Find the erosion of x(m, n) and h(m, n).

$$ h(m, n)=\left[ \begin{array}{l@{\quad }l@{\quad }l} 0&{} 1&{} 0\\ 1&{} {\varvec{0}}&{} 1\\ 0&{} 0&{} 0 \end{array} \right] $$

(i)

$$ x(m, n)=\left[ \begin{array}{l@{\quad }l@{\quad }l@{\quad }l} 1&{} 0&{} 0&{} 0\\ 0&{} 1&{} 1&{} 0\\ 0&{} 0&{} 0&{} 1\\ 0&{} 0&{} 0&{} 0 \end{array} \right] $$

(ii)

$$ x(m, n)=\left[ \begin{array}{l@{\quad }l@{\quad }l@{\quad }l} 0&{} 1&{} 1&{} 0\\ 0&{} 0&{} 1&{} 0\\ 0&{} 0&{} 0&{} 0\\ 0&{} 0&{} 0&{} 0 \end{array} \right] $$

(iii)

$$ x(m, n)=\left[ \begin{array}{l@{\quad }l@{\quad }l@{\quad }l} 1&{} 0&{} 1&{} 0\\ 1&{} 1&{} 1&{} 1\\ 1&{} 1&{} 1&{} 0\\ 0&{} 1&{} 1&{} 0 \end{array} \right] $$

8.3 Find the opening of x(m, n) and h(m, n).

$$ h(m, n)=\left[ \begin{array}{l@{\quad }l@{\quad }l} 0&{} 1&{} 0\\ 1&{} {\varvec{1}}&{} 1\\ 0&{} 1&{} 0 \end{array} \right] $$

(i)

$$ x(m, n)=\left[ \begin{array}{l@{\quad }l@{\quad }l@{\quad }l} 1&{} 1&{} 1&{} 0\\ 1&{} 1&{} 1&{} 1\\ 1&{} 1&{} 1&{} 1\\ 1&{} 1&{} 1&{} 0 \end{array} \right] $$

(ii)

$$ x(m, n)=\left[ \begin{array}{l@{\quad }l@{\quad }l@{\quad }l} 0&{} 1&{} 0&{} 0\\ 0&{} 1&{} 1&{} 1\\ 0&{} 0&{} 1&{} 1\\ 0&{} 0&{} 1&{} 1 \end{array} \right] $$

(iii)

$$ x(m, n)=\left[ \begin{array}{l@{\quad }l@{\quad }l@{\quad }l} 0&{} 1&{} 1&{} 0\\ 0&{} 1&{} 1&{} 0\\ 0&{} 0&{} 1&{} 1\\ 1&{} 0&{} 0&{} 1 \end{array} \right] $$

8.4 Find the closing of x(m, n) and h(m, n).

$$ h(m, n)=\left[ \begin{array}{l@{\quad }l@{\quad }l} 1&{} 0&{} 1\\ 0&{} {\varvec{1}}&{} 0\\ 0&{} 1&{} 1 \end{array} \right] $$

Verify the output using the equivalent expression in terms of the opening operation.

(i)

$$ x(m, n)=\left[ \begin{array}{l@{\quad }l@{\quad }l@{\quad }l} 0&{} 1&{} 1&{} 1\\ 0&{} 1&{} 1&{} 1\\ 0&{} 0&{} 1&{} 1\\ 0&{} 0&{} 0&{} 1 \end{array} \right] $$

(ii)

$$ x(m, n)=\left[ \begin{array}{l@{\quad }l@{\quad }l@{\quad }l} 0&{} 0&{} 1&{} 1\\ 0&{} 0&{} 1&{} 1\\ 1&{} 0&{} 0&{} 1\\ 1&{} 0&{} 0&{} 0 \end{array} \right] $$

(iii)

$$ x(m, n)=\left[ \begin{array}{l@{\quad }l@{\quad }l@{\quad }l} 1&{} 0&{} 1&{} 0\\ 1&{} 0&{} 1&{} 0\\ 1&{} 1&{} 1&{} 0\\ 0&{} 1&{} 1&{} 0 \end{array} \right] $$

8.5 Find the hit-and-miss transformation of x(m, n) and \(h_{h}(m, n)\) and \(h_{ms}(m, n)\).

$$ h_{h}(m, n)=\left[ \begin{array}{l@{\quad }l@{\quad }l} 1&{} 0&{} 1\\ 0&{} {\varvec{0}}&{} 0\\ 0&{} 0&{} 0 \end{array} \right] \quad h_{ms}(m, n)=\left[ \begin{array}{l@{\quad }l@{\quad }l} 0&{} 0&{} 0\\ 0&{} {\varvec{0}}&{} 0\\ 1&{} 0&{} 1 \end{array} \right] $$

* (i)

$$ x(m, n)=\left[ \begin{array}{l@{\quad }l@{\quad }l@{\quad }l@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} 0&{} 1&{} 0\\ 1&{} 1&{} 1&{} 0&{} 0&{} 0&{} 1&{} 1\\ 1&{} 1&{} 1&{} 0&{} 0&{} 0&{} 0&{} 1\\ 1&{} 1&{} 1&{} 1&{} 0&{} 0&{} 0&{} 1 \end{array} \right] $$

8.6 Find the thinned version of x(m, n).

(i)

$$ x(m, n)=\left[ \begin{array}{l@{\quad }l@{\quad }l@{\quad }l@{\quad }l@{\quad }l@{\quad }l@{\quad }l} 0&{} 0&{} 0&{} 0&{} 0&{} 0&{} 0&{} 0\\ 0&{} 0&{} 0&{} 0&{} 0&{} 0&{} 0&{} 0\\ 0&{} 1&{} 1&{} 1&{} 1&{} 1&{} 0&{} 0\\ 0&{} 1&{} 1&{} 1&{} 1&{} 1&{} 0&{} 0\\ 0&{} 1&{} 1&{} 1&{} 1&{} 1&{} 0&{} 0\\ 0&{} 0&{} 0&{} 0&{} 0&{} 0&{} 0&{} 0\\ 0&{} 0&{} 0&{} 0&{} 0&{} 0&{} 0&{} 0\\ 0&{} 0&{} 0&{} 0&{} 0&{} 0&{} 0&{} 0 \end{array} \right] $$

* (ii)

$$ x(m, n)=\left[ \begin{array}{l@{\quad }l@{\quad }l@{\quad }l@{\quad }l@{\quad }l@{\quad }l@{\quad }l} 1&{} 1&{} 1&{} 0&{} 0&{} 0&{} 0&{} 0\\ 1&{} 1&{} 1&{} 1&{} 0&{} 0&{} 0&{} 0\\ 1&{} 1&{} 1&{} 1&{} 1&{} 0&{} 0&{} 0\\ 0&{} 1&{} 1&{} 1&{} 1&{} 1&{} 0&{} 0\\ 0&{} 0&{} 1&{} 1&{} 1&{} 1&{} 1&{} 0\\ 0&{} 0&{} 0&{} 1&{} 1&{} 1&{} 1&{} 1\\ 0&{} 0&{} 0&{} 0&{} 1&{} 1&{} 1&{} 1\\ 0&{} 0&{} 0&{} 0&{} 0&{} 1&{} 1&{} 1 \end{array} \right] $$

(iii)

$$ x(m, n)=\left[ \begin{array}{l@{\quad }l@{\quad }l@{\quad }l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} 0&{} 0&{} 0&{} 0&{} 1&{} 1&{} 1\\ 0&{} 0&{} 0&{} 0&{} 0&{} 0&{} 1&{} 1\\ 0&{} 0&{} 0&{} 0&{} 0&{} 0&{} 0&{} 1\\ 0&{} 0&{} 0&{} 0&{} 0&{} 0&{} 0&{} 0 \end{array} \right] $$

* (iii)

$$ x(m, n)=\left[ \begin{array}{l@{\quad }l@{\quad }l@{\quad }l@{\quad }l@{\quad }l@{\quad }l@{\quad }l} 1&{} 1&{} 1&{} 0&{} 0&{} 0&{} 0&{} 0\\ 1&{} 1&{} 1&{} 1&{} 0&{} 0&{} 0&{} 0\\ 1&{} 1&{} 1&{} 1&{} 1&{} 0&{} 0&{} 0\\ 0&{} 1&{} 1&{} 1&{} 1&{} 1&{} 0&{} 0\\ 0&{} 0&{} 1&{} 1&{} 1&{} 1&{} 1&{} 0\\ 0&{} 0&{} 0&{} 1&{} 1&{} 1&{} 1&{} 1\\ 0&{} 0&{} 0&{} 0&{} 1&{} 1&{} 1&{} 1\\ 0&{} 0&{} 0&{} 0&{} 0&{} 1&{} 1&{} 1 \end{array} \right] $$

8.8 Extract the boundary of x(m, n).

(i)

$$ x(m, n)=\left[ \begin{array}{l@{\quad }l@{\quad }l@{\quad }l@{\quad }l@{\quad }l@{\quad }l@{\quad }l} 0&{} 0&{} 0&{} 0&{} 0&{} 0&{} 0&{} 0\\ 0&{} 1&{} 1&{} 1&{} 1&{} 1&{} 0&{} 0\\ 0&{} 1&{} 1&{} 1&{} 1&{} 1&{} 0&{} 0\\ 0&{} 1&{} 1&{} 1&{} 1&{} 1&{} 0&{} 0\\ 0&{} 1&{} 1&{} 1&{} 1&{} 1&{} 0&{} 0\\ 0&{} 1&{} 1&{} 1&{} 1&{} 1&{} 0&{} 0\\ 0&{} 0&{} 0&{} 0&{} 0&{} 0&{} 0&{} 0\\ 0&{} 0&{} 0&{} 0&{} 0&{} 0&{} 0&{} 0 \end{array} \right] $$

* (ii)

$$ x(m, n)=\left[ \begin{array}{l@{\quad }l@{\quad }l@{\quad }l@{\quad }l@{\quad }l@{\quad }l@{\quad }l} 0&{} 0&{} 0&{} 0&{} 0&{} 0&{} 0&{} 0\\ 1&{} 0&{} 0&{} 0&{} 0&{} 0&{} 0&{} 0\\ 1&{} 1&{} 0&{} 0&{} 0&{} 0&{} 0&{} 0\\ 1&{} 1&{} 1&{} 0&{} 0&{} 0&{} 0&{} 0\\ 1&{} 1&{} 1&{} 1&{} 0&{} 0&{} 0&{} 0\\ 1&{} 1&{} 1&{} 1&{} 1&{} 0&{} 0&{} 0\\ 1&{} 1&{} 1&{} 1&{} 1&{} 1&{} 0&{} 0\\ 1&{} 1&{} 1&{} 1&{} 1&{} 1&{} 1&{} 0 \end{array} \right] $$

(iii)

$$ x(m, n)=\left[ \begin{array}{l@{\quad }l@{\quad }l@{\quad }l@{\quad }l@{\quad }l@{\quad }l@{\quad }l} 1&{} 1&{} 1&{} 1&{} 1&{} 0&{} 0&{} 0\\ 1&{} 1&{} 1&{} 1&{} 1&{} 0&{} 0&{} 0\\ 1&{} 1&{} 1&{} 1&{} 1&{} 0&{} 0&{} 0\\ 1&{} 1&{} 1&{} 1&{} 1&{} 0&{} 0&{} 0\\ 1&{} 1&{} 1&{} 1&{} 1&{} 0&{} 0&{} 0\\ 1&{} 1&{} 1&{} 1&{} 1&{} 0&{} 0&{} 0\\ 1&{} 1&{} 1&{} 1&{} 1&{} 0&{} 0&{} 0\\ 1&{} 1&{} 1&{} 1&{} 1&{} 0&{} 0&{} 0 \end{array} \right] $$

Rights and permissions

Reprints and permissions

Copyright information

© 2017 Springer Nature Singapore Pte Ltd.

About this chapter

Cite this chapter

Sundararajan, D. (2017). Morphological Image Processing. In: Digital Image Processing. Springer, Singapore. https://doi.org/10.1007/978-981-10-6113-4_8

Download citation

  • DOI: https://doi.org/10.1007/978-981-10-6113-4_8

  • Published:

  • Publisher Name: Springer, Singapore

  • Print ISBN: 978-981-10-6112-7

  • Online ISBN: 978-981-10-6113-4

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics