Chapter 10 – Image Segmentation

Slides:



Advertisements
Similar presentations
E.G.M. PetrakisImage Segmentation1 Segmentation is the process of partitioning an image into regions –region: group of connected pixels with similar properties.
Advertisements

Image Segmentation Image segmentation (segmentace obrazu) –division or separation of the image into segments (connected regions) of similar properties.
電腦視覺 Computer and Robot Vision I Chapter2: Binary Machine Vision: Thresholding and Segmentation Instructor: Shih-Shinh Huang 1.
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.
Medical Imaging Mohammad Dawood Department of Computer Science University of Münster Germany.
Medical Imaging Mohammad Dawood Department of Computer Science University of Münster Germany.
Thresholding Otsu’s Thresholding Method Threshold Detection Methods Optimal Thresholding Multi-Spectral Thresholding 6.2. Edge-based.
Chapter 10 Image Segmentation.
Course Website: Digital Image Processing Image Segmentation: Thresholding.
Mean-Shift Algorithm and Its Application Bohyung Han
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.
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
Digital Image Processing In The Name Of God Digital Image Processing Lecture8: Image Segmentation M. Ghelich Oghli By: M. Ghelich Oghli
University of Kurdistan Digital Image Processing (DIP) Lecturer: Kaveh Mollazade, Ph.D. Department of Biosystems Engineering, Faculty of Agriculture,
CS 376b Introduction to Computer Vision 02 / 22 / 2008 Instructor: Michael Eckmann.
Medical Imaging Dr. Mohammad Dawood Department of Computer Science University of Münster Germany.
Chap. 9: Image Segmentation Jen-Chang Liu, Motivation Segmentation subdivides an image into its constituent regions or objects Example: 生物細胞在影像序列中的追蹤.
© by Yu Hen Hu 1 ECE533 Digital Image Processing Image Segmentation.
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.
Image Segmentation and Edge Detection Digital Image Processing Instructor: Dr. Cheng-Chien LiuCheng-Chien Liu Department of Earth Sciences National Cheng.
CS654: Digital Image Analysis
23 November Md. Tanvir Al Amin (Presenter) Anupam Bhattacharjee Department of Computer Science and Engineering,
Course 2 Image Filtering. Image filtering is often required prior any other vision processes to remove image noise, overcome image corruption and change.
HMM - Part 2 The EM algorithm Continuous density HMM.
Image Segmentation by Histogram Thresholding Venugopal Rajagopal CIS 581 Instructor: Longin Jan Latecki.
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
Medical Image Analysis Dr. Mohammad Dawood Department of Computer Science University of Münster Germany.
Thresholding Foundation:. Thresholding In A: light objects in dark background To extract the objects: –Select a T that separates the objects from the.
Lecture z Chapter 10: Image Segmentation. Segmentation approaches 1) Gradient based: How different are pixels? 2) Thresholding: Converts grey-level images.
Image Subtraction Mask mode radiography h(x,y) is the mask.
Digital Image Processing (DIP)
Machine Vision ENT 273 Lecture 4 Hema C.R.
CS479/679 Pattern Recognition Dr. George Bebis
Chapter 10 Image Segmentation
CSSE463: Image Recognition Day 21
IMAGE SEGMENTATION USING THRESHOLDING
Image Segmentation – Edge Detection
Classification of unlabeled data:
: Chapter 9: Image Segmentation
Digital Image Processing
Image Enhancement.
Image Analysis Image Restoration.
Binary Image Analysis: Part 1 Readings: Chapter 3: 3.1, 3.4, 3.8
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
Image Enhancement in the Spatial Domain
Digital Image Processing
Binary Image Analysis used in a variety of applications:
Binary Image Analysis: Part 1 Readings: Chapter 3: 3.1, 3.4, 3.8
CSC 381/481 Quarter: Fall 03/04 Daniela Stan Raicu
Image Compression Purposes Requirements Types
Image Segmentation.
Histogram Equalization
A Block Based MAP Segmentation for Image Compression
Computer and Robot Vision I
Binary Image Analysis used in a variety of applications:
Presentation transcript:

Chapter 10 – Image Segmentation DIGITAL IMAGE PROCESSING Chapter 10 – Image Segmentation Instructor: Harikanth Pasinibilli mr.harikanth@gmail.com harikanth@gvpcew.ac.in

Road map of chapter 10 Segmentation Using Morphological watersheds 10.1 10.1 10.2 10.2 10.3 10.3 10.4 10.4 10.5 10.5 10.6 10.6 Segmentation Using Morphological watersheds Fundamentals Region-Based Segmentation Thresholding Image Smoothing Using Frequency Domain Filters The Use of Motion in Segmentation Point, Line and Edge Detection 10.1- Fundamentals 10.2- Point, Line and Edge Detection 10.3- Thresholding 10.4- Region-Based Segmentation 10.5 - Segmentation Using Morphological watersheds 10.6- The Use of Motion in Segmentation (P. Harikanth)

Thresholding (P. Harikanth)

Thresholding Foundation Foundation Basic Global Thresholding 10.1- Fundamentals 10.2- Point, Line and Edge Detection 10.3- Thresholding 10.4- Region-Based Segmentation 10.5 - Segmentation Using Morphological watersheds 10.6- The Use of Motion in Segmentation Foundation Foundation Basic Global Thresholding Optimum Global Thresholding Using Otsu’s Method Using Image Smoothing to improve Global Thresholding Using Edges to improve Global thresholding Multiple Thresholds Variable Thresholding Multivariable Thresholding (P. Harikanth)

Thresholding Foundation image with dark background and a light object image with dark background and two light objects 10.1- Fundamentals 10.2- Point, Line and Edge Detection 10.3- Thresholding 10.4- Region-Based Segmentation 10.5 - Segmentation Using Morphological watersheds 10.6- The Use of Motion in Segmentation (P. Harikanth)

Thresholding a point (x,y) belongs to T depends on Foundation- Multilevel thresholding a point (x,y) belongs to to an object class if T1 < f(x,y)  T2 to another object class if f(x,y) > T2 to background if f(x,y)  T1 T depends on only f(x,y) : only on gray-level values  Global threshold both f(x,y) and p(x,y) : on gray-level values and its neighbors  Local threshold 10.1- Fundamentals 10.2- Point, Line and Edge Detection 10.3- Thresholding 10.4- Region-Based Segmentation 10.5 - Segmentation Using Morphological watersheds 10.6- The Use of Motion in Segmentation (P. Harikanth)

Thresholding f(x,y) = i(x,y) r(x,y) Foundation-The Role of Illumination easily use global thresholding object and background are separated f(x,y) = i(x,y) r(x,y) a). computer generated reflectance function b). histogram of reflectance function c). computer generated illumination function (poor) d). product of a). and c). e). histogram of product image difficult to segment (P. Harikanth)

Thresholding Foundation Basic Global Thresholding 10.1- Fundamentals 10.2- Point, Line and Edge Detection 10.3- Thresholding 10.4- Region-Based Segmentation 10.5 - Segmentation Using Morphological watersheds 10.6- The Use of Motion in Segmentation Foundation Basic Global Thresholding Basic Global Thresholding Optimum Global Thresholding Using Otsu’s Method Using Image Smoothing to improve Global Thresholding Using Edges to improve Global thresholding Multiple Thresholds Variable Thresholding Multivariable Thresholding (P. Harikanth)

Thresholding Basic Global Thresholding 10.1- Fundamentals 10.2- Point, Line and Edge Detection 10.3- Thresholding 10.4- Region-Based Segmentation 10.5 - Segmentation Using Morphological watersheds 10.6- The Use of Motion in Segmentation based on visual inspection of histogram Select an initial estimate for T. Segment the image using T. This will produce two groups of pixels: G1 consisting of all pixels with gray level values > T and G2 consisting of pixels with gray level 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 = 0.5 (1 + 2) Repeat steps 2 through 4 until the difference in T in successive iterations is smaller than a predefined parameter To. (P. Harikanth)

Thresholding Basic Global Thresholding-Example: Heuristic method note: the clear valley of the histogram and the effective of the segmentation between object and background 10.1- Fundamentals 10.2- Point, Line and Edge Detection 10.3- Thresholding 10.4- Region-Based Segmentation 10.5 - Segmentation Using Morphological watersheds 10.6- The Use of Motion in Segmentation T0 = 0 3 iterations with result T = 125 (P. Harikanth)

Thresholding Foundation Basic Global Thresholding 10.1- Fundamentals 10.2- Point, Line and Edge Detection 10.3- Thresholding 10.4- Region-Based Segmentation 10.5 - Segmentation Using Morphological watersheds 10.6- The Use of Motion in Segmentation Basic Global Thresholding Optimum Global Thresholding Using Otsu’s Method Optimum Global Thresholding Using Otsu’s Method Using Image Smoothing to improve Global Thresholding Using Edges to improve Global thresholding Multiple Thresholds Variable Thresholding Multivariable Thresholding (P. Harikanth)

Thresholding Otsu’s Method Assumptions Optimum Global Thresholding Using Otsu’s Method Otsu’s Method 10.1- Fundamentals 10.2- Point, Line and Edge Detection 10.3- Thresholding 10.4- Region-Based Segmentation 10.5 - Segmentation Using Morphological watersheds 10.6- The Use of Motion in Segmentation Assumptions It does not depend on modeling the probability density functions. It does assume a bimodal histogram distribution (P. Harikanth)

Thresholding Otsu’s Method Optimum Global Thresholding Using Otsu’s Method Otsu’s Method 10.1- Fundamentals 10.2- Point, Line and Edge Detection 10.3- Thresholding 10.4- Region-Based Segmentation 10.5 - Segmentation Using Morphological watersheds 10.6- The Use of Motion in Segmentation Segmentation is based on “region homogeneity”. Region homogeneity can be measured using variance (i.e., regions with high homogeneity will have low variance). Otsu’s method selects the threshold by minimizing the within-class variance. (P. Harikanth)

Thresholding Optimum Global Thresholding Using Otsu’s Method T Otsu’s Method (cont’d) Mean andVariance 10.1- Fundamentals 10.2- Point, Line and Edge Detection 10.3- Thresholding 10.4- Region-Based Segmentation 10.5 - Segmentation Using Morphological watersheds 10.6- The Use of Motion in Segmentation Consider an image with L gray levels and its normalized histogram P(i) is the normalized frequency of i. Assuming that we have set the threshold at T, the normalized fraction of pixels that will be classified as background and object will be: T object background (P. Harikanth)

Thresholding Optimum Global Thresholding Using Otsu’s Method 10.1- Fundamentals 10.2- Point, Line and Edge Detection 10.3- Thresholding 10.4- Region-Based Segmentation 10.5 - Segmentation Using Morphological watersheds 10.6- The Use of Motion in Segmentation The mean gray-level value of the background and the object pixels will be: The mean gray-level value over the whole image (“grand” mean) is: (P. Harikanth)

Thresholding Optimum Global Thresholding Using Otsu’s Method 10.1- Fundamentals 10.2- Point, Line and Edge Detection 10.3- Thresholding 10.4- Region-Based Segmentation 10.5 - Segmentation Using Morphological watersheds 10.6- The Use of Motion in Segmentation The variance of the background and the object pixels will be: The variance of the whole image is: (P. Harikanth)

17 Thresholding Optimum Global Thresholding Using Otsu’s Method Otsu’s Method (cont’d) Within-class and between-class variance 10.1- Fundamentals 10.2- Point, Line and Edge Detection 10.3- Thresholding 10.4- Region-Based Segmentation 10.5 - Segmentation Using Morphological watersheds 10.6- The Use of Motion in Segmentation It can be shown that the variance of the whole image can be written as follows: within-class variance should be minimized! should be maximized! between-class variance (P. Harikanth)

Thresholding Optimum Global Thresholding Using Otsu’s Method 10.1- Fundamentals 10.2- Point, Line and Edge Detection 10.3- Thresholding 10.4- Region-Based Segmentation 10.5 - Segmentation Using Morphological watersheds 10.6- The Use of Motion in Segmentation Otsu’s Method (cont’d) Determining the threshold Since the total variance does not depend on T, the T that minimizes will also maximize Let us rewrite as follows: Find the T value that maximizes where (P. Harikanth)

Thresholding Optimum Global Thresholding Using Otsu’s Method Otsu’s Method (cont’d) Determining the threshold 10.1- Fundamentals 10.2- Point, Line and Edge Detection 10.3- Thresholding 10.4- Region-Based Segmentation 10.5 - Segmentation Using Morphological watersheds 10.6- The Use of Motion in Segmentation Start from the beginning of the histogram and test each gray- level value for the possibility of being the threshold T that maximizes (P. Harikanth)

Thresholding Drawbacks of the Otsu’s method Optimum Global Thresholding Using Otsu’s Method Otsu’s Method (cont’d) 10.1- Fundamentals 10.2- Point, Line and Edge Detection 10.3- Thresholding 10.4- Region-Based Segmentation 10.5 - Segmentation Using Morphological watersheds 10.6- The Use of Motion in Segmentation Drawbacks of the Otsu’s method The method assumes that the histogram of the image is bimodal (i.e., two classes). The method breaks down when the two classes are very unequal (i.e., the classes have very different sizes) In this case, may have two maxima. The correct maximum is not necessary the global one. The method does not work well with variable illumination. (P. Harikanth)

Thresholding Optimum Global Thresholding Using Otsu’s Method Otsu’s Method (cont’d) 10.1- Fundamentals 10.2- Point, Line and Edge Detection 10.3- Thresholding 10.4- Region-Based Segmentation 10.5 - Segmentation Using Morphological watersheds 10.6- The Use of Motion in Segmentation (P. Harikanth)

Thresholding Foundation Basic Global Thresholding 10.1- Fundamentals 10.2- Point, Line and Edge Detection 10.3- Thresholding 10.4- Region-Based Segmentation 10.5 - Segmentation Using Morphological watersheds 10.6- The Use of Motion in Segmentation Foundation Basic Global Thresholding Optimum Global Thresholding Using Otsu’s Method Using Image Smoothing to improve Global Thresholding Using Image Smoothing to improve Global Thresholding Using Edges to improve Global thresholding Multiple Thresholds Variable Thresholding Multivariable Thresholding (P. Harikanth)

Thresholding Using Image Smoothing to improve Global Thresholding 10.1- Fundamentals 10.2- Point, Line and Edge Detection 10.3- Thresholding 10.4- Region-Based Segmentation 10.5 - Segmentation Using Morphological watersheds 10.6- The Use of Motion in Segmentation (P. Harikanth)

Thresholding Foundation Basic Global Thresholding 10.1- Fundamentals 10.2- Point, Line and Edge Detection 10.3- Thresholding 10.4- Region-Based Segmentation 10.5 - Segmentation Using Morphological watersheds 10.6- The Use of Motion in Segmentation Basic Global Thresholding Optimum Global Thresholding Using Otsu’s Method Using Image Smoothing to improve Global Thresholding Using Edges to improve Global thresholding Using Edges to improve Global thresholding Multiple Thresholds Variable Thresholding Multivariable Thresholding (P. Harikanth)

Thresholding Using Edges to improve Global thresholding 10.1- Fundamentals 10.2- Point, Line and Edge Detection 10.3- Thresholding 10.4- Region-Based Segmentation 10.5 - Segmentation Using Morphological watersheds 10.6- The Use of Motion in Segmentation (P. Harikanth)

Thresholding Using Edges to improve Global thresholding 10.1- Fundamentals 10.2- Point, Line and Edge Detection 10.3- Thresholding 10.4- Region-Based Segmentation 10.5 - Segmentation Using Morphological watersheds 10.6- The Use of Motion in Segmentation (P. Harikanth)

Using Edges to improve Global thresholding 10.1- Fundamentals 10.2- Point, Line and Edge Detection 10.3- Thresholding 10.4- Region-Based Segmentation 10.5 - Segmentation Using Morphological watersheds 10.6- The Use of Motion in Segmentation (P. Harikanth)

Using Edges to improve Global thresholding 10.1- Fundamentals 10.2- Point, Line and Edge Detection 10.3- Thresholding 10.4- Region-Based Segmentation 10.5 - Segmentation Using Morphological watersheds 10.6- The Use of Motion in Segmentation (P. Harikanth)

Thresholding Foundation Basic Global Thresholding 10.1- Fundamentals 10.2- Point, Line and Edge Detection 10.3- Thresholding 10.4- Region-Based Segmentation 10.5 - Segmentation Using Morphological watersheds 10.6- The Use of Motion in Segmentation Basic Global Thresholding Optimum Global Thresholding Using Otsu’s Method Using Image Smoothing to improve Global Thresholding Using Edges to improve Global thresholding Multiple Thresholds Multiple Thresholds Variable Thresholding Multivariable Thresholding (P. Harikanth)

Thresholding Multiple Thresholds Otsu’s method can be extended to a 10.1- Fundamentals 10.2- Point, Line and Edge Detection 10.3- Thresholding 10.4- Region-Based Segmentation 10.5 - Segmentation Using Morphological watersheds 10.6- The Use of Motion in Segmentation Otsu’s method can be extended to a multiple thresholding method between-class variance can be reformulated as (P. Harikanth)

Thresholding Multiple Thresholds The K classes are separated by K-1 thresholds and these optimal thresholds can be solved by maximizing 10.1- Fundamentals 10.2- Point, Line and Edge Detection 10.3- Thresholding 10.4- Region-Based Segmentation 10.5 - Segmentation Using Morphological watersheds 10.6- The Use of Motion in Segmentation For example (two thresholds) (P. Harikanth)

Thresholding Multiple Thresholds The following relationships hold: 10.1- Fundamentals 10.2- Point, Line and Edge Detection 10.3- Thresholding 10.4- Region-Based Segmentation 10.5 - Segmentation Using Morphological watersheds 10.6- The Use of Motion in Segmentation The optimum thresholds can be found by : The image is then segmented by (P. Harikanth)

Thresholding Multiple Thresholds 10.1- Fundamentals 10.2- Point, Line and Edge Detection 10.3- Thresholding 10.4- Region-Based Segmentation 10.5 - Segmentation Using Morphological watersheds 10.6- The Use of Motion in Segmentation (P. Harikanth)

Thresholding Foundation Basic Global Thresholding 10.1- Fundamentals 10.2- Point, Line and Edge Detection 10.3- Thresholding 10.4- Region-Based Segmentation 10.5 - Segmentation Using Morphological watersheds 10.6- The Use of Motion in Segmentation Basic Global Thresholding Optimum Global Thresholding Using Otsu’s Method Using Image Smoothing to improve Global Thresholding Using Edges to improve Global thresholding Multiple Thresholds Variable Thresholding Variable Thresholding Multivariable Thresholding (P. Harikanth)