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
Text
Wolfram Research (2008), HitMissTransform, Wolfram Language function, https://reference.wolfram.com/language/ref/HitMissTransform.html (updated 2012).
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