Escolar Documentos
Profissional Documentos
Cultura Documentos
Overview
Morphological image processing is a tool for extracting or modifying information
on the shape and structure of objects within an image. Morphological operators,
such as dilation, erosion and skeletonization, are particularly useful for the
analysis of binary images, although they can be extended for use with grayscale
images. Morphological operators are non-linear, and common usages include
filtering, edge detection, feature detection, counting objects in an image, image
segmentation, noise reduction, and finding the mid-line of an object.
(9.1)
A diagonal step has a distance of two since it requires a horizontal and a vertical
step. Equal distances from a certain position would form diamonds centered on
it. In an 8-connected neighborhood, N8, the distance is known as the Chebyshev
or chessboard distance, by analogy with the moves available to a king in chess.
The distance in an 8-connected neighborhood is given by
d8 ( x, y ) max x 1 y 1 , x 2 y 2
(9.2)
141
A diagonal step has a distance of one, the same as a horizontal or vertical step.
Equal distances from a certain position would form squares centered on it.
Neither is the same as Euclidean distance, which is given by
(9.3)
d( x,y ) ( x 1 y 1 ) 2 ( x 2 y 2 ) 2
A diagonal step is given by a distance of 1/2, and equal distances from a certain
position form circles centered on it. In physical space the Euclidean distance is
the most natural distance, because the length of a rigid body does not change
with rotation. Alternating the two metrics (N 4-N8 or N8-N4) is an approximation to
Euclidean distance.
142
143