Chapter 10 Image Segmentation.

Slides:



Advertisements
Similar presentations
Chapter 3 Image Enhancement in the Spatial Domain.
Advertisements

DREAM PLAN IDEA IMPLEMENTATION Introduction to Image Processing Dr. Kourosh Kiani
Image Segmentation Image segmentation (segmentace obrazu) –division or separation of the image into segments (connected regions) of similar properties.
Segmentation and Region Detection Defining regions in an image.
Content Based Image Retrieval
Biomedical Image Analysis Rangaraj M. Rangayyan Ch. 5 Detection of Regions of Interest: Sections , Presentation March 3rd 2005 Jukka Parviainen.
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.
Machinen Vision and Dig. Image Analysis 1 Prof. Heikki Kälviäinen CT50A6100 Lectures 8&9: Image Segmentation Professor Heikki Kälviäinen Machine Vision.
Segmentation Divide the image into segments. Each segment:
Chapter 10 Image Segmentation.
The Segmentation Problem
Machinen Vision and Dig. Image Analysis 1 Prof. Heikki Kälviäinen CT50A6100 Lectures 8&9: Image Segmentation Professor Heikki Kälviäinen Machine Vision.
Image Segmentation Using Region Growing and Shrinking
CS292 Computational Vision and Language Segmentation and Region Detection.
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 )
Introduction to Image Processing Grass Sky Tree ? ? Review.
Chapter 10: Image Segmentation
What is Image Segmentation?
Segmentation Lucia Ballerini Digital Image Processing Lecture 8 Course book reading: GW 10.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 11 Representation & Description Chapter 11 Representation.
Edge Linking & Boundary Detection
Lecture 16 Image Segmentation 1.The basic concepts of segmentation 2.Point, line, edge detection 3.Thresh holding 4.Region-based segmentation 5.Segmentation.
Digital Image Processing CSC331
University of Kurdistan Digital Image Processing (DIP) Lecturer: Kaveh Mollazade, Ph.D. Department of Biosystems Engineering, Faculty of Agriculture,
© by Yu Hen Hu 1 ECE533 Digital Image Processing Image Segmentation.
Joonas Vanninen Antonio Palomino Alarcos.  One of the objectives of biomedical image analysis  The characteristics of the regions are examined later.
Introduction to Image Processing Grass Sky Tree ? ? Image Segmentation.
Digital Image Processing Lecture 18: Segmentation: Thresholding & Region-Based Prof. Charlene Tsai.
Image Segmentation and Morphological Processing Digital Image Processing in Life- Science Aviad Baram
Image Segmentation Chapter 10.
Chapter 10, Part II Edge Linking and Boundary Detection The methods discussed in the previous section yield pixels lying only on edges. This section.
G52IVG, School of Computer Science, University of Nottingham 1 Edge Detection and Image Segmentation.
Image Processing Segmentation 1.Process of partitioning a digital image into multiple segments (sets of pixels). 2. Clustering pixels into salient image.
Chapter 10, Part I.  Segmentation subdivides an image into its constituent regions or objects.  Image segmentation methods are generally based on two.
Chapter 10 Image Segmentation 國立雲林科技大學 電子工程系 張傳育 (Chuan-Yu Chang ) 博士 Office: ES 709 TEL: ext. 4337
Pixel Connectivity Pixel connectivity is a central concept of both edge- and region- based approaches to segmentation The notation of pixel connectivity.
主講者 : 陳建齊. Outline & Content 1. Introduction 2. Thresholding 3. Edge-based segmentation 4. Region-based segmentation 5. conclusion 2.
Digital Image Processing
Medical Image Analysis Image Segmentation Figures come from the textbook: Medical Image Analysis, by Atam P. Dhawan, IEEE Press, 2003.
Chapter 9: Image Segmentation
EE4328, Section 005 Introduction to Digital Image Processing Image Segmentation Zhou Wang Dept. of Electrical Engineering The Univ. of Texas at Arlington.
Image Segmentation Image segmentation (segmentace obrazu)
November 5, 2013Computer Vision Lecture 15: Region Detection 1 Basic Steps for Filtering in the Frequency Domain.
Image Segmentation Prepared by:- Prof. T.R.Shah Mechatronics Engineering Department U.V.Patel College of Engineering, Ganpat Vidyanagar.
Digital Image Processing Lecture 17: Segmentation: Canny Edge Detector & Hough Transform Prof. Charlene Tsai.
Machine Vision Edge Detection Techniques ENT 273 Lecture 6 Hema C.R.
Thresholding Foundation:. Thresholding In A: light objects in dark background To extract the objects: –Select a T that separates the objects from the.
Digital Image Processing CSC331
BYST Seg-1 DIP - WS2002: Segmentation Digital Image Processing Image Segmentation Bundit Thipakorn, Ph.D. Computer Engineering Department.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Unit-VII Image Segmentation.
Chapter 10: Image Segmentation The whole is equal to the sum of its parts. Euclid The whole is greater than the sum of its parts. Max Wertheimer.
Image Enhancement in the Spatial Domain.
Lecture z Chapter 10: Image Segmentation. Segmentation approaches 1) Gradient based: How different are pixels? 2) Thresholding: Converts grey-level images.
Digital Image Processing (DIP)
Machine Vision ENT 273 Lecture 4 Hema C.R.
Digital Image Processing (Digitaalinen kuvankäsittely) Exercise 5
Chapter 10 Image Segmentation
Detection of discontinuity using
Image Segmentation.
Image Segmentation – Edge Detection
Computer Vision Lecture 12: Image Segmentation II
Chap 10 Image Segmentation
ECE 692 – Advanced Topics in Computer Vision
Digital Image Processing
Chapter 10 – Image Segmentation
Digital Image Processing
Image Segmentation Using Region Growing and Shrinking
Presentation transcript:

Chapter 10 Image Segmentation

The goal is usually to find individual objects in an image. Chapter 10 Image Segmentation Image segmentation divides an image into regions that are connected and have some similarity within the region and some difference between adjacent regions. The goal is usually to find individual objects in an image. For the most part there are fundamentally two kinds of approaches to segmentation: discontinuity and similarity. Similarity may be due to pixel intensity, color or texture. Differences are sudden changes (discontinuities) in any of these, but especially sudden changes in intensity along a boundary line, which is called an edge.

Detection of Discontinuities There are three kinds of discontinuities of intensity: points, lines and edges. The most common way to look for discontinuities is to scan a small mask over the image. The mask determines which kind of discontinuity to look for.

Detection of Discontinuities Point Detection

Detection of Discontinuities Line Detection Only slightly more common than point detection is to find a one pixel wide line in an image. For digital images the only three point straight lines are only horizontal, vertical, or diagonal (+ or –45).

Detection of Discontinuities Line Detection

Detection of Discontinuities Edge Detection

Detection of Discontinuities Edge Detection

Detection of Discontinuities Edge Detection

Detection of Discontinuities Edge Detection

Detection of Discontinuities Gradient Operators First-order derivatives: The gradient of an image f(x,y) at location (x,y) is defined as the vector: The magnitude of this vector: The direction of this vector:

Detection of Discontinuities Gradient Operators Roberts cross-gradient operators Prewitt operators Sobel operators

Detection of Discontinuities Gradient Operators Prewitt masks for detecting diagonal edges Sobel masks for

Detection of Discontinuities Gradient Operators: Example

Detection of Discontinuities Gradient Operators: Example

Detection of Discontinuities Gradient Operators: Example

Detection of Discontinuities Gradient Operators Second-order derivatives: (The Laplacian) The Laplacian of an 2D function f(x,y) is defined as Two forms in practice:

Detection of Discontinuities Gradient Operators Consider the function: The Laplacian of h is The Laplacian of a Gaussian sometimes is called the Mexican hat function. It also can be computed by smoothing the image with the Gaussian smoothing mask, followed by application of the Laplacian mask. A Gaussian function The Laplacian of a Gaussian (LoG)

Detection of Discontinuities Gradient Operators

Detection of Discontinuities Gradient Operators: Example Sobel gradient Laplacian mask Gaussian smooth function

Detection of Discontinuities Gradient Operators: Example

Edge Linking and Boundary Detection Local Processing Two properties of edge points are useful for edge linking: the strength (or magnitude) of the detected edge points their directions (determined from gradient directions) This is usually done in local neighborhoods. Adjacent edge points with similar magnitude and direction are linked. For example, an edge pixel with coordinates (x0,y0) in a predefined neighborhood of (x,y) is similar to the pixel at (x,y) if

Edge Linking and Boundary Detection Local Processing: Example In this example, we can find the license plate candidate after edge linking process.

Edge Linking and Boundary Detection Global Processing via the Hough Transform Hough transform: a way of finding edge points in an image that lie along a straight line. Example: xy-plane v.s. ab-plane (parameter space)

Edge Linking and Boundary Detection Global Processing via the Hough Transform The Hough transform consists of finding all pairs of values of  and  which satisfy the equations that pass through (x,y). These are accumulated in what is basically a 2-dimensional histogram. When plotted these pairs of  and  will look like a sine wave. The process is repeated for all appropriate (x,y) locations.

Edge Linking and Boundary Detection Hough Transform Example The intersection of the curves corresponding to points 1,3,5 2,3,4 1,4

Edge Linking and Boundary Detection Hough Transform Example

Thresholding Assumption: the range of intensity levels covered by objects of interest is different from the background. Single threshold Multiple threshold

The Role of Illumination Thresholding The Role of Illumination

The Role of Illumination Thresholding The Role of Illumination (a) (c) (d) (e)

Basic Global Thresholding

Basic Global Thresholding

Basic Adaptive Thresholding

Basic Adaptive Thresholding How to solve this problem?

Basic Adaptive Thresholding Answer: subdivision

Optimal Global and Adaptive Thresholding This method treats pixel values as probability density functions. The goal of this method is to minimize the probability of misclassifying pixels as either object or background. There are two kinds of error: mislabeling an object pixel as background, and mislabeling a background pixel as object.

Use of Boundary Characteristics Thresholding Use of Boundary Characteristics

Thresholds Based on Several Variables Thresholding Thresholds Based on Several Variables Color image

Region-Based Segmentation Edges and thresholds sometimes do not give good results for segmentation. Region-based segmentation is based on the connectivity of similar pixels in a region. Each region must be uniform. Connectivity of the pixels within the region is very important. There are two main approaches to region-based segmentation: region growing and region splitting.

Region-Based Segmentation Basic Formulation Let R represent the entire image region. Segmentation is a process that partitions R into subregions, R1,R2,…,Rn, such that where P(Rk): a logical predicate defined over the points in set Rk For example: P(Rk)=TRUE if all pixels in Rk have the same gray level.

Region-Based Segmentation Region Growing

Region-Based Segmentation Region Growing Fig. 10.41 shows the histogram of Fig. 10.40 (a). It is difficult to segment the defects by thresholding methods. (Applying region growing methods are better in this case.) Figure 10.41 Figure 10.40(a)

Region splitting is the opposite of region growing. Region-Based Segmentation Region Splitting and Merging Region splitting is the opposite of region growing. First there is a large region (possible the entire image). Then a predicate (measurement) is used to determine if the region is uniform. If not, then the method requires that the region be split into two regions. Then each of these two regions is independently tested by the predicate (measurement). This procedure continues until all resulting regions are uniform.

Region-Based Segmentation Region Splitting The main problem with region splitting is determining where to split a region. One method to divide a region is to use a quadtree structure. Quadtree: a tree in which nodes have exactly four descendants.

The split and merge procedure: Region-Based Segmentation Region Splitting and Merging The split and merge procedure: Split into four disjoint quadrants any region Ri for which P(Ri) = FALSE. Merge any adjacent regions Rj and Rk for which P(RjURk) = TRUE. (the quadtree structure may not be preserved) Stop when no further merging or splitting is possible.

Segmentation by Morphological Watersheds The concept of watersheds is based on visualizing an image in three dimensions: two spatial coordinates versus gray levels. In such a topographic interpretation, we consider three types of points: (a) points belonging to a regional minimum (b) points at which a drop of water would fall with certainty to a single minimum (c) points at which water would be equally likely to fall to more than one such minimum The principal objective of segmentation algorithms based on these concepts is to find the watershed lines.

Segmentation by Morphological Watersheds Example

Segmentation by Morphological Watersheds Example

Segmentation by Morphological Watersheds Example

The Use of Motion in Segmentation ADI: accumulative difference image

The Use of Motion in Segmentation