HitMissTransform

HitMissTransform[image,ker]

gives the hit-or-miss transform of image with respect to the composite structuring element ker.

HitMissTransform[image,{ker1,ker2,}]

gives the union of the hit-or-miss transforms for all the structuring elements keri.

HitMissTransform[image,{ker1,ker2,},t]

treats values above t as foreground.

Details and Options

  • HitMissTransform is an image morphology operation that is commonly used to detect positions where a specific pattern such as a corner or an endpoint occurs in the image.
  • HitMissTransform works with arbitrary 2D and 3D images.
  • The composite structuring element ker is a matrix containing (foreground), (background), and (don't care) elements.
  • The structuring element is automatically padded with zeros to have odd dimensions.
  • HitMissTransform takes a Padding option. The default setting is Padding->1.

Examples

Basic Examples  (4)

Find all foreground pixels that are below a background pixel:

Find bottom-right corners:

Find all corners by specifying four structuring elements:

Find the larger disks:

Find the larger balls:

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

Text

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

BibTeX

@misc{reference.wolfram_2021_hitmisstransform, author="Wolfram Research", title="{HitMissTransform}", year="2012", howpublished="\url{https://reference.wolfram.com/language/ref/HitMissTransform.html}", note=[Accessed: 29-July-2021 ]}

BibLaTeX

@online{reference.wolfram_2021_hitmisstransform, organization={Wolfram Research}, title={HitMissTransform}, year={2012}, url={https://reference.wolfram.com/language/ref/HitMissTransform.html}, note=[Accessed: 29-July-2021 ]}

CMS

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

APA

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