BUILT-IN MATHEMATICA SYMBOL

# HitMissTransform

HitMissTransform[image, ker]
gives the hit-and-miss transform of image with respect to the composite structuring element ker.

HitMissTransform[image, {ker1, ker2, ...}]
gives the union of the hit-and-miss transforms for all the structuring elements .

HitMissTransform[image, {ker1, ker2, ...}, t]
treats values above t as foreground.

## Details and OptionsDetails and Options

• HitMissTransform works with binary, grayscale, and other images.
• The composite structuring element ker is a matrix containing , , and elements, with elements representing foreground and elements representing background.
• HitMissTransform automatically adds zeros to structuring elements so that they have odd dimensions.
• HitMissTransform works with Image3D objects.

## ExamplesExamplesopen allclose all

### Basic Examples (3)Basic Examples (3)

Find all foreground pixels that are below a background pixel:

 Out[1]=

Find bottom-right corners:

 Out[1]=

Find all corners by specifying four structuring elements:

 Out[2]=

Find the larger disk:

 Out[1]=