10.07.2015 Views

Chapter 4 SEGMENTATION

Chapter 4 SEGMENTATION

Chapter 4 SEGMENTATION

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

4.1. THRESHOLDING 7The intermeans algorithm has a tendency to find a threshold which divides the histogram intwo, so that there are approximately equal numbers of pixels in the two categories. In manyapplications, such as the soil image, this is not appropriate. One way to overcome this drawbackis to modify the algorithm as follows.Consider a distribution which is a mixture of two Gaussian distributions. Therefore, in theabsence of sampling variability, the histogram is given by:h k = n 2 {p 1 φ 1 (k)+p 2 φ 2 (k)},for k =0, 1,...,N.Here, p 1 and p 2 are proportions (such that p 1 + p 2 = 1) and φ l (k) denotes the probabilitydensity of a Gaussian distribution, that is{ }1 −(k − µl ) 2φ l (k) = √ expfor l =1, 2,2πσ2lwhere µ l and σl2 are the mean and variance of pixel values in category l. The best classificationcriterion, i.e. the one which misclassifies the least number of pixels, allocates pixels with valuek to category 1 ifp 1 φ 1 (k) ≥ p 2 φ 2 (k),and otherwise classifies them as 2. After substituting for φ and taking logs, the inequalitybecomes { 1k 2 − 1 } {µ1− 2k − µ } { }2 µ2+ 1− µ2 2+ log σ2 1p 2 2≤ 0.σ12 σ22 σ12 σ22 σ12 σ22 σ2p 2 2 1The left side of the inequality is a quadratic function in k. Let A, B and C denote the threeterms in curly brackets, respectively. Then the criterion for allocating pixels with value k tocategory 1 is:k 2 A − 2kB + C ≤ 0.There are three cases to consider:(a) If A = 0 (i.e. σ1 2 = σ2 2 ), the criterion simplifies to one of allocating pixels with value k tocategory 1 if2kB ≥ C.(If, in addition, p 1 = p 2 and µ 1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!