Академический Документы
Профессиональный Документы
Культура Документы
Lecturer:
Dr. Loay E. George and Dr. Faisel G. Mohammed
Email: faisel@scbaghdad.edu.iq
faiselgm73@gmail.com
2010-2016
All rights reserved
Reading instructions
Chapter 12 Chapter 9
“IMAGE PROCESSING
“Digital Image AND PATTERN
Processing”, RECOGNITION:
Gonzalez & Woods: 2nd ed., Fundamentals and
2002. Techniques:,
FRANK Y. SHIH, 2010
Chapter 9
“Image Processing
Analysis, and
Machine Vision”,
Milan Sonka,Vaclav Hlavac
and Roger Boyle,2008
Contents
1. Basics of Classification
2. Supervised Classification
–Process (e.g. collecting training data)
–Algorithms
3. Accuracy Assessments
4. Unsupervised Classification
–Algorithms
1.An overview on classification
What is classification ?
• Classification is a
process in which
individual items
(objects/patterns/image
regions/pixels) are
grouped based on the
similarity between the
item and the description
of the group.
1.An overview on classification
Classification - Example
Classification of leaves
1.An overview on classification
Terminology
• Class
• Cluster
1.An overview on classification
Terminology
Classification Decision Rules
• Decision Rules = for sorting pixels into classes
Features (Descriptors)
• Features are the individual measurable heuristic
properties of the phenomena
• Independent features
• Features:
• area, perimeter
• texture
• color
• ...
1.An overview on classification
Category “A”
Category “B”
2. Supervised: training
Unsupervised:- Supervised:-
First classify, then First apply knowledge,
apply knowledge then classify
1.An overview on classification
Supervised vs. unsupervised classification
Supervised Classification
• Classes are predetermined
• Training sites are established, used to train the
classifier
• Class statistics are entered into a variety of
classifiers to generate a map
Unsupervised Classification
• Patterns are discovered in the data (no training)
• Classes are identified after classification
• Can be used in combination with supervised
classification (apply supervised classification to
unsupervised output)
2. Supervised classification
Many techniques exist:
• Standard:
Minimum distance, Maximum likelihood, Parallellipiped.
• Decision trees
• Spectral mixture analysis
General procedure
1. Define classes according to your objectives
2. Locate training areas / training sites
3. Extract training statistics
4. Train model
5. Classify
6. Assess accuracy (Training statistics or image)
- Error matrix, kappa
7. Final product
2. Supervised classification
Classification algorithms: Example
Algorithms: Some basic concepts
2. Supervised classification
Classification algorithms: Example
Algorithms: Some basic concepts
• To understand these algorithms, let’s review some basic
math concepts
• These terms are central to Linear Algebra, which is the
foundation of remote sensing
• Scalar value (one number) - e.g. 45
• Vector (1-dimensional row/column) – e.g. A = [45 32 61]
• Array/matrix (2+-dimensional arrangement of vectors)
2. Supervised classification
Classification algorithms: Example
You are given a three band image and there are two classes
that you are trying to identify in the image. The mean vectors
(μc) for the two classes are:
μ1 = [71 53 62]
μ2 = [23 19 30]
and the standard deviations for each are:
σ1=[ 3 4 3]
σ2=[20 17 25]
The program is given pixel
BVij = [63 46 53]
Which class will the pixel be assigned to, using these two
methods?
2. Supervised classification
Classification algorithms: Example
1. Minimum Distance to the Mean:
Dist μ1= sqrt((63-71)^2+(46-53)^2+(53-62)^2) = 13.92
Dist μ2= sqrt((63-23)^2+(46-19)^2+(53-30)^2) = 53.46
Pixel will be assigned to Class 1.
2. Parallelepiped
allowing up to 2 standard deviations:
Class 1:
band1: 65 < 63 < 77 - NO Don’t need to calculate the others.
band2:
band3:
μ1 = [71 53 62]
Class 2: μ2 = [23 19 30]
band1: -17 < 63 < 63 - YES and the standard deviations for each are:
band2: 15 < 46 < 53 - YES σ1=[ 3 4 3]
band3: -20 < 53 < 80 – YES σ2=[20 17 25]
Pixel will be assigned to Class 2. The program is given pixel
BVij = [63 46 53]
3. Unsupervised classification
Contents
We’ll look at clustering methods:
1. Introduction
2. Clustering by Thresholding method
3. Clustering by Max-Min method
4. K-mean clustering method
5. ISO-DATA clustering method
3. Unsupervised classification
1- Introduction
Abstract
Clustering is a basic tool used in data analysis,
pattern recognition and data mining for finding
unknown groups in data. In this course, we
learn algorithms for finding the location of
clusters, and cluster validity measures to
recognize how many clusters there are.
Feature selection, data normalization and
outlier removal are also considered.
3. Unsupervised classification
Example of dataset
Sources of RGB Red-Green plot of the
vectors vectors
3. Unsupervised classification
Example of dataset
Subproblems of clustering
1. Where are the clusters?
(Algorithmic problem)
2. How many clusters
(Methodological problem: which criterion?)
3. Selection of attributes
(Application related problem)
4. Preprocessing the data
(Practical problems: normalization, outliers)
3. Unsupervised classification
1. Clustering by Thresholding
It consist of the following steps:
1. Input: pattern array; Threshold Value
2. Find mean of all input patterns
3. Choose the closest pattern (P closest to the mean &
set C1=Pclosest
4. Loop over all patterns:
• Measure the dist. btw each Pi and C1
• If dist. ≥ thr, then set C2=Pi : exit loop
• else continue to loop
• end loop
5. Repeat step 3 but check the dist. btw C1&C2
6. Repeat step 4 reaching the end of loop.
3. Unsupervised classification
1. Clustering by Thresholding
3. Unsupervised classification
1. Clustering by Thresholding
3. Unsupervised classification
1. Clustering by Thresholding
Min. distance
3. Unsupervised classification
1. Clustering by Thresholding
3. Unsupervised classification
1. Clustering by Thresholding
5
5
3. Unsupervised classification
1. Clustering by Thresholding
3. Unsupervised classification
1. Clustering by Thresholding
Thank you
Any Questions ?
END
Of Lecture