image binarization using otsu method

22
Image Binarization using Otsu Method Xu Liang Monday. April 20 th . 2009 NLPR-PAL Group CASIA

Upload: mochamad-achenx-taufiq

Post on 27-Oct-2014

136 views

Category:

Documents


9 download

TRANSCRIPT

Page 1: Image Binarization Using Otsu Method

Image Binarizationusing Otsu Method

Xu Liang

Monday.April 20th. 2009

NLPR-PAL GroupCASIA

Page 2: Image Binarization Using Otsu Method

Outline

• Image Binarization Example

Principle

• Otsu Method

• Conclusion

Page 3: Image Binarization Using Otsu Method

Image Binarization-Example(1)

Document part.bmp, T = 179

Page 4: Image Binarization Using Otsu Method

Image Binarization-Example(2)

Coins.bmp, T = 126

Page 5: Image Binarization Using Otsu Method

Image Binarization-Example(3)

Cameraman.bmp, T = 88

Page 6: Image Binarization Using Otsu Method

Image Binarization

PAPERDOCUMENT

GRAY LEVELIMAGE

BINARYIMAGE

FEATURE VECTORS

CLASSIFIED DIGITS

SCANNING

FEATURE EXTRACTION

BINARIZATION

CLASSIFICATION

Steps in a digit recognition system[1]

Page 7: Image Binarization Using Otsu Method

Image Binarization

• Segmentation for object regions Intensity property sharing

• Also call Image Thresholding Threshold a gray-level image to binary image

A simple but effective tool to separate objects from background

T is some global threshold

0

1),( yxg

if f(x,y) >= T

Otherwise

Page 8: Image Binarization Using Otsu Method

Image Binarization-Application

• Document image analysis Extract printed characters, logos, …

• Medical image process Find the illness part in the x-ray image

• Scene processing Detect a target

• …….

Page 9: Image Binarization Using Otsu Method

Outline

• Image Binarization

• Otsu Method Example

Principle

• Conclusion

Page 10: Image Binarization Using Otsu Method

Otsu Method

• Title “A Threshold Selection Method from Gray-Level Histograms”

• Author Nobuyuki Otsu

• Affiliation Electro-Technical Laboratory, Tokyo University(2007), Tokyo, Japan

• Publish IEEE Transactions on System, Man, and Cybernetics. SMC-9(1), 1979

• Citation(Google Scholar) 3571

Page 11: Image Binarization Using Otsu Method

Otsu Method-Example

3.184*)(,302.0*)(

8.67*)(,698.0*)(

917.0,126

4.3123,0.103

**

2

KKw

KKw

K

OO

BB

Page 12: Image Binarization Using Otsu Method

Otsu Method-Principle

• Clustering Object Background

Make each cluster as tight as possible

Hopefully minimize their overlap

Page 13: Image Binarization Using Otsu Method

Otsu Method-Principle-Algorithm(1)

• Define the within-class variance

)()()()( 222 TTTT OOBBWithin

)(TwB

1

0

)(T

i

ip

)(2 TB

)(TwO

1

)(L

Ti

ip

The variance of the pixels in the background (below threshold)

)(2 TO The variance of the pixels in the foreground (above threshold)

[0, L-1] the range of intensity levels

A lot of computation!

Page 14: Image Binarization Using Otsu Method

Otsu Method-Principle-Algorithm(2)

• Easier for the between-class variance

)(2 TBetween )(22 TWithin

22 ])()[(])()[( TTwTTw OOBB

)(2 TBetween 2)]()()[()( TTTwTw OBOB

By simplifying,

2 Combined variance

Combined mean

Maximizing

Optimal threshold T

Page 15: Image Binarization Using Otsu Method

Otsu Method-Principle-Algorithm(3)

• Easier using simple recurrence relations

)()()1( TpTwTw BB

)()()1( TpTwTw OO

)1(

)()()()1(

Tw

TTpTwTT

B

BBB

)1(

)()()()1(

Tw

TTpTwTT

O

OOO

Page 16: Image Binarization Using Otsu Method

Otsu Method

Otsu method fails in this occasion.

170)(,01.0)(

90)(,99.0)(

135

4697.0,93

163,91

**

2

KKw

KKw

K

K

OO

BB

左右

Page 17: Image Binarization Using Otsu Method

Outline

• Image Binarization

• Otsu Method

• Conclusion

Otsu Method

Image Binarization

Page 18: Image Binarization Using Otsu Method

Conclusion-Otsu Method

• Motivation Well-thresholded classes would be separated in gray levels

• Histogram based clustering• Simplicity

• Effectiveness

• When the number of pixels in each class are close to each other

• Drawbacks• Unimodality of Object Function may fail

• When the object and background pixels are extremely unbalanced

Page 19: Image Binarization Using Otsu Method

Conclusion-Image Binarization

• A lot of applications[3] Document analysis

Medical image process

• A lot of binarization methods Histogram-based thresholding

Object attribute thresholding• Edge matching

• Connectivity

Locally Adaptive thresholding• Variance of pixel neighborhood

Page 20: Image Binarization Using Otsu Method

Conclusion-Image Binarization

• Unsolved issues[3] Color image binarization

Degraded document binarization

Multilevel thresholding relevant to computer vision

Some sophisticated method

• Random Markov methods

……

Page 21: Image Binarization Using Otsu Method
Page 22: Image Binarization Using Otsu Method

Reference

• [1] Q.D. Trier, A.K. Jain. Goal-Directed Evaluation of Binarization Methods. IEEE Pattern Analysis and Machine Intelligence. 17(12): 1191-1201. 1995

• [2] N. Otsu. A Threshold Selection Method from Gray-Level Histograms. IEEE Transactions on Systems, Man, and Cybernetics. 1979, 9(1): 62-66

• [3] Mehmet Sezgin, Bulent Sankur. Survey over Image Thresholding Techniques and Quantitative Performance Evaluation. Journal of Electronic Imaging. 13(1):146-165, 2004