Professional Documents
Culture Documents
1979 A Tlreshold Selection Method
1979 A Tlreshold Selection Method
1, JANUARY 1979
ments," Proc. ofthe 3rd Sym. on Nonlinear Estimation Theory and its Applications,
San Diego, CA, Sept. 1972.
[4] P. Smith and G. Buechler, "A branching algorithm for discrimination and track-
ing multiple objects," IEEE Trans. Automat. Contr., vol. AC-20, pp. 101-104,
1975.
[5] D. L. Alspach, 'A Gaussian sum approach to the multitarget-tracking problem,"
Automatica, vol. 11, pp. 285-296,1975.
[6] C. L. Morefield, Application of 0-1 Integer Programming to a Track Assembly
Problem, TR-0075(5085-10II, Aerospace Corp. El Segundo, CA, Apr. 1975.
7*
[7] D. B. Reid, A Multiple Hypothesis Filter for Tracking Multiple Targets in a
Cluttered Environment, LMSC-D560254, Lockheed Palo Alto Research Labora-
tories, Palo Alto, CA, Sept. 1977.
[8] P. L. Smith, "Reduction of sea surveillance data using binary matrices," IEEE
Trans. Syst., Man, Cybern., vol. SMC-6 (8), pp. 531-538, Aug. 1976.
LONGITUDE
Fig. 6. ID plot of ship 10001 after the second round of operator-imposed assign- A Tlreshold Selection Method
ment constraints. from Gray-Level Histograms
NOBUYUKI OTSU
Authorized licensed use limited to: Purdue University. Downloaded on October 7, 2008 at 15:55 from IEEE Xplore. Restrictions apply.
CORRESPONDENCE 63
most of the methods so far proposed. This would imply that it These require second-order cumulative moments (statistics).
could be the right way of deriving an optimal thresholding method In order to evaluate the "goodness" of the threshold (at level k),
to establish an appropriate criterion for evaluating the "goodness" we shall introduce the following discriminant criterion measures
of threshold from a more general standpoint. (or measures of class separability) used in the discriminant
In this correspondence, our discussion will be confined to the analysis [5]:
elementary case of threshold selection where only the gray-level
histogram suffices without other a priori knowledge. It is not only A = a22 K = (T2/a2WK =/2/a2
= (12)
important as a standard technique in picture processing, but also where
essential for unsupervised decision problems in pattern recogni- 2 2 2
tion. A new method is proposed from the viewpoint of discrimin- UW = 6oJoU + 0J1ff1 (13)
ant analysis; it directly approaches the feasibility of evaluating the 2 = o(po PT) + 1G(i1 PT)
"goodness" of threshold and automatically selecting an optimal
threshold. = iOO(Y1 -PTo)T (14)
II. FORMULATION (due to (9)) and
Let the pixels of a given picture be represented in L gray levels L
[1, 2, ,L]. The number of pixels at level i is denoted by ni and JT2 = E (i - p2p
)p (15)
i=1
the total number of pixels by N = n1 + n2 + + nL* In order to
simplify the discussion, the gray-level histogram is normalized are the within-class variance, the between-class variance, and the
and regarded as a probability distribution: total variance of levels, respectively. Then our problem is reduced
L
to an optimization problem to search for a threshold k that maxi-
pi = nilN, pi >0, Z Pi-1 (1) mizes one of the object functions (the criterion measures) in (12).
This standpoint is motivated by a conjecture that well-
Now suppose that we dichotomize the pixels into two classes thresholded classes would be separated in gray levels, and con-
CO and C 1 (background and objects, or vice versa) by a threshold versely, a threshold giving the best separation of classes in gray
at level k; CO denotes pixels with levels [1, , k], and C1 denotes levels would be the best threshold.
pixels with levels [k + 1, , L]. Then the probabilities of class The discriminant criteria maximizing A, K, and q, respectively,
occurrence and the class mean levels, respectively, are given by for k are, however, equivalent to one another; e.g., K = i + 1 and
= )/(2 + 1) in terms of 2, because the following basic relation
k
wo = Pr (Co)= E Pi= (k) (2) always holds:
= 52
a21w ++ a2TB
i=1
(16)
L
i-,
w01 = Pr (Ci)= E pi = 1-@(k) t9" It is noticed that U2 and U2 are functions of threshold level k, but
i =k+ I
and CT is independent of k. It is also noted that cr2 is based on the
k k second-order statistics (class variances), while (T2 is based on the
Po = i Pr (i Co)- E ipi Io = p(k)/w(k) (4) first-order statistics (class means). Therefore, q is the simplest
measure with respect to k. Thus we adopt q as the criterion meas-
L L ItT P(k) ure to evaluate the "goodness" (or separability) of the threshold at
k=k+
i=k+lI co(k)
(5) level k.
The optimal threshold k* that maximizes t, or equivalently
where maximizes a2 is selected in the following sequential search by
k using the simple cumulative quantities (6) and (7), or explicitly
o(k) = pi (6)6 using (2)-(5):
and l(k) = us(k)l/T (17)
I ipi
p(k)= i=1 (7) a2k ==[p7(k) --(k)]2
cB(k (k)[1 w)(k)]- (18)
are the zeroth- and the first-order cumulative moments of the
histogram up to the kth level, respectively, and and the optimal threshold k* is
L
(8)
2
(k* ) = max o2(k). (19)
PT P- (L) = Z ipi 1 <k<L
i =1
is the total mean level of the original picture. We can easily verify From the problem, the range of k over which the maximum is
the following relation for any choice of k: sought can be restricted to
OP00 +O+IU1=P T, (Oo+ Ui=
I (9) SF = {k; (loow = w(k)[I- ((k)] > 0, or 0 < o(k) < 1}.
The class variances are given by
We shall call it the effective range of the gray-level histogram.
k k
From the definition in (14), the criterion measure i' (or q) takes a
2 E (i - P0)2 Pr (i C0)= Z (i - po)2pi/o (10)
minimum value of zero for such k as k e S - S* = {k; (o(k) = 0 or
ii= =i
L L
1} (i.e., making all pixels either Cl or CO, which is, of course, not
I2 = E (i _ pl)2 Pr (i IC,) = (i - p)2p Wi, (11) our concern) and takes a positive and bounded value for k e S*. It
i=k+ I i k+ I is, therefore, obvious that the maximum always exists.
Authorized licensed use limited to: Purdue University. Downloaded on October 7, 2008 at 15:55 from IEEE Xplore. Restrictions apply.
64 IEEE TRANSACnONS ON SYSTEMS, MAN, AND CYBERNEnCS, VOL SMC-9, NO. 1, JANUARY 1979
Throughout these figures, (a) (as also (e)) is an original gray-level w =0.858 PO= 3.4
picture; (b) (and (f)) is the result of thresholding; (c) (and (g)) is a w,=0. 142 p1= 9.4
set of the gray-level histogram (marked at the selected threshold)
and the criterion measure q1(k) related thereto; and (d) (and (h)) is (h)
the result obtained by the analysis. The original gray-level pic-
tures are all 64 x 64 in size, and the numbers of gray levels are 16
in Fig. 1, 64 in Fig. 2, 32 in Fig. 3(a), and 256 in Fig. 3(e). (They all (g)
Fig. 1. Application to characters.
had equal outputs in 16 gray levels by superposition of symbols by
reason of representation, so that they may be slightly lacking in
precise detail in the gray levels.)
Fig. 1 shows the results of the application to an identical char-
acter "A" typewritten in different ways, one with a new ribbon (a)
Authorized licensed use limited to: Purdue University. Downloaded on October 7, 2008 at 15:55 from IEEE Xplore. Restrictions apply.
CORRESPONDENCE 65
..::
.........
(a) () . . ...:..
2
=T 34.4 l=418 033 pT 7.3 Cr2= 23.347
K;= 7 K2=15 '= 0.873
K = 33 7 = 0.887
EL| w, = 0.633 hP= 4.3
..11 w,= 0.478 P&= 14.2 W, = 0.296 05
10.5=
w2 = 0.071 z2=20.2
w, = 0.522 JJ1= 52.8 111111111,-......
I
'' iliE,
,,l , , , i~...........
*1'. -. .t
(f)--
(e) (f) (e)
(h)
PZ=174.0
(g) (h)
(g) Fig. 3. Application to cells. Critenon measures f(kt, k2) are omitted in (c) and (g)
Fig. 2. Application to textures. by reason of illustration.
Authorized licensed use limited to: Purdue University. Downloaded on October 7, 2008 at 15:55 from IEEE Xplore. Restrictions apply.
66 IEEE TRANSACTIONS ON SYSTEMS, MAN, AND CYBERNETICS, VOL. SMC-9, No. 1, JANI'ARY 1979
and another with an old one (e), respectively. In Fig. 2, the results is feasible by virtue of the criterion on which the method is based.
are shown for textures, where the histograms typically show the 3) An optimal threshold (or set of thresholds) is selected auto-
difficult cases of a broad and flat valley (c) and a unimodal peak matically and stably, not based on the differentiation (i.e.. a local
(g). In order to appropriately illustrate the case of three- property such as valley), but on the integration (i.e., a global
thresholding, the method has also been applied to cell images with property) of the histogram.
successful results, shown in Fig. 3, where CO stands for the back- 4) Further important aspects can also be analyzed (e.g., estima-
ground, C1 for the cytoplasm, and C2 for the nucleus. They are tion of class mean levels, evaluation of class separability, etc.).
indicated in (b) and (f) by ( ), (=), and (*), respectively. 5) The method is quite general: it covers a wide scope of un-
A number of experimental results so far obtained for various supervised decision procedure.
examples indicate that the present method derived theoretically is The range of its applications is not restricted only to the thre-
of satisfactory practical use. sholding of the gray-level picture, such as specifically described in
the foregoing, but it may also cover other cases of unsupervised
D. Unimodality of the object function classification in which a histogram of some characteristic (or feat-
The object function 52(k), or equivalently, the criterion measure ure) discriminative for classifying the objects is available.
1(k), is always smooth and unimodal, as can be seen in the exper- Taking into account these points, the method suggested in this
imental results in Figs. 1-2. It may attest to an advantage of the correspondence may be recommended as the most simple anid
suggested criterion and may also imply the stability of the standard one for automatic threshold selection that can be
method. The rigorous proof of the unimodality has not yet been applied to various practical problenms,
obtained. However, it can be dispensed with from our standpoint
concerning only the maximum. AcK NOWLEDGMENT
The author wishes to thank Dr. H. Nishino, Head of the Infor-
mation Science Division, for his hospitality and encouragement.
IV. CONCLUSION Thanks are also due to Dr. S. Mori, Chief of the Picture Proces-
A method to select a threshold automatically from a gray level sing Section, for the data of characters and textures and valuable
histogram has been derived from the viewpoint of discriminant discussions, and to Dr. Y. Nogucli for cell data. The author is also
analysis. This directly deals with the problem of evaluating the very grateful to Professor S. Amari of the University of Tokyo for
goodness of thresholds. An optimal threshold (or set of thre- his cordial and helpful suggestions for revising the presentation of
sholds) is selected by the discriminant criterion; namely, by maxi- the manuscript.
mizing the discriminant measure q (or the measure of separability REFERENCIES
of the resultant classes in gray levels). [1] J. M. S. Prewitt and M. L. Mendelsolhn, "The analysis of cell images," nn.
The proposed method is characterized by its nonparametric Acad. Sci., vol. 128, pp. 1035-1053, 1966
and unsupervised nature of threshold selection and has the follow- [2] J. S. Weszka, R. N. Nagel, and A. Rosenfeld, "A threshold selection technique."
IEEE Trans. Comput., vol. C-23, pp. 1322 -1326, 1974
ing desirable advantages. [3] S. Watanabe and CYBEST Group. "An automated apparatus for cancer
1) The procedure is very simple; only the zeroth and the first prescreening: CYBEST," Comp. Graph. Imiage Process. vol. 3. pp. 350--358, 1974.
order cumulative moments of the gray-level histogram are [4] C. K. Chow and T. Kaneko, "Automatic boundary detection of the left ventricle
from cineangiograms," Comput. Biomed. Res., vol. 5, pp. 388- 410, 1972.
utilized. [5] K, Fukunage, Introduction to Statisticul Pattern Recogniition. New York:
2) A straightforward extension to multithresholding problems Academic, 1972, pp. 260-267.
Book Reviews
Orthogonal Transforms for Digital Signal Processing---N. Ahmed and K. tation using orthogonal functions. Fourier methods of representating sig-
R. Rao (New York: Springer-Verlag, 1975, 263 pp.). Reviewed by Lokenatlh nals. relation between the Fourier series and the Fourier transform, and
Debnath, Departments of Mathematics and Physics, East Carolina Unit er- some aspects of cross correlation. autocorrelation. and consolution. Thlese
sity, Greenville, NC 27834. chapters provide a systematic transition from the Fourier represenitation
of analog signals to that of digital sigials.
With the advent of high-speed digital computers and the rapid advances The third chapter is concerned with the F'ourier representation of
in digital technology, orthogonal transforms have received considerable discrete and digital signals througlh the discrete Fourier tranisfornm (D)[ I).
attention in recent years, especially in the area of digital signal processing. Some important properties of the DFT including thc conv olution anld
This book presents the theory and applications of discrete orthogonal correlation theorems are discussed in some detail, The concept of ampli-
transforms. With some elementary knowledge of Fourier series trans- tude, power. and phase spectra is introduced. It is shown that the 1)1F is
forms, differential equations, and matrix algebra as prerequisites, this directly related to the Fourier transform series representation ol data sc-
book is written as a graduate level text for electrical and computer engi- quences tX(rn)). The two-dimensional DlFT anid its possible extensioni to
neering students. higher dimensions are insestigated. and the chapter closes "it}h ;omc
The first two chapters are essentially tutorial and cover signal represen- discussion on time-varying power andt phase spectra.
Authorized licensed use limited to: Purdue University. Downloaded on October 7, 2008 at 15:55 from IEEE Xplore. Restrictions apply.