IMAGE SEGMENTATION USING THRESHOLDING

Slides:



Advertisements
Similar presentations
Image Segmentation Longin Jan Latecki CIS 601. Image Segmentation Segmentation divides an image into its constituent regions or objects. Segmentation.
Advertisements

Change Detection C. Stauffer and W.E.L. Grimson, “Learning patterns of activity using real time tracking,” IEEE Trans. On PAMI, 22(8): , Aug 2000.
Robust statistical method for background extraction in image segmentation Doug Keen March 29, 2001.
K Means Clustering , Nearest Cluster and Gaussian Mixture
An Adaptive Image Enhancement Algorithm for Face Detection By Lizuo Jin, Shin’ichi Satoh, and Masao Sakauchi. ECE 738 In Young Chung.
電腦視覺 Computer and Robot Vision I Chapter2: Binary Machine Vision: Thresholding and Segmentation Instructor: Shih-Shinh Huang 1.
Complex Feature Recognition: A Bayesian Approach for Learning to Recognize Objects by Paul A. Viola Presented By: Emrah Ceyhan Divin Proothi Sherwin Shaidee.
Adviser : Ming-Yuan Shieh Student ID : M Student : Chung-Chieh Lien VIDEO OBJECT SEGMENTATION AND ITS SALIENT MOTION DETECTION USING ADAPTIVE BACKGROUND.
Otsu’s Thresholding Method Based on a very simple idea: Find the threshold that minimizes the weighted within-class variance. This turns out to be the.
EE 7730 Image Segmentation.
Thresholding Otsu’s Thresholding Method Threshold Detection Methods Optimal Thresholding Multi-Spectral Thresholding 6.2. Edge-based.
Chapter 10 Image Segmentation.
Segmentation Divide the image into segments. Each segment:
Image Segmentation. Introduction The purpose of image segmentation is to partition an image into meaningful regions with respect to a particular application.
Chapter 10 Image Segmentation.
CS 376b Introduction to Computer Vision 02 / 25 / 2008 Instructor: Michael Eckmann.
Segmentation (Section 10.3 & 10.4) CS474/674 – Prof. Bebis.
Smart Traveller with Visual Translator. What is Smart Traveller? Mobile Device which is convenience for a traveller to carry Mobile Device which is convenience.
Thresholding Thresholding is usually the first step in any segmentation approach We have talked about simple single value thresholding already Single value.
DIGITAL IMAGE PROCESSING Instructors: Dr J. Shanbehzadeh M.Yekke Zare M.Yekke Zare ( J.Shanbehzadeh M.Yekke Zare )
Chapter 10: Image Segmentation
CS 376b Introduction to Computer Vision 04 / 02 / 2008 Instructor: Michael Eckmann.
GmImgProc Alexandra Olteanu SCPD Alexandru Ştefănescu SCPD.
Detecting Pedestrians Using Patterns of Motion and Appearance Paul Viola Microsoft Research Irfan Ullah Dept. of Info. and Comm. Engr. Myongji University.
CS 376b Introduction to Computer Vision 02 / 22 / 2008 Instructor: Michael Eckmann.
Segmentation.
Chap. 9: Image Segmentation Jen-Chang Liu, Motivation Segmentation subdivides an image into its constituent regions or objects Example: 生物細胞在影像序列中的追蹤.
Digital Image Processing Lecture 18: Segmentation: Thresholding & Region-Based Prof. Charlene Tsai.
Chapter 10 Image Segmentation.
Chapter 10, Part II Edge Linking and Boundary Detection The methods discussed in the previous section yield pixels lying only on edges. This section.
Video Segmentation Prepared By M. Alburbar Supervised By: Mr. Nael Abu Ras University of Palestine Interactive Multimedia Application Development.
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
Image Segmentation and Edge Detection Digital Image Processing Instructor: Dr. Cheng-Chien LiuCheng-Chien Liu Department of Earth Sciences National Cheng.
Bo QIN, Zongshun MA, Zhenghua FANG, Shengke WANG Computer-Aided Design and Computer Graphics, th IEEE International Conference on, p Presenter.
CS654: Digital Image Analysis
Expectation-Maximization (EM) Case Studies
Image Segmentation by Histogram Thresholding Venugopal Rajagopal CIS 581 Instructor: Longin Jan Latecki.
Face Image-Based Gender Recognition Using Complex-Valued Neural Network Instructor :Dr. Dong-Chul Kim Indrani Gorripati.
Image Segmentation Dr. Abdul Basit Siddiqui. Contents Today we will continue to look at the problem of segmentation, this time though in terms of thresholding.
主講者 : 陳建齊. Outline & Content 1. Introduction 2. Thresholding 3. Edge-based segmentation 4. Region-based segmentation 5. conclusion 2.
Digital Image Processing
SUREILLANCE IN THE DEPARTMENT THROUGH IMAGE PROCESSING F.Y.P. PRESENTATION BY AHMAD IJAZ & UFUK INCE SUPERVISOR: ASSOC. PROF. ERHAN INCE.
Thresholding Foundation:. Thresholding In A: light objects in dark background To extract the objects: –Select a T that separates the objects from the.
Image Enhancement in the Spatial Domain.
Student Gesture Recognition System in Classroom 2.0 Chiung-Yao Fang, Min-Han Kuo, Greg-C Lee, and Sei-Wang Chen Department of Computer Science and Information.
Computer Vision. Overview of the field  Image / Video => Data  Compare to graphics (the reverse)  Sample applications  Video Camera feed => ID room.
Video object segmentation and its salient motion detection using adaptive background generation Kim, T.K.; Im, J.H.; Paik, J.K.;  Electronics Letters 
Digital Image Processing (DIP)
Machine Vision ENT 273 Lecture 4 Hema C.R.
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities Prof. Charlene Tsai.
DIGITAL SIGNAL PROCESSING
Image Segmentation – Edge Detection
Digital Image Processing
Otsu’s Thresholding Method
Otsu’s Thresholding Method
ECE 692 – Advanced Topics in Computer Vision
Fall 2012 Longin Jan Latecki
CSSE463: Image Recognition Day 23
پردازش تصاویر دیجیتال- احمدی فرد
Using edges to improve Global Thresholding
Chapter 10 – Image Segmentation
Image Segmentation.
Department of Computer Engineering
Digital Image Processing Week III
Automatic thresholding for defect detection
Grey Level Enhancement
Image Segmentation.
Computer and Robot Vision I
Presentation transcript:

IMAGE SEGMENTATION USING THRESHOLDING Guided by: Dr. J.N Sarvaiya BHAVIN GAMIT(P12EC012) PRATIK DAVE (P12EC022) VIRANG PATEL(P12EC023)

Outline Introduction Global Thresholding Object Optimal Thresholding Optimum Thresholding (Otsu’s Method) Local Thresholding using Moving Averages Applications Conclusion

What is Image thresholding ? Thresholding is a technique for partitioning image directly into region based on intensity value and/or property of these value Because of intuitive property , Simplicity of implementation Computational speed Image thresholding enjoys central place in image segmentation

Intensity histogram that can be partitioned (a) By a single threshold and ( b)by dual threshold

Thresholding - Foundation Suppose that the gray-level histogram corresponds to an image, f(x,y), composed of dark objects in a light background, in such a way that object and background pixels have gray levels grouped into two dominant modes. One obvious way to extract the objects from the background is to select a threshold ‘T’ that separates these modes. Then any point (x,y) for which f(x,y) > T is called an object point, otherwise, the point is called a background point.

Foundation (contd.) In such a case the histogram has to be partitioned by multiple thresholds. Multilevel thresholding classifies a point (x,y) as belonging to one object class if T1 < (x,y) <= T2, to the other object class if f(x,y) > T2 and to the background if f(x,y) <= T1.

Foundation (contd.) Segmentation is accomplished by scanning the image pixel by pixel and labeling each pixel as object or background, depending on whether the grey level is greater or less than the value of T . Thresholding works well when a grey level histogram of the image groups separates the pixels of the object and the background into two dominant modes. Then a threshold T can be easily chosen between the modes.

Basic Global and Local Thresholding Thresholding may be viewed as an operation that involves tests against a function T of the form: T = T[x , y , p(x , y) , f(x , y)] Where f(x , y) is the gray level , and p(x , y) is some local property. Simple thresholding schemes compare each pixels gray level with a single global threshold. This is referred to as Global Thresholding . If T depends on both f(x , y) and p(x , y) then this is referred to a Local Thresholding .

Basic Global Thresholding Select an initial estimate for T. Segment the image using T. This well produce two groups of pixels: G1 consisting of all pixels with gray level values>T and G2 consisting of pixels with values <T. Compute the average gray level values 1 and 2 for the pixels in regions G1 and G2. Compute a new threshold value: T = ½ [1 + 2 ] Repeat step 2 through 4 until the difference in T in successive iterations is smaller than a predefined parameter , To.

Simulation result Fig (b ) a distint valley

Object Optimal Thresholding To minimize the average error in two or more over-lapped pixel groups

Object Optimal Thresholding (contd.) Aim: Select T, that minimizes the average error in decision. PDF of gray level of entire image: p(z) = P1p1(z) + P2p2(z) where, P1 & P2 are pixel probabilities of background & foreground, respectively. p1(z) & p2(z) being their PDFs

Object Optimal Thresholding (contd.) Error probability in classifying background as object : Error probability in classifying object as background : Overall probability of error:

Object Optimal Thresholding (contd.) Threshold value for which the error is minimal: Gaussian PDF is: Optimal threshold:

Optimum Thresholding: Otsu’s Method Based on a very simple idea: Find the threshold that minimizes the weighted within-class variance. This turns out to be the same as maximizing the between-class variance. Operates directly on the gray level histogram [e.g. 256 numbers, P(i)], so it’s fast (once the histogram is computed).

Otsu Method: Assumptions Histogram (and the image) are bimodal. Assumes uniform illumination (implicitly), so the bimodal brightness behavior arises from object appearance differences only.

Otsu Method (contd.) The weighted within-class variance is: Where the class probabilities are estimated as: And the class means are given by:

Otsu Method (contd.) The individual class variances are: Total Variance is: Within-class, from before Between-class

Example: 6-level Gray scale Image Result:- Otsu Method (contd.) Example: 6-level Gray scale Image Result:- Threshold T = 0 T = 1 T = 2 T = 3 T = 4 T = 5 3.1196 1.5268 0.5561 0.4909 0.9779 2.2491 1.5928 2.5635 2.6278 2.1417 0.8705

Variable Thresholding On Local Image Property Compute a threshold at every point (x,y) in the image based on specified local property of neighbourhood of (x,y) . The basic approach to local thresholding using standard deviation and mean of the pixel in a neighbourhood of every point in the image Standard deviation = local contrast Mean= average intensity. Local threshold Txy = a σxy + b mxy The segmented image computed as 1 if f(x,y )>Txy g(x,y) = 0 if f(x,y )≤Txy

Local Thresholding using Moving Averages Special case of local thresholding method. Computing a moving average along scan lines of an image. Scanning carried out line by line in zigzag pattern to reduce illumination bias.

Local Thresholding using Moving Averages (contd.) Let Zk+1 intensity of the point at step k+1 in the scanning sequence. The moving average(mean) at this point is given by =m(k)+1/n(zk+1-zk-n) n= number of points used in computing the average m(1)=z1/n. This algorithm is intialized only once not at every row, because moving average is computed for every point in the image.

Local Thresholding using Moving Averages (contd.) Segmentation is implemented using 1 if f(x,y )>Txy g(x,y) = 0 if f(x,y )≤Txy with Txy=bmxy where b is constant and mxy is the moving average from eq. at point (x,y ) in the input image

Local Thresholding using Moving Averages (contd.) Let n=5 times the average stroke width . In this case, average pixel width = 4, hence n=20 and b= 0.5

Local Thresholding using Moving Averages (contd.) Thresholding based on moving averages works well when the objects of interest are small with respect to the image size. Example- Images of typed or handwritten text.

Applications of Thresholding Analyze and recognize fingerprints During the process of recovering/analyzing/recognizing photographed or scanned letters Reduce amount of information (e.g. for image transfer, or content recognition) Real-time adaptive thresholding (e.g. face detection) Traffic control and wireless mesh networks Motion detection using dynamic thresholding Background subtraction (e.g. real-time subtraction for biometric face detection)

Conclusion Global thresholding: Suitable only when object & background class are distinctive. Optimal Thresholding using Otsu’s method: Requires maximizing the between class variance between the object & background class. Otsu’s method fails due to improper illumination on the image. Local thresholding using moving average is suitable for thresholding the hand written text images

Thank You