MorphologicalPerimeter

MorphologicalPerimeter[image]

picks out the morphological perimeter of regions of foreground in image.

MorphologicalPerimeter[image,t]

treats values above t as foreground.

Details and Options

  • Morphological perimeter is defined to consist of foreground pixels that are directly adjacent to the background.
  • MorphologicalPerimeter works with arbitrary 2D and 3D images, as well as real arrays of any rank.
  • MorphologicalPerimeter[image,] yields a binary image in which pixels considered to be on the morphological perimeter have value 1 and others have value 0.
  • MorphologicalPerimeter[image] is equivalent to MorphologicalPerimeter[image,0].
  • The following options can be specified:
  • CornerNeighbors Truewhether to include corner neighbors
    Padding 0padding method

Examples

open allclose all

Basic Examples  (2)

Find the boundary of foreground objects:

Specify an intensity threshold:

Options  (3)

CornerNeighbors  (2)

In 2D, by default, all 8 neighbors are visited to see if a pixel is connected to the background:

Return a 4-connected perimeter using CornerNeighbors->False:

In 3D, by default, all 26 neighbors are visited to see if a pixel is connected to the background:

Use CornerNeighbors->False to return a 6-connected perimeter:

Padding  (1)

By default, zero padding is assumed:

Specify a different padding:

Interactive Examples  (1)

Find boundaries of 3D objects:

Wolfram Research (2008), MorphologicalPerimeter, Wolfram Language function, https://reference.wolfram.com/language/ref/MorphologicalPerimeter.html (updated 2012).

Text

Wolfram Research (2008), MorphologicalPerimeter, Wolfram Language function, https://reference.wolfram.com/language/ref/MorphologicalPerimeter.html (updated 2012).

CMS

Wolfram Language. 2008. "MorphologicalPerimeter." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2012. https://reference.wolfram.com/language/ref/MorphologicalPerimeter.html.

APA

Wolfram Language. (2008). MorphologicalPerimeter. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/MorphologicalPerimeter.html

BibTeX

@misc{reference.wolfram_2024_morphologicalperimeter, author="Wolfram Research", title="{MorphologicalPerimeter}", year="2012", howpublished="\url{https://reference.wolfram.com/language/ref/MorphologicalPerimeter.html}", note=[Accessed: 11-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_morphologicalperimeter, organization={Wolfram Research}, title={MorphologicalPerimeter}, year={2012}, url={https://reference.wolfram.com/language/ref/MorphologicalPerimeter.html}, note=[Accessed: 11-December-2024 ]}