Digital Image Processing Lecture
Digital Image Processing Lecture
Bhattacharya 1
INTRODUCTION TO IMAGE
CLASSIFICATION
Lecture 7
Concept of Image Classification
2
Feature sets
Supervised Learning
Learning process designed to form a mapping from one set
of variables (data) to another set of variables (information
classes)
A teacher is involved in the learning process
Unsupervised learning
Learning happens without a teacher
Exploration of the data space to discover the scientifc laws
underlying the data distribution
Multiclass Case
gk(x) > gl(x), l = 1,,L, l k x ck
Algorithm
Estimate class mean vector and covariance matrix from training
samples
mi = SjCi Xj ; Ci = E{(X - mi ) (X - mi )T } | X Ci}
Compute distance between X and mi
X Ci if d(X, mi) d(X,mj) j
The training data x with the class already given, can be used
to estimate the conditional density function P(x|Ci)
That implies each class has a mean mi that has the highest
likelihood of occurrence
Taking logarithm
1 of the Gaussian distribution,
L 1we get
gi ( x) ( x i )t Si1 ( x i ) ln 2 ln Si ln P(i )
2 2 2
Non-parametric in nature
The algorithm is:
gi ( x) L ki
j
1/ d ( x, x
l 1 j 1
l )
The distances of the nearest neighbours to the feature vector of the pixel
to be classified are taken into account
l 1
k p ( )
l l
For each pixel to be classified, the feature space distances to
all training pixels are to be computed before the decision is
made, due to which this procedure is extremely computation
intensive, and is not used when the dimensionality (number of
bands) of the feature space is large, e.g., with hyperspectral
data.
Band 1 Band 1
p(X|Ci)
Each class is represented
by normal distribution, but
with close means and
high variances between
means
mi mj
Shape Features
Spectral Features
Texture Features
Transform Features
Iterative algorithm
Number of clusters K is known by user
Most popular clustering algorithm
Initialize randomly K cluster mean vectors
Assign each pixel to any of the K clusters based on
minimum feature distance
After all pixels are assigned to the K clusters, each
cluster mean is recomputed.
Iterate till cluster mean vectors stabilize