Rochester Institute of Technology
RIT Scholar Works
Theses
Thesis/Dissertation Collections
1994
Multivariate granulometry and its application to
texture segementation
Mark Rzadca
Follow this and additional works at:
http://scholarworks.rit.edu/theses
This Thesis is brought to you for free and open access by the Thesis/Dissertation Collections at RIT Scholar Works. It has been accepted for inclusion
in Theses by an authorized administrator of RIT Scholar Works. For more information, please contact
.
Recommended Citation
MULTIVARIATE GRANULOMETRY
AND ITS
APPLICATION TO TEXTURE SEGMENTATION
by
Mark
C.
Rzadca
B.S.E.-E.E. University of Michigan
(1980)
A thesis submitted in partial fulfillment of the
requirements for the degree of
Master of Science in the
Center for Imaging Science at
Rochester Institute of Technology
November 1994
Signature of the Author
_
Accepted by
Dana G. Marsh
CENTER FOR IMAGING SCIENCE
ROCHESTER INSTITUTE OF TECHNOLOGY
ROCHESTER, NEW YORK
CERTIFICATE OF APPROVAL
M.S. DEGREE THESIS
The M.S. Degree Thesis of Mark C. Rzadca
has been examined and approved by the
thesis committee as satisfactory for the
thesis requirement for the
Master of Science degree
Dr. Edward R. Dougherty
Dr. Pantazis Mouroulis
Dr. Robert Loce
Date
ii
THESIS RELEASE PERMISSION
CENTER FOR IMAGING SCIENCE
ROCHESTER INSTITUTE OF TECHNOLOGY
MULTIVARIATE GRANULOMETRY
AND ITS
APPLICATION TO TEXTURE SEGMENTATION
I, Mark C. Rzadca, hereby grant permission to the Wallace Memorial Library of R.I.
T.
to reproduce my thesis in whole or in part. Any reproduction will not be for commercial
use or profit.
Signature:
_
/1-
7 - 9
~I
Date:
Abstract
Morphological
granulometrieswere conceivedby
Matheron for
thepurpose ofanalyzing
images
withrespectto shapeand size ofelementary
granular components.In
particular,
granulometricanalysis
has
proven usefulin
theanalysis andidentification
oftextures.Morphological
granulometriesare
filter
sequencesthatmeasuretheresidual area after eachiteration
ofthefilter.
Every
component ofthe
filter's structuring
elementsetis dilated for
eachiteration
ofthefilter
andthearearesulting from
theunion ofthemorphological openings oftheoriginal
image
producesafunction
of a singlevariable, theiteration index. If
the
n components ofthe
structuring
elementset are allowedto takeon valuesindependent
of eachother,
thearea aftertheopening for
all combinations ofstructuring
elementsizeprovides an n
dimensional
representation oftheimage
with area afteropening
afunction
ofallthevarious sizes ofthe
different structuring
elements results.Just
astraditionalgranulometries canbe
manipulatedto providea signature useful
in
texturediscrimination
thendimensional
representationdoes
soaswell,althoughthe traditionalmoment analysistechnique
is
not applicablebecause
themultivariategranulometry does
notdefine
aprobability
density
function.
Instead
an orthonormal projection methodis
usedtorepresentthe transformed
image
by
anarbitrary
number ofFourier
coefficients.The Fourier
coefficients providea
feature
spacefrom
whichanumberoffeatures
canbe
selectedfor
thepurpose oftexture
discrimination.
For
this research,Fourier
coefficients(sequency
constants)
ofaWalsh
representationare usedtocharacterizethe
image
texture.A feature
selectorusing
theMahalanobis-Like
probabilistic
distance
measure providesamechanismfor reducing
thefeature
settoamathematically
tractablenumber of
features. A Gaussi;ui
maximumlikelih<x)d
classifieris
usedtoidentify
unknownsamples
from
afinite
set oftexturepatterns.The
classifier produces good results whenclassifying 12
textures
in
theabsence ofimage
noise.Results
whentheimages
are corrupted with10%
point noise arepoor unlesstheclassifier
is
trainedin
thepresence ofthenoise.The
classifier also exhibitstheability
todistinguish reasonably
wellthepresence or absenceof pointnoise,within a giventexture,
whentheAcknowledgments
I
wouldlike
to thank
Professor Edward R.
Dougherty
for his
guidanceand advice whichmade
this
research possible.I
wouldlike
to thank
Professor Pantazis Mouroulis
andDr.
Robert Loce for
their
participation on
my
committee andfor
suggestions
that
madethis thesis
areality.I
wouldlike
to thank
David R.
Smith,
Elly
Majors
andJohn
Rueping
for
their
This
thesis
is dedicated
to
my
wife,
Mary
Jo,
andmy
children,
Table
of
Contents
Abstract
iv
Acknowledgments
vList
ofFigures
viii1.0 Background
1
1.1
Texture
1
1.2 Morphological
Granulometries
2
1.3
Walsh
functions
:
7
1.4
Image Segmentation
andFeature
Extraction
12
1.5 Image Classification
14
1.6
Optimal Feature Selection
16
2.0 Statement
of work22
2.1 Multivariate
Granulometry
22
2.2 Texture Images
30
2.3 Feature Generation
40
2.4 Selection
ofGranulomere
Features
44
2.5
Classifier
Accuracy
Tests
46
3.0 Results
47
3.1 Performance
ofClassifier
onNoise
Free
Images
47
3.2
Performance
ofClassifier
in
the
Presence
ofNoise
50
4.0 Conclusions
andRecommendations
53
4.1
General Conclusions
53
4.2
Recommendations
for Further Research
55
List
of
Figures
Figure 1: Image S
andstructuring
elementE
2
Figure 2:
Opening
ofimage S
by
structuring
elementE
3
Figure 3: The first
four
Rademacher functions
8
Figure 4: The
first
eightWalsh
functions
9
Figure 5: Several
two
dimensional
Walsh
functions
11
Figure 6: Distribution
offeature
for
two
classes15
Figure 7: Effect
ofvarianceonfeature
separation!
17
Figure 8: Illustration
ofclass separations20
Figure 9: Image S
24
Figure 10: Basis
setB
24
Figure 11: Result
ofmultivariategranulometry
onimage S
25
Figure 12: Texons
Tl
andT2
27
Figure 13: Results
ofmultivariategranulometry
ontexturesbased
ontexonsTl
andT2
27
Figure 14:
Results
ofgranulometry
based
on twosingle-elementbasis
sets28
Figure 15(a-c):
Gray-scale
texture
images
31
Figure
15(e-f):
Gray-scale
texture
images
-32
Figure
15(g-i):
Gray-scale
textureimages
33
Figure 15(j-l): Gray-scale
textureimages
34
Figure
16(a-c):
Binary
textureimages
36
Figure
16(d-f):
Binary
textureimages
37
Figure 16(g-i):
Binary
textureimages
38
Figure 16(j-l):
Binary
textureimages
39
Figure 17: Classification
accuracy
of12
classestexture
set48
Figure
18:
Classification
accuracy
of8
classtextureset49
Figure 19: Classification
of noisecorruptedimages using
uncorruptedimage
classifier50
Figure 20: Classification
accuracy
of16 image
class pool51
Figure
21
:Classification accuracy
of8
classes of clean andnoisy,
classifiertraining
based
onpooling
of clean andnoisy image features
52
1.0 Background
The
aim ofthis
research
is
to
introduce
a modifiedform
ofthe
morphologicalgranulometry,
anddemonstrate
the
applicability
ofthe
newform
to the
problem oftexture
segmentation.
This
newform,
the
multivariategranulometry,
is introduced in
section
2,
Statement
Of
Work.
This
background
section will presentthe
fundamental
concepts
andtechniques
whichprovide
the tools
neededto
apply
the
multivariategranulometry
to the
problem oftexture
segmentation
as well as adefinition
ofthe
traditional
morphological
granulometry,
whichserves
asthe
basis
for
the
multivariategranulometry.
1.1
Texture
Although
there
is
noformal
imaging
definition
oftexture, it is
nonetheless animportant
areadescriptor in image
analysis.The importance
oftexture
is
evidencedby
its
applicationin
such wideranging
applications
as medicalimaging,
remotesensing
and
computer
vision.In
medicalimaging,
Chen
et al[1]
have
usedtexture
as a means ofdetecting
osteoporosis when usedin
conjunction with magnetic resonanceimaging.
Haralick
andAnderson
[2]
demonstrated
how
texture
relatesto
land-use
categories
whileBlostien
andAhuja
[3]
proposedusing
texture
information in extracting information
regarding
the
shapes and surfaces of solidsfrom images.
Informally,
weassociatetexture
with our perception ofsmoothness,
roughness
orregularity.
There
arethree
principal approachesto
describe
texture:
statistical,
spectralandstructural
[4]. Each
ofthese
approacheshave
associated methodologiesfor
texture
description. The
focus
ofthis
researchis
on morphologicalgranulometries,
which are1.2
Morphological Granulometries
Morphological
granulometries
were conceivedby
Matheron
[5]
as a methodfor
analyzing
images
through the
use of shape primitives of various sizes.Granulometries
use morphological openings as afitting
operationto
removeimage
structurethat
does
not conformto the
shape
ofthe
primitive.
By
analyzing
the
area ofthe
image
remaining
after
removal ofnon-conforming image
area,
inferences
canbe
maderegarding
the
makeup
ofthe
originalimage.
Openings
The basic
operation upon whichthe
morphologicalgranulometry
is based is
the
opening.The opening
of abinary
image
5
by
abinary
structuring
elementE is defined
to
be
the
union of all
translations
ofstructuring
elementE
that
are subsets ofimage S
Open(S,E)
=Kj{B+
x:B+
x^S)
As
anexample considerimage S
andstructuring
elementE
shownin Figure 1
Structuring
Element E
Image
* *S
* * * * * * * * *1
*1
* *1
1
*1
1
* * * * * * * * * *1
1
1
1
1
1
* ** * * * * * *
1
1
**
1
* * * *]
* * ** * *
1
* * + * * **
1
+ * * * * * * *1
1
*1
* *1
* * * * * *1
*1
1
*1
1
*1
1
*1
1
* * * * * * * * * * * * * +1
1
1
1
1
1
Binary
images
consist
ofones
(activated
pixels)
and non-activatedpixels,
represented
by
asterisks
in
image
S. The image
ofS
openedby
E
consists of alltranslations
ofE for
which allpixels of
E
fit
over activatedpixels ofS. Figure 2
showsS
opened
by
E.
Open(S,E)
* * * + * * * * * *
*
1
1
1
* * * * * **
1
1
1
* * * * * ** * * * * * * * * *
* * * + * * * * * *
* * * * * * * * * *
* * * + + * * * * *
* * * * * * * * * *
* * + * *
1
1
1
1
** * * + *
1
1
1
1
** * + * * * * * * +
* * * * * * * * * *
Figure 2:
Opening
ofimage S
by
structuring
elementE
In
the
upperleft
ofimage S
the
group
of pixelstwo
high
andthree
wideremainsin
the
opening because E fits exactly
overthat
group.Likewise,
the
group in
the
lower
rightremains
because E
fits
overthose
pixels.All
isolated
pixelshave been
eliminated,
aswell as
the
group
offour high
by
two
widein
the
upperright andthe
crossin
the
lower
left.
This
simple exampledemonstrates
how
the
opening
canbe
usedto
measurethat
portion of an
image
that
does
not conformto the
shape of astructuring
element.The
original
image
S has
an area ofthirty
one whilethe
image
ofS
opened
by
E has
an areaof
fourteen. Therefore S
containedthirty
one
pixels minusfourteen
pixels,
orseventeen
Opening
as aconstruction
of erosion/dilationWhile
the
description
ofthe
morphologicalopening
as afitting
operationallowseasy
visualization
ofthe
opening
operation,
it does
not provideinsight
to
a reasonablealgorithm
for
implementation
ofthe
operation on adigital
computer.In
this
context amore
usefulequivalent
formulation
is
the
expression of anopening
as aniteration
of anerosion
followed
by
dilation.
Open(S, E)
=dilate(erode(S,E), E)
The
erosion ofimage S
by
image E
canbe
representedmathematically
in
severalways.
Of
particularinterest is
the
definition
of erosion asthe
intersection
ofthe
translates
ofthe
input image
by
negatives of pointsin
the
structuring
element.erode(S,E)
=n{S-e:ee
E)
This
expressionfor
a morphologicalerosion,
in
terms
ofintersections
ofimage
translates that
aredefined
by
the
activated pixels ofthe
structuring
element,
lends itself
to
more straightforwardimplementation
ondigital
computers.Likewise,
morphologicaldilation
canbe defined in
terms
of unions ofimage
translates.
Again
the
translations
aredefined
by
the
activated pixels ofthe
structuring
element.This formulation
ofthe
dilation is
shownbelow.
dilate(S,E)
=u{S
+ e:eeE)
Granulometries
From
the
definition
of anopening it follows
that
for structuring
elements
E
andF,
if
Open{F,E)=F,
then
for any image
S,
Open(S,F)
is
a subimage ofOpen(S,E).
Open(F, E)
=F=>
Open(S,
Likewise,
for
anincreasing
series
ofstructuring
elements,
,,,,,,...
suchthat
Open(Ek+l
,Ek)=Ek+]
, animage
opened
by
such a sequence willform
adecreasing
sequence.
Open{EM
k
y=Ek+]
=*Open(S,Ek)rzOpen{S,Ek-i)c_cOpen{S,E\)
Counting
the
number of pixelsremaining
after eachsucceeding opening
resultsin
adecreasing
function
H^S),
suchthat
for
someK, ^^(5)=0,
for loK. The image
sequence{
Open(S,
E0
)
is
agranulometry
andthe
resulting function is
calledthe
sizedistribution.
The decrease in
the
area after eachiteration
ofthe
filter is indicative
ofthe
portion of
the
originalimage
that
does
notconformto the
shape andsize ofthe
structuring
element/..
Since
4*monotonically decreases
withk,
the
normalization of4*^(5)
is
aprobability distribution function. The
normalizationis 0/:(S)=1-4//:(5)/vI'q(5). Note
that
f)
may be
a single pixel sothat
^(S)
is
the
area ofthe
originalimage. The function
<Djt(S) is commonly
referredto
as a granulometric sizedistribution,
or morerecently, the
pattern spectrumof
the
image
with respectto
granulometry[6].Taking
the
discrete
derivative
ofQ>fc(S)
with respectto
it
yields adiscrete
probability
density
function
that
contains
information
onthe
particle sizedistribution
ofthe
originalimage. The
momentsof
the
probability distribution function (most notably
the mean,
variance andskewness)
have been
usedto
describe
texture
information [7].
In
the
abovediscussion
the
operation ofthe
granulometry has been described
as
though the
opening
operation werebased
on scaled copies of a singlestructuring
element
only,
andin
fact
this
is
oftenthe
case.However,
in
the
generaldefinition
of agranulometery
the
opening
operationis
performed onthe
image S
by
allthe
structuring
elements of a
structuring
elementcollection,
B.
For
the
generalcase, the
function
^(S)
is
the
area ofthe
unionof allthe
separate openings.In
the
generalcase
the
operation of
,
(5)
=Op<?n(S,
,
t)
u
Opi(.S,
2
k)u.
..uO/?en(S,
t
)
B
=1.3 Walsh
functions
Projection
methods
usesets
of orthogonalbasis functions
to
transform,
orproject,
functions between
coordinate systems.
Such
orthogonal series expansions provide seriescoefficients
that
canbe
usedto
construct
feature
vectorsto
serveas
descriptors
ofthe
function
[8].
These
series coefficients
arereferred-to
as
Fourier
coefficients orsequency
constants.
Fourier
coefficientdescriptors
of afunction
can provideinsight
asto the
composition
ofthe
originalfunction. For
example,
Fourier
coefficientsfrom
aDiscrete
Fourier Transform
(DFT)
provideinsight
regarding
the
frequency
compositionofthe
original
function. Other
transforms
providedescriptors
whichmay
notbe
asintuitive in
nature as
those
derived from
the
DFT. The Fourier
coefficientsderived
viathe
Walsh
Transform
arerepresentative
ofthe
composition ofthe
originalfunction
with respectto
the
Walsh
functions
which serve asthe
basis for
the transform.
For
the
purpose ofthis
research
the
Fourier
coefficients ofthe
Walsh
transform
canbe
thought
of asproviding
shape
descriptors
ofthe
multivariate granulometry.That
is,
the
derived Fourier
coefficients
will providedescription
ofthe
multivariategranulometry
shapein
terms
ofWalsh functions. These
shapedescriptors derived from
aWalsh
transform
ofthe
multivariate
granulometry
willbe
used asthe
basis for
the
feature
vectorto
be
usedfor
texture
classification.Walsh
functions define
a complete orthogonalbasis
set.Walsh functions
canbe
defined in
terms
of anotherorthonormal,
althoughincomplete
set ofbasis
functions
called
the
Rademacher
functions [9]. Rademacher functions
are square wavesdefined
onthe
interval
[0,1)
by
f
1
for
0
<
t
<1/2
1[-1
for
1/2
<
t
<1
r_At)
=The first four Rademacher
functions
areillustrated in Figure 3.
Walsh
functions
areexpressed
in
terms
ofthe
Rademacher
functions according
to
the
following
relationships:
%
(0
=ri+1
(0
x
r2+l (Ox.
..xrf
+1(r)
where n=2"'
+
2"2+.
..+2"'
and
n,
<w2
<...<,
Figure
4
illustrates
the
first
eightWalsh functions.
ro(,) 1 i 1
7
1/2 1 r2(0 1 1 -1 -1 1 1 -1 -1 1/4/
1 r ?0)1 : . .
1
-1
l/H
(
;
w =r 0 0
w =r
1 1 1 1 -1 -1 1 1 -1 -1
w =r
2 2
I
11w =r *r 3 1 2
1 -1 -1 . -1 1 -1 1 1
I
/
1 w 4 =r 3 -11 : ^ ~^ ~~
-1 1 -1 1 "1
|
1 w * =r *1
r
3
-1
1 - ",
-1 -1 1 -1 1 1 w 6 -r *r
2 3 1 w
= 7 r 1 r *r 2 3 -1 -1 -1 -1 1 1 ' . 1
1 1 -1
1
-1
-1 1 .
1 -1
Figure
4: The first
eight
Walsh functions
Given
fif),
a signaldefined
onthe
interval
[0,1),
let
a/, representthe
Fourier
1
at
=\f(t)-wk(t)dtwhere
wj^t)
is
the
itth Walsh
function.
The
term
a^
is
the
itth sequency
constant ofthe
Walsh
expansion of/(f). The
function
/(r)
is
approximatedby
the
following
expression:2"-l
/2.(o
=2>tw,(o
t=0
As
with other projection methodsthese
sequency
constants canbe
used asdescriptors
ofthe
originalfunction in
terms
ofthe
basis functions.
The
application of projection methods canbe
extendedto
functions
ofarbitrary
dimension. To illustrate
the point,
Walsh functions
are extendedto
two
dimensions
by
multiplying
all pairs offunctions
taken
from
two
separate one-dimensional systems.If
<Pi(0>
<p2(f),~.
is
a complete orthonormal system offunctions
onthe
interval
[a,
b]
andif
vj/;(.s),
\\f2(s),...
is
a complete orthonormal system offunctions
onthe
interval
[c,
d]
then
the
functions
cb
d)
<I> <t>d)
d)
11' 12' 21' 13' 22'
31'---where
form
a completeorthonormalsystem onthe
rectangle[a,b]x[c,d].
These function
areused
in
amannersimilarto
the
one-dimensional caseto
derive sequency
constants.<J>,
5^12
-1 1 S^23
V t -1 1 1 -1 6<*>2
1 -1 1 t s^3
1 -1 1 1
1 1
<J>
^23
1 1 1 1 1 1 -1 -1
-1 1 1 1
1 1 -1 -1
s
^32
-1 1 -1 1
1 1 -1 1 1 -1 1 -1
1 -1 1 1
1 1
Figure 5: Several
two
dimensional
Walsh
functions
The
extensionofsequency
constantsto
2 dimensions is
also straightforward asseen
in
the
equationd b
a,;
=\\f(x,y)tJ(x,y)dxdy
1.4
Image
Segmentation
and
Feature Extraction
Image
segmentation
is
aprocess
in
which animage is divided into
regionsthat
are
individually
homogeneous
in
some
property
orfeature. Image
segmentation
is
usedin
image
processing
to
help
isolate
objects
from background
or
to
differentiate
multipleobjects
orregions
in
ascene.
One
ofthe
simplest methodsfor
gray-scale
image
segmentation
is
amplitude
thresholding.
In
this technique the
gray level
of eachindividual
pixel
is
used
to
associate pixels
into
regions
with a singlegray level
or rangeof
gray
levels.
More
complex segmentation schemes
rely
onfeatures
extractedfrom
regions
surrounding
a pixelin
orderto
assignthe
pixelto
a region.Segmentation
oftexture
regionsrequires
the
use offeatures derived from
regionssurrounding
a pixelbecause
texture
is
not embodiedin
a single pixelbut is defined
over a region.Newell,
Dougherty
andPelz
[7]
segmented pixelsusing
features derived from
granulometric analysis
onthe
regionssurrounding
pixels ofinterest. These features
werestatistical moments of
the
pattern spectra(ref.
section1.2)
of severalgranulometries,
each
having
single componentstructuring
element sets.Granulometric
patternspectraare one-dimensional random
functions
that
indicate
the
relative area ofthe
image
conforming
to the
shape ofthe
basis
set as afunction
ofbasis
element size.Since
the
pattern spectra are random
functions,
the
statistical moments ofthe
spectra are randomvariables
[10]. The
statistical momentsdescribe
certain aspects ofthe
shape ofthe
pattern spectrum.
For
example, the
pattern spectrum meandescribes
the
center of massof
the
pattern spectrum whilethe
pattern spectrum variancedescribes
the
spread ofthe
pattern spectrum.
These features
provideadescription
of pattern spectrathat
corresponds
withourintuition
regarding
the
information
extracted via granulometricanalysis.
It
is
notnecessary,
however,
that the
descriptors
ofthe
granulometric resultsbe in
any way
intuitive;
any descriptors
that
extract adequateinformation
ofthe
form
of apattern spectrum can
be
usedto
classify
orsegmentpixelsbased
onthe
image
information
extracted
by
the granulometry.
Two
reasonsin
particularjustify
selecting
analternative to the
use
ofstatistical
moments
asdescriptors
ofthe
multivariategranulometry
that
willbe
formally
introduced
in
the
Statement of Work
section.First,
the
pattern spectrum
resulting from
amultivariate
granulometry does
notnecessarily
define
a
probability distribution function
andtherefore
statistical momentscannotbe
used
for
characterization.
Second,
in
the
event
that
a multivariategranulometry did
define
aprobability distribution
function,
an ndimensional
gradient wouldbe
requiredto
transform the
granulometry
into
aprobability
density
function,
which wouldthen
requirean n
dimensional
integral
to
extract
each ofthe
relevant moments.This
difficulty
is
circumvented
by
using Fourier
coefficientsfrom
a projection methodas
the
shape
descriptors
ofthe
granulometry.In
particular aWalsh
transform
is
appropriate
for extracting descriptors from
a multivariate granulometry.This is because
of
its
computationalsimplicity
andthe
fact
the
Walsh
basis
functions
aredefined
over afinite
domain. The finite domain
ofthe
basis functions is
particularly
appropriatesincethe
multivariategranulometry is
adecreasing
function
andtherefore
alsohas
afinite
domain.
1.5
Image
Classification
Classification
is
the process
ofassigning
anobject
into
one of a number ofcategories
based
onobservations
offeatures
ofthe
object.In
image
classification,
pixelsare assigned
to
classes
based
onfeatures
ofthe
pixeland/orfeatures
extracted
from
the
pixel's
neighborhood.
In
supervised
statisticalclassification,
a set of prototypesfrom
each class
is
usedto
derive
probability
density
information
ofthe
features derived from
the
pixels ofthe
different
classes.
The distribution descriptors
canthen
be
usedto
define
a classification rule or
discrimination function
that
canbe
usedto
determine
the
mostlikely
class
oforigin
of pixelsfrom
unknown classes.Such
a classification ruleis
frequently
referredto
as maximumlikelihood
classifier.
The
simplest example
of a classifierdistinguishes
two
classesusing
onefeature.
As previously
stated, the
probability distributions
ofthe
feature for
each ofthe
classesis
estimated
from
the
set of prototype pixels.Figure 6 illustrates
the
distributions
of ahypothetical feature
,
from
two
image
classes.A
classification rule canbe devised
that
maximizes
the
probability
ofassigning
a pixel ofunknownoriginto
the
correctclassby
considering
the
value ofthe two
distributions
at each value of^
This is
accomplishedintuitively by
assigning
the
pixel with afeature
value,
- ato
class0)j
whenP(,
=a\(iii)>P()
=a\(ti2)
andto
classo>2
whenP(x
=a\w2)
>P(x=a\wl)
In
the
single
feature
casethis
leads
to
adecision
rulewhichcanbe
statedin
terms
ofthe
^
values where
P(x
=a\wl)
=P(x
=a\w2).This is
the
situationin Figure 6
att,
=d. For
pixels with a
feature
value,
>d
the
probability
that the
pixelis from
classo>2
is
greaterand when
,
<d
the
oppositeis
morelikely.
The
probability
of erroneous classificationis
represented
by
the
area ofoverlap
ofthe two
probability
density
functions,
whichis
shaded
in Figure 6.
d
Feature
t,
Figure 6: Distribution
offeature
,
for
two
classes
The
concept of classificationbased
on maximumlikelihood
canbe
extendedto
utilize an
arbitrary
numberoffeatures.
The
mostcommonly
used multivariate classifieris
the
Gaussian
maximumlikelihood
classifier.This
classifier usesdistribution
descriptors
in
the
form
of mean vector and covariance matrix estimatesfor
each ofthe
image
classes
under consideration.In
additionthe
classifier requiresthat
the
distribution
of
features
within eachclasshave
approximately
multivariate normaldistributions. The
discrimination function is based
on a generalized squareddistance between
the
variousclass
mean vectorsandthe
feature
vectorofthe
pixelin
question.The
generalized squareddistance from
such afeature
vector^
to
classcot
is:
where:
t,
is
the
feature
vectorandCD,
is
anarbitrary
class.5l(^,C0,)
=(^-m,)'i:;1^-m,)+ln|L,|
where
m,
andZ,
arethe
mean vectorand covariance matrixrespectively
for
classco,.&(,)
=-2ln(?,)
where
q, is
the
a prioriprobability
ofclass0),.
1.6
Optimal Feature Selection
A
key
aspect
offeature
selectionis
the
reductionofdimensionality
ofthe
classification problem
[11].
Reduction
ofthe
dimensionality
provides severalbenefits.
Of
particularinterest
is
the
minimization
ofthe
computationalburden
andthe
potentialfor
improvement
in
classification
error rates.The
reductionin
computationalcomplexity
is
adirect
result of
the
smallersize
ofthe
mean vectors and covariance matrices usedin
the
classifier.
The
potentialfor
improvements
in
error ratesis
a manifestation ofthe
so-called
peaking
phenomenon.
Initially,
performance of a classification systemimproves
as more
features
areincluded in
the classifier,
but
at some point additionalfeatures
degrade
the
performance
ofthe
classifier.Peaking
is
a resultofthe
random aspect of allfeatures. As
morefeatures
areincluded,
the
potentialfor
the
nextfeature
to
include
redundant
information becomes
greater.Since
allfeatures
are random variablesthe
noise(variance)
ofthe
features eventually begins
to
obscurethe
usefulinformation in features
with significant
redundancy
and soeffectively
confusesthe
classifier.Conceptually,
one ofthe
simplest methods offeature
selectionis
to
considerthe
separation of
the
meansin
multidimensionalfeature
space.This
method suffershowever,
from its failure
to
considerthe
variances ofthe
features. A
setoffeatures
greatly
separatedin feature
spacemay
have
significantoverlap
comparedto
features less
separated
but
withsignificantly
smaller variances.Consider Figure 7
whichillustrates
this
point withtwo
examples of single elementfeature
vectorsfrom
two
image
classes.Feature
^2
has
relatively larger
separation ofthe
means and greater variancesthan
feature
^,
which resultsin
a greateroverlap
ofthe
probability
distributions for
classco,
and class
co2
andtherefore
greater classificationerror probability.Feature
2;.
Feature
2L
Figure 7: Effect
of variance onfeature
separationConsideration
ofthe
errorprobability
asthe
basis for feature
selectionincorporates
the
characteristic most ofinterest
directly
into
the
feature
selection process.In
the two
class case(with
equal a priori classprobabilities)
the
errorprobability
eis
given
by
the
following
expression:e=
0.5
\-\\\P(Z, lco,)-P(^ \<a2)\a%
where
^
=[^,,...,^.]T
is
the
feature
vectorandP(^
Ico^)
is probability
density
for
feature
^
for
classco;.
The
integral
in
the expression
is effectively
a"probabilistic
distance" measurein
that
a greater value
indicates
greater separation
ofthe
distributions
andtherefore
less
probability
oferror and vice versa.
In
the
case ofidentical
distributions,
perfectoverlap
the
integral
is
zero andthe
probability
of erroris 50%.
Any
othermeasure,
J,
whichmeasures
the
overlap
ofprobability distributions
canbe
used as a probabilisticdistance
measure.
The
properties
defining
aprobabilistic
distance
measure,
J,
canbe
stated morerigorously
[1
1]
asfollows:
7>0
7
=0
whenP(^
Ico,),
/
=1,2
arecompletely overlapping
J
is
maximum whenP(,
Ico,),
/=1,2
arenonoverlapping for
all^
One commonly
used measureis
the
Divergence,
JD
P&
JD=\[P(^\^)-P(^
lco2)]ln
P(Z,
Ico,)
d\
Evaluation
ofthe
Divergence
measurebecomes significantly
morestraightforward when
the
class conditionalprobability densities
areGaussian,
to
wit:h
=^(n2
+Z;')(H2
-H,)+
jtracefc-'I,
+^%
-2l}
where
u
is
the
mean vectorfor
classco;,
X;
is
the
covariance
matrixfor
classco;
and
I is
the
identity
matrix.Another commonly
usedprobabilisticdistance
measureis
the
Mahalanobis. The
Mahalanobis
andDivergence
produce equal results when classcovariance matrices
areequal.
The
Mahalanobis
measure,
JM,
is defined
asfollows:
A,=(H2-Hl)T_1(ll2-lil)
where
u,;
is
the
mean vectorfor
class;',
X is
the
covariance matrixfor both
classes.Newell
[7]
used a similarmeasure,
the
Mahalanobis-Like,
to
selectfeatures
derived using
morphological
granulometries.
The Mahalanobis-Like distance is defined
as
follows:
JML={[i2-^Y^~i(\i2-\il)
+
ln\l,\
where
u.;
is
the
mean vectorfor
classC0j
andX is
the
covariance matrixfor both
classesWhen
the
features do
nothave
equal covariance matricesthe
pooled covariancecan
be
usedorthe
Mahalanobis-Like distance
canbe
calculatedtwice
for
each pairofclasses
ofinterest. That
is,
for
two
classes s andt
wecalculatetwo
distance
measures asfollows:
/s=(u,-uJT^_1k-lO
+
ln|.|
Z.^-ujVV-lO
+
lnN
where
\is
is
the
mean vectorfor
classcos,
[i,
is
the
mean vectorfor
classco,
,Xs
is
the
covariancematrixfor
classcos
andX,
is
the
covariance matrixfor
classco,
.The
optimum n elementfeature
set canbe found
by
summing
the
7ML
orJ5
and7,
for
all pairs of classesfor
eachcombination of 77features
selectedfrom
the
total
number,
N,
features
available.The
subset of nfeatures
withthe
greatest sumhas
the
largest
separation,
according
to the
probabilisticdistance
measure.This
approachto
optimization
does
nothowever
accountfor
the
possibility that,
for
a givenfeature
set,
some subset of classes
may
have
anextremely
large
separation, to the
pointthat there
is
essentially
nooverlap,
and
that the
inflated
distance
measureresulting
from
sucha
large
separation
may
mask
the
fact
that
other classes
have essentially
no separation[12].See
Figure 8
for
anillustration
ofthis
condition
along
with anillustration
of a system withbetter
overall
separation.
Figure 8
shows
two
sets ofdivergence
measuresfor
three
classes.
In
one
setclass
3
is greatly
separated
from both
class1
and2,
while class1
andclass
2 have
a
limited
separation.
In
the
other setclass
3
has less
separationfrom
the
other
two
classes
but
the
othertwo
classes
have
muchbetter
separationfrom
each other.Class
1
Class 3
Class
2
Class 1
Class 3
Class 2
Figure 8:
Illustration
of class separations.The
circlesdepict only
the
relativelocations
of
the classes,
not classboundaries.
Newell
[7]
applied athresholding
technique
to the
Mahalanobis-Like distance
measure
in
orderto
suppressvery
large
values ofthe
probabilisticdistance. A
threshold
wascalculated
based
upon an acceptableprobability
of mis-classification.All
calculated
classseparations were
divided
by
this threshold
value.If
the
ratioexceeded
1.0
the
resultwas set
to
1.0,
thus
avoiding inflation
ofthe
overallseparability
measure.The
thresholdis
calculated
using
the
following
formula:
<***=-2
In
k In1where
k
is
the
number offeatures
to
be
selected andP
is the
probability
ofmisclassification .
2.0
Statement
of
workThis
section
introduces
the
concept ofthe
multivariategranulometry
anddescribes
the
details
ofhow
this
extension
ofthe traditional
morphologicalgranulometry
can
be
applied
to the
specific problem
oftexture
segmentation.While
the
extension ofthe traditional
granulometry
constitutes the
fundamental
original contributionofthis
work,
it is
the
application
to the
problem
oftexture
segmentationthat
providesa measureof
its
usefulness.
Applicability
ofthe
multivariate
granulometry
to texture
segmentation willbe
demonstrated using
afinite
set of naturaltexture
images. Two
separate sets ofimages
(each
set
consisting
ofthe
sametextures)
are required sothat
one setmay be
usedto
estimate
the
statistics
of adescriptive feature
setderived from
Walsh
coefficients ofthe
multivariate
granulometry.
The
statisticsestimated
from
the
first
set ofimages
are usedas
the
basis for
a classifierthat
is
appliedto
asimilarly derived
setofdescriptive features
from
the
second set ofimages. In
this
way
the
performance ofthe
classification systemon so-called
independent
data
canbe
measured.The
multivariategranulometry,
aswellasthe
Walsh transform,
wereimplemented
using
software writtenspecifically
for
this
research on specializedimage
processing hardware. While
also writtenspecifically
for
this research, the
feature
selectionand classification software
did
not require specializedhardware
and
therefore
was
implemented
onPC
classhardware.
2.1 Multivariate
Granulometry
The
concept of a multivariategranulometry, as proposedin
this paper,
is
amodification of
the
generaldefinition
ofthe
granulometry
whereinthe
individual
componentsof
the
structuring
elementbasis
set areindexed
by
independent
variables.The image
areafunction,
VtfS)
for
the
traditionalgranulometry
is
expressedfor
the
multivariate
granulometry
asfollows:
^(k;
5,
B)
=Open(S,
,
t.)
u
Open(S,
2
is
).
..Open(S,
En
K
)
k
={k1,k2,...kn}
B
={{^1H^2}'-.{^}}
Where
the traditional
granulometry is
afunction
of asingleindex
variable,
the
multivariate
granulometry is
afunction
ofnindependent index
variables(index
vectork)
where nis
the
number ofstructuring
element sequences .Instead
ofthe
pixelcountfunction
of a singlevariable, the
multivariategranulometry
resultsin
an ndimensional
surface.
The
surfacehas
aproperty
similarto the
traditional
granulometry
whenit,
=k2
=,...=kn
=0in
that the
value of^(k^B)
is
equalto the
area ofthe
originalimage if any
one ofthe
initial
structuring
elementsis
a singlepixel.Also
like
the
traditional
form,
the
multivariatefunction is
monotonically
decreasing
suchthat
4/(k;5,B)
=0for
someK,
k
={it,
>
Kx,
k2
>K2,
...,k
>Kn).
Unlike
the traditional
form,
the
multivariatefunction
cannotbe
transformed
into
probability
density
function,
thereby
eliminating
the technique
ofusing
moments asdescriptors.
An
example willillustrate
moreclearly
some ofthe
propertiesof amultivariategranulometry.
The image in
the
exampleis
the
sameimage S
usedto
depict
the
operation of
the
opening.The basis
set consists oftwo
structuring
elements,
the
verticaland
horizontal bar.
Each
ofthe
structuring
elementsis
initially
a singlepixelandfor
every
increment
ofeitherstructuring
elementindex
the
respectiveelement growsby
onepixel.
* * * * * * * * * * *
1
1
1
* * *1
1
**
1
1
1
* * *1
1
** * * * * * *
1
1
** * * * * * *
1
1
+*
1
* * * *1
* * * * * *1
* * * * * **
1
* * * * * + * *1
1
1
* *1
1
1
1
**
1
* *1
1
1
1
1
** * + * * * * * * * * * + * * * * * * *
Figure
9: Image S
Structuring
E
0
1
2
3
4
5
ement
Ej,
horizontal bar
Structuring
Element
E2,
verticalbar
1
1
1
1
1
1
1111
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
Figure 10: Basis
setB
vertical
bar
2
5
4
3
2
1
0
31
26
18
9
5
0
31
26
18
9
5
0
31
26
26
17
13
8
31
28
28
20
16
11"31
28
28
26
26
26
31
31
31
31
31
31
horizontal
bar
Figure 1 1: Result
of multivariategranulometry
onimage S
Note
that
for kj=0
ork2=Q
the
granulometry has
a value ofthirty
one,
whichis
the
areaof
the
originalimage. This
resultsfrom
the
union operation ofthe
granulometry.Since
one of
the two
structuring
elementsopenedthe
image
by
asingle pixel none ofthe
image
is
removed.Similarly
whenthe
image is
openedby
horizontal
and verticalbars
oflength
two,
kj=k2=l,
only isolated
pixels with nostrong
neighbors are removed.Also
ofinterest
is
the
fact
that this
form
of agranulometery
contains
the
sameinformation
containedin
the
traditional
form. The information from
atraditional
granulometry,
using
the
samebasis
set asthe example,
is
presentalong
the
diagonal,
kj=k2.
Alternately,
traditional
granulometries areperformed withsingle elementbasis
sets
withthe
descriptors
from
eachseparate sequence combinedinto
a singlefeature
vector.
The
sameinformation
usedto
derive
descriptors
is
presentin
this
form
as well.In
this
casethe
equivalentinformation
is
presentedin
orthogonalrows and columnswhere
the
otherstructuring
elementis
large
enoughto
eliminate all ofthe
image. For
example,
whenthe
horizontal
bar
is
six pixels orlonger
(kj>4)
that
opening
contributes
nothing
to the
union
operation,
therefore
the
sequence
ofopenings
by
the
verticalbar
have
the
same effect on
the
image
asthough the
basis
setconsisted
ofthat
element only.This
portion
ofthe multivariate
granulometry
canbe
thought
of as a marginalgranulometry because it
captures
the
results
ofthe
granulometric analysis
of eachbasis
setelements
working
in
isolation.
As
anexample
ofthe type
ofinformation
capturedin
the
multivariategranulometry
and notin
the traditional
granulometry,
considerthe
block
of eight pixelsin
the
upperright of
image
S consisting
oftwo
columns
offour
each.This block is
removed
only
whenthe
horizontal bar is larger
than two
pixels andthe
verticalbar
is
larger
than
four
pixels,
i.e.,
k}
>1
andk2
>3. Thus
whenkj=2
andk2
increments
from
three to
four
(
orequivalently
whenk2=A
andkj
increments from
oneto
two)
the
value ofthe
granulometery decreases
by
the
eight pixels ofthe
block. In
the
traditional
two-element
basis
setgranulometry, the
block is
lost
whenthe
index
increments
from
three to
four,
but along
the
diagonal
atthis
transition
the
valueofthe
granulometry has decreased
by
twelve
because four
pixels ofthe
block in
the
lower left have been lost
as well.In
asituationsuch as
this
the
value ofthe
multivariategranulometry lies in its ability
to
remove
(or
identify
whenelementsconform)
such ablock only
whenallelements of
the
basis
setjust
conformto the
block
unlikethe
traditional
form
wherethe
block is
removedwhen
the
last structuring
element ofthe
sequence conformsto
the
block. In
the
singleelement
basis
setimplementation
the
block
is
removedfor
eachgranulometry
whenthe
respective
structuring
elements exceedthe
block
in
the
appropriatedimension,
but any
association of
the
separateindex
variablesthat
resultin
the
removalofthe
block is lost
since
the
granulometries areperformedindependently.
Since
the
singlestructuring
elementbasis
setis
afrequently
implemented
form
ofthe
granulometry
usedfor
texture
discrimination,
an example of ahypothetical
pairoftexture
elements(texons)
that
canbe
discriminated
via multivariatebut
notthe traditional
form
ofthe
granulometry
are presented.Consider
texons
Tl
and72
shownin Figure 12.
Consider
two
texture
regions
oneconsisting
of patterns ofTl
andthe
other of72.
The
pattern
oftexons
can
be
arandom
orregular.
For
the
purpose
ofthis
examplethe
rotational
orientation
ofthe texons
is
the
same
for
eachtexon
occurrence
andthe
individual
texons
do
not
overlap
oradjoin
eachother.
* * *
I
* * * i11*1
Texon Tl
1**1
* * * i
* *
1
1
Texon T2
Figure 12: Texons Tl
and72
Texon Tl
Texon T2
vertical
bar
3
2
1
0
5
2
0
0
5
5
3
3
5
5
3
3
5
5
5
5
0
2
3
horizontal
bar
verticalbar
3
2
1
0
5
2
0
0
5
4
3
3
5
4
3
3
5
5
5
5
0
2
3
horizontal
bar
Figure 13:
Results
ofmultivariategranulometry
ontextures
based
ontexons
Tl
andT2
Texon Tl
Texon T2
Structuring
Element
E]
Structuring
Element
E2
Structuring
Element
E]
Structuring
Element
E2
Tkl=0(Tl)
=5
Tk2=0(Tl)
=5
4>kl=0(T2)
=5
Vk2=0(T2)
=5
kl=1(Tl)
=3
Tk2=1(Tl)
=2
ni=l(T2)
=3
4>k2=1(T2)
=2
Ykl=2(Tl)
=3
Tk2=2(Tl)
=0
Tk]=2(T2)
=3
Tk2=2(T2)
=0
4>kl=3(Tl)
=0
Tk2=3(Tl)
=0
4>kl=3(T2)
=0
yk2=3(T2)
=0
Figure 14: Results
ofgranulometry based
ontwo
single-elementbasis
setsComparing
the
results ofthe
traditional
granulometry for
texons
Tl
and72
reveals
that
structuring
elementsE]
andE2
each produceidentical
resultsfor
both
texons.
For
the
multivariategranulometry
the
results are similarbut
notidentical. Non-identical
results
are
produced whenthe
horizontal bar
is
two
pixels(
kj
=1
)
andthe
verticalbar
is
two
orthree
pixels(
it2
=1,
2
).
The
distinguishing
aspectis due
to the
effectivelength
of
the
horizontal
part ofthe
image.
In
texon
Tl,
this
partis
separatedfrom
the
verticalcomponent and consists of
two
pixels.In
72
the
horizontal
componentis
adjacentto the
vertical
but
stillonly
two
pixelslong.
Both
texons therefore
containahorizontal
component of
two
pixelsin
length
and avertical componentoflength
three.
Texon
72
contains oneadditional
isolated
pixelsoboth
texons
containfive
activated pixels.When
the two
opening
sequences areperformedseparately
the
isolated
pixelmakes
the
image
components appearlarger
whenthat
componentis
removedby
the
structuring
elementto
whichit
does
notconform.That
is,
the
opening
ofTl
by
ahorizontal
bar
oflength
two
resultsin
an areaoftwo
from
the
horizontal
bar because
the
three
pixelsin
the
verticalbar
areremoved.When opening
72,
two
ofthe
pixels ofthe
vertical
bar
areremovedbut
the
resultis
stilltwo
because
the
isolated
pixelis.removed
as
well.
The
isolated
pixelhas
the
same effect whenopening
by
averticalbar
oflength
two.
Thus
traditional granulometric
results areidentical
for
the two texons.
With
the
multivariate
granulometry,
forming
the
union ofthe
openingsfrom
the
separate sequences
insures
that
animage
component
is
removedonly
by
the
structuring
element
that
mostconforms
in
shapeonly
whenthe
conforming
elementis larger
than
the
image
component.
Thus
the
verticalbar is only
removed whenthe
verticalstructuring
element
is four
pixels regardless ofthe
size ofthe
horizontal
bar structuring
element.Likewise,
the
horizontal image
componentis only
removedwhenthat
structuring
element
is
three
pixelslong. The isolated
pixelis
removedby
both
structuring
elementswhen
their
respectivelengths
aretwo
or more.Hence
the
first difference in
multivariategranulometries
for
these texons
is
revealed whenkj=k2-l because
the
isolated
pixelis
removed
from 72 but
no partis
removedfrom Tl. The isolated
pixelis
the
only loss for
the
granulometry
atkj=l,
k2=2
as well.2.2 Texture
Images
Twelve
texture
images
were selected
for
this
study.All images
weretaken
from
Brodatz's
[13]
collection
ofphotographic
texture
images. The images
wereselectedto
represent
awide range
ofcomplexity.
Textural complexity is
aqualitative
term
that
includes
aspects such
asthe
structural
complexity
oftexture
primitives(texons),
the
regularity
orrandomness
ofthe texon
patterns andthe
relative scale ofthe texons.
Eight bit digital
images
ofthe
Brodatz
originals
were producedusing
aCCD
camera
on aphotographic
copy
stand.
The images have
a spatial resolution(in
terms
ofthe
photographic
originals)
of1(K)
pixels perinch. The digital images
consist of512
by
512
pixels.
For
each oftextures two
separateimages,
eachfrom
adifferent
regionofthe
Brodatz
texture
image,
were made sothat
onecomplete
setcouldbe
usedfor
training
andthe
second setfor
testing
performance ofthe
classifier onindependent data.
Henceforth
each
texture
class willbe identified
by
the
number assignedby
Brodatz (i.e.
dl02, dl03,
etc.).
Figure 15
showsthe twelve
gray-scaleimages from Brodatz.
a)
dl7
Herringbone
weaveb)
d20
French
canvasc)
d64 Oriental
rattanFigure
15(a-c): Gray-scale
texture
images
31
d)
d65 Oriental
rattane)
d67 Plastic
pelletsf)
d68 Wood
grainFigure 15(e-f):
Gray-scale
texture
images
g)
d75
Coffee beans
h)
d77
Cotton
canvas
i)
Raffia
Figure 15(g-i): Gray-scale
texture
images
j)
d87 Sea
fan,
fossilized
* *
* t * * i
* .
*
*
Ii
:?:::?;?:#:?
k)
dl02 Cane
1)
dl03 Loose
burlap
Figure
15(H): Gray-scale
texture
images
Before performing
the
granulometry,
the
gray-scale
images
were reducedto
binary
images. Application
of asingle
threshold to
gray-scale
images
representsone ofthe
simplest methods
for
lossy
gray-level
compression.
Many
algorithms
for
selection ofthe
threshold
are available.
For
example,
choosing
the threshold that
mostnearly
resultsin
equalnumbers
ofactivated
andnon-activated
pixelsor selection ofthe
mediangray
level
of animage
with abi-modal
histogram
aretwo
commontechniques.
However,
these
algorithms could
be
construed
asimage
enhancement
techniques
and soinstead
asingle
threshold that
resultedin
the twelve textures
retaining
significantunderlying
structure
wasselected
and appliedto
allimages.
The
structure
resulting from
the
application of athreshold
to the
gray-scaleimage
can
be
effectedby
the threshold
value selected.Indeed,
intra-image
gray level
non-uniformity
can resultin
variationin
size and shape ofthe
underlying
image
structure.Variation
ofthis
sort caninflate
the
variance ofextractedfeatures
or skewthe
feature
distribution
means.This may
resultin
reduced classification accuracy.For
this
study
athreshold
of100
was selected.All
pixels with a gray-scale value of100
or more wereactivated
in
the
binary
image,
whilethose
withalesser gray
valuewere not activated.The
results ofthis threshold
are shownin Figure 16.
a)
dl7 Herringbone
weavei
iiini
mm
IS
m
n.itiKi
iiiiik
i
im
iiiliii
\k
iuik
i
K
fci
b)
d20 French
canvas
;:ih;L
c)
d64
Oriental
rattan
Figure
16(a-c)
Binary
Texture images
d)
d65 Oriental
rattane)
d67 Plastic
pelletsf)
d68 Wood
grainFigure 16
(d-f)
Binary
texture
images