Title: SEMINAR SERIES ON ADVANCED MEDICAL IMAGE PROCESSING7 Mathematical Morphology I
1SEMINAR SERIES ONADVANCED MEDICAL IMAGE
PROCESSING(7) Mathematical Morphology (I)
- LIXU GU
- Robarts Research Institute
- London, Ontario, Canada
- September 6, 2002
2 Road Map
- Mathematical Morphology
- Binary Morphology
- Binary Operations Dilation, Erosion, Opening,
Closing, Hit-and-Miss - Shape Feature Detection
- Pattern Spectrum
- Recursive Dilation and Erosion
- Distance Transform and Skeleton
- Applications
3Mathematical Morphology
- A methodology for the quantitative analysis of
spatial structures which was initiated by
G.Matheron and J.Serra at Paris School of Mines. - It aims at the analyzing the shape and the forms
of the objects. - Its mathematical origins stem from set theory,
topology, lattice algebra, random functions,
stochastic geometry, etc. - Extremely useful, not yet often used
4Uses of Mathematical Morphology
- image enhancement
- image segmentation
- image restoration
- edge detection
- texture analysis
- feature generation
- skeletonization
- shape analysis
- image compression
- component analysis
- curve filling
- general thinning
- feature detection
- noise reduction
5Reference
- Homepage
- Center of Mathematical Morphology
(http//cmm.ensmp.fr/index_eng.html) at Ecole des
Mines de Paris. - Morphology Digest (http//www.cwi.nl/projects/morp
hology) edited by Henk Heijmans, Centre for
Mathematics and Computer Science, Amsterdam, The
Netherlands - Book
- Image analysis and mathematical morphology by
J. Serra (call TA1632.S47 v.2 1988 )
6Structuring Element
- Structuring element (SE) is also called the
kernel, but I reserve this term for the similar
objects used in convolutions - Origin the SE is typically translated to each
pixel position in the image based on the origin.
7Dilation
- Binary Dilation also called Minkowski addition.
An image F dilated by a SE K is defined as - It can be regarded as an expansion operation.
8Properties of Dilation
- Commutative
- Associative
- Translation Invariance
- Increasing
- Decomposition
- Multi-Dilations
9Erosion
- Binary Erosion also called Minkowski
subtraction. An image F eroded by a SE K is
defined as -
- It can be regarded as an shrinking operation
10Properties of Erosion
- Non-Commutative
- Non-Inverses
- Translation Invariance
- Increasing in A
- Decreasing in B
- Decomposition
11Opening
- Binary Opening An image F opened by a SE K is
defined as -
- It can remove the small regions which are smaller
than the structuring element
12Properties of Opening
- Translation
- Antiextensivity
- Increasing monotonicity
- Idempotence
13Closing
- Binary Closing An image F closed by a SE K is
defined as -
- It can fill the small holes which are smaller
than the structuring element
14Properties of Closing
- Translation
- Extensivity
- Increasing monotonicity
- Idempotence
15Hit-and-Miss
- Hit-and-miss A morphological shape detector.
- F ? K (F ? K1) ? (Fc ? K2)c,
- K1 ? K2 ?, K1 ?K, K2 ? K
- can be used to look for particular patterns of
foreground and background pixels in an image
?
K1
K2
16Shape Feature Detection
- Binary Opening is a powerful shape detector by
using different structuring elements - Example1 Distinguish circles and lines
? r3X9KSquare
? r5Kdisk
? r9X3KSquare
17Shape Feature Detection
- Example2 Decompose a printed circuit board in
its main parts.
Detecting holes
Detecting square islands
Detecting circle islands
18Shape Feature Detection
Detecting Rectangular islands
Detecting Thin connections
Detecting Thick connections
19Operators In Software
- VTK
- vtkImageDilateErode3D()
- vtkImageOpenClose3D()
- ITK
- itkBinaryDilateImageFilter()
- itkBinaryErodeImageFilter()
- MATLAB
- mmdil(), mmero(), mmopen(),mmclose(), mmse2hmt()
20Pattern Spectrum
- Pattern Spectrum is known as granulometric size
density. It is employed to measure the size
distribution of an object. - Pattern spectrum PSrik(F) of a set F in terms of
SE rik is defined as -
Where, Card(F) denotes the cardinality of set F
21Pattern Spectrum
- Pattern spectrum not only can detect the size of
parts in an image, but also can analyze the
shapes of them.
22Pattern Spectrum
- Another example size analysis
Organ mass
Pattern Spectrum analysis
23Recursive Dilation
- Recursive Dilation is defined as
-
- where, i is defined as scalar factor and K as
its base. - Recursive Dilation is employed to compose SE
series in the same shape but different sizes.
24Recursive Dilation
25Recursive Erosion
- Recursive Erosion is also called successive
erosion which is defined as -
- When performing recursive erosions of an object,
its components are progressively shrunk until
completely disappeared. - Useful for distance transform and segmentation
26Recursive Erosion
27Distance Transform
- The distance transform is an operator normally
only applied to binary images. - The result of the transform is a greylevel image
showing the distance to the closest boundary from
each point.
28Distance Metrics
- Euclidean Distance
- City Block Distance (N8)
- Chessboard Distance (N4)
Chessboard metric
Original
Euclidean metric
City block metric
29Distance Transform
- Perform multiple recursive erosions with a
suitable SE until all foreground regions of the
image have been eroded away. - Label each pixel with the number of erosions that
had been performed before it disappeared, then
get the distance transform result. - Suitable SE for different distance metrics
- A square SE gives the chessboard distance
transform - A cross shaped SE gives the city block distance
transform - A disc shaped SE gives the Euclidean distance
transform. -
30Distance Transform
31Skeleton
- Skeleton is a process for reducing foreground
regions in a binary image - preserves the topology (extent and connectivity)
of the original region while throwing away most
of the original foreground pixels
- locus of centers of bi-tangent circles that fit
entirely within the foreground region
32Skeleton
- Skeleton subset Si(F) is defined as
- where n is the largest value of i before the set
Si(F) becomes empty. SE K is chosen to
approximate a disc - Skeleton is then the union of the skeleton
subsets
33Skeleton
- Reconstruction the original object can be
reconstructed by given knowledge of the skeleton
subsets Si(F), the SE K, and i - Examples of skeleton
34Skeleton
Skeleton
- Examples of skeleton (continue)
35VTK/ITK/MATLAB
- VTK
- vtkImageEuclideanDistance ()
- vtkImageCityBlockDistance ()
- vtkImageSkeleton2D ()
- ITK
- itkEuclideanDistance()
- itkDistanceMetric()
- Matlab
- mmpatspec - Pattern spectrum
- mmdist - Distance transform
- mmskelm - Morphological skeleton
- mmskelmrec - Morphological skeleton reconstruction
36Application 1
- Detect the teeth of a gear
Subtraction
labeling
37Application 2 Grid identification from Biochip
image
Pattern Spectrum Spot size 5 (pixel)
Origin
Otsu threshold
enthopy threshold
38Application 2 Grid identification from Biochip
image
Morphological noise reduction
Grid identified with noise
Grid identified without noise
Grid identification final result
39Application 3
- Segment vertibra and ribs
40Discussion