bwhitmiss
Binary hit-miss operation
Description
performs the hit-miss operation defined by the structuring elements
BW2
= bwhitmiss(BW
,SE1
,SE2
)SE1
and SE2
. The hit-miss operation
preserves pixels in binary image BW
whose neighborhoods match
the shape of SE1
and don't match the shape of
SE2
.
This syntax is equivalent to imerode(BW,SE1) &
imerode(~BW,SE2)
.
performs the hit-miss operation defined in terms of a single array, called an
interval. An interval is an array whose elements are
BW2
= bwhitmiss(BW
,interval
)1
, 0
, or -1
. The
1
-valued elements make up the domain of
SE1
, the -1
-valued elements make up the
domain of SE2
, and the 0
-valued elements are
ignored.
This syntax is equivalent to
bwhitmiss(BW,interval==1,interval==-1)
.
Examples
Input Arguments
Output Arguments
Version History
Introduced before R2006a