offsetstrel
Morphological offset structuring element
Description
An offsetstrel
object represents a nonflat morphological
structuring element, which is an essential part of
morphological dilation and erosion operations.
A nonflat structuring element is a matrix that identifies the pixel in the image being
processed and defines the neighborhood used in the processing of that pixel. A nonflat
structuring element contains finite values used as additive offsets in the morphological
computation. The center pixel of the matrix, called the origin,
identifies the pixel in the image that is being processed. Pixels in the neighborhood
with the value -Inf
are not used in the computation.
You can only use offsetstrel
objects for morphological operations
on grayscale images.
To create a flat structuring element, use strel
.
Creation
Description
SE = offsetstrel(
creates
a nonflat structuring element with the additive offset specified in the
matrix offset
)offset
.
SE = offsetstrel('ball',
creates a nonflat ball-shaped structuring element, where
r
,h
,n
)n
specifies the number of nonflat, line-shaped
structuring elements that offsetstrel
uses to approximate
the shape. Morphological operations using ball approximations run much
faster when you specify a value for n
greater than
0
.
Input Arguments
Properties
Object Functions
Examples
Extended Capabilities
Version History
Introduced before R2006a