© 2002-2003 by Yu Hen Hu 1 ECE533 Digital Image Processing Image Segmentation.

Slides:



Advertisements
Similar presentations
Image Filtering. Outline Outline Concept of image filter  Focus on spatial image filter Various types of image filter  Smoothing, noise reductions 
Advertisements

E.G.M. PetrakisImage Segmentation1 Segmentation is the process of partitioning an image into regions –region: group of connected pixels with similar properties.
Image Segmentation Image segmentation (segmentace obrazu) –division or separation of the image into segments (connected regions) of similar properties.
Segmentation (2): edge detection
Image Segmentation Region growing & Contour following Hyeun-gu Choi Advisor: Dr. Harvey Rhody Center for Imaging Science.
1Ellen L. Walker Edges Humans easily understand “line drawings” as pictures.
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.
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.
EE663 Image Processing Edge Detection 2 Dr. Samir H. Abdul-Jauwad Electrical Engineering Department King Fahd University of Petroleum & Minerals.
2007Theo Schouten1 Segmentation, contour based A segmented image contains groupings of parts of an image that are homogenous in one or more properties:
Segmentation Divide the image into segments. Each segment:
Segmentation (Section 10.2)
Chapter 10 Image Segmentation.
Lecture 4: Edge Based Vision Dr Carole Twining Thursday 18th March 2:00pm – 2:50pm.
The Segmentation Problem
Chapter 2. Image Analysis. Image Analysis Domains Frequency Domain Spatial Domain.
Chapter 10: Image Segmentation
Segmentation Lucia Ballerini Digital Image Processing Lecture 8 Course book reading: GW 10.
October 14, 2014Computer Vision Lecture 11: Image Segmentation I 1Contours How should we represent contours? A good contour representation should meet.
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 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,
Chap. 9: Image Segmentation Jen-Chang Liu, Motivation Segmentation subdivides an image into its constituent regions or objects Example: 生物細胞在影像序列中的追蹤.
Edges. Edge detection schemes can be grouped in three classes: –Gradient operators: Robert, Sobel, Prewitt, and Laplacian (3x3 and 5x5 masks) –Surface.
Joonas Vanninen Antonio Palomino Alarcos.  One of the objectives of biomedical image analysis  The characteristics of the regions are examined later.
Mestrado em Ciência de Computadores Mestrado Integrado em Engenharia de Redes e Sistemas Informáticos VC 14/15 – TP8 Segmentation Miguel Tavares Coimbra.
Image Segmentation and Morphological Processing Digital Image Processing in Life- Science Aviad Baram
Chapter 10 Image Segmentation.
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.
Digital Image Processing & Pattern Analysis (CSCE 563) Image Segmentation Prof. Amr Goneid Department of Computer Science & Engineering The American University.
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
CS654: Digital Image Analysis Lecture 25: Hough Transform Slide credits: Guillermo Sapiro, Mubarak Shah, Derek Hoiem.
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities Prof. Charlene Tsai.
Course 8 Contours. Def: edge list ---- ordered set of edge point or fragments. Def: contour ---- an edge list or expression that is used to represent.
Image Segmentation Image segmentation (segmentace obrazu)
Edges and Lines Readings: Chapter 10:
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities May 2, 2005 Prof. Charlene Tsai.
Lecture 04 Edge Detection Lecture 04 Edge Detection Mata kuliah: T Computer Vision Tahun: 2010.
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.
TOPIC 12 IMAGE SEGMENTATION & MORPHOLOGY. Image segmentation is approached from three different perspectives :. Region detection: each pixel is assigned.
Computer Vision Image Features Instructor: Dr. Sherif Sami Lecture 4.
Instructor: Mircea Nicolescu Lecture 5 CS 485 / 685 Computer Vision.
Image Enhancement by Spatial Domain Filtering
Digital Image Processing
Digital Image Processing CSC331
Intro. ANN & Fuzzy Systems Lecture 20 Clustering (1)
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.
October 3, 2013Computer Vision Lecture 10: Contour Fitting 1 Edge Relaxation Typically, this technique works on crack edges: pixelpixelpixel pixelpixelpixelebg.
Digital Image Processing (DIP)
Chapter 10 Image Segmentation
Miguel Tavares Coimbra
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities Prof. Charlene Tsai.
Clustering and Segmentation
Detection of discontinuity using
Image Segmentation – Edge Detection
ECE 692 – Advanced Topics in Computer Vision
Fall 2012 Longin Jan Latecki
Digital Image Processing
Image Segmentation Image analysis: First step:
Digital Image Processing
IT472 Digital Image Processing
Presentation transcript:

© by Yu Hen Hu 1 ECE533 Digital Image Processing Image Segmentation

© by Yu Hen Hu 2 ECE533 Digital Image Processing What is Image Segmentation? l Segmentation: »Split or separate an image into regions »To facilitate recognition, understanding, and region of interests (ROI) processing l Ill-defined problem »The definition of a region is context- dependent

© by Yu Hen Hu 3 ECE533 Digital Image Processing Outline l Discontinuity Detection »Point, edge, line l Edge Linking and boundary detection l Thresholding l Region based segmentation l Segmentation by morphological watersheds l Motion segmentation

© by Yu Hen Hu 4 ECE533 Digital Image Processing Point Detection Apply detection mask, followed by threshold detection

© by Yu Hen Hu 5 ECE533 Digital Image Processing Line Detection Useful for detecting lines with width = 1.

© by Yu Hen Hu 6 ECE533 Digital Image Processing Edge Detection l Points and lines are special cases of edges. l Edge detection is difficult since it is not clear what amounts to an edge!

© by Yu Hen Hu 7 ECE533 Digital Image Processing Edge Detection

© by Yu Hen Hu 8 ECE533 Digital Image Processing Impact of Noise

© by Yu Hen Hu 9 ECE533 Digital Image Processing First & Second Derivatives of Edges

© by Yu Hen Hu 10 ECE533 Digital Image Processing Edge Detection Operators Figure 10.8, 10.9

© by Yu Hen Hu 11 ECE533 Digital Image Processing Approximate Gradient with L1 Norm

© by Yu Hen Hu 12 ECE533 Digital Image Processing Effects of Smoothing

© by Yu Hen Hu 13 ECE533 Digital Image Processing Emphasizing Diagonal Edges Use diagonal Sobel operator shown in figure 10.9(d)

© by Yu Hen Hu 14 ECE533 Digital Image Processing Laplacian and Mexican Hat LoG operator

© by Yu Hen Hu 15 ECE533 Digital Image Processing Comparison of Edge Detection originalSobelLoG Threshold LoG Zero-crossing Gaussian smooth operator Laplacian operator Gradient method: suitable for abrupt gray level transition, sensitive to noise 2 nd order derivative: good for smooth edges

© by Yu Hen Hu 16 ECE533 Digital Image Processing Boundary Extraction l Edge detection classifies individual pixels to be on an edge or not. l Isolated edge pixels is more likely to be noise rather than a true edge. l Adjacent or connected edge pixels should be linked together to form boundary of regions that segment the image. l Edge linking methods: »Local processing »Hough transform »Graphic theoretic method »Dynamic programming

© by Yu Hen Hu 17 ECE533 Digital Image Processing Local Processing Edge Linking An edge pixel will be linked to another edge pixel within its own neighborhood if they meet two criteria:

© by Yu Hen Hu 18 ECE533 Digital Image Processing Global Processing Edge Linking: Hough Transform Find a subset of n points on an image that lie on the same straight line. Write each line formed by a pair of these points as y i = ax i + b Then plot them on the parameter space (a, b): b = x i a + y i All points (x i, y i ) on the same line will pass the same parameter space point (a, b). Quantize the parameter space and tally # of times each points fall into the same accumulator cell. The cell count = # of points in the same line.

© by Yu Hen Hu 19 ECE533 Digital Image Processing Hough Transform in (  ) plane To avoid infinity slope, use polar coordinate to represent a line. Q points on the same straight line gives Q sinusoidal curves in (   ) plane intersecting at the same (  i  i ) cell.

© by Yu Hen Hu 20 ECE533 Digital Image Processing Example

© by Yu Hen Hu 21 ECE533 Digital Image Processing Example

© by Yu Hen Hu 22 ECE533 Digital Image Processing Threshold Segmentation

© by Yu Hen Hu 23 ECE533 Digital Image Processing Effect of Illumination on Thresholding

© by Yu Hen Hu 24 ECE533 Digital Image Processing Threshold Example

© by Yu Hen Hu 25 ECE533 Digital Image Processing Needs of Adaptive Threshold

© by Yu Hen Hu 26 ECE533 Digital Image Processing Needs of Local Threshold Properly and improperly segmented subimages from Fig Further division of the sub-image, and result of adaptive thresholding

© by Yu Hen Hu 27 ECE533 Digital Image Processing Threshold: Hypothesis Testing l Question: »Does this pixel with intensity z belong to a region (edge) or not? l Hypothesis »H 0 : Null. It does not »H 1 : Alt. It does l Likelihood »p(z|z  H 0 ) = p 1 (z) »p(z| z  H 1 ) = p 2 (z) l Prior »P 1 = p(z  H 0 ), »P 2 = p(z  H 1 ) l Maximum likelihood: »Pixel z belongs to a region if p(z|H 1 ) > p(z|H 0 ) l Bayesian: P 2 p(z|H 1 ) > P 1 p(z|H 0 ) l Sufficient statistic: z > T

© by Yu Hen Hu 28 ECE533 Digital Image Processing Uni-model Gaussian Example l Given Set P 1 p 1 (T) = P 2 p 2 (T) and solve for T. l Take log on both sides and simplify to AT 2 + BT + C = 0

© by Yu Hen Hu 29 ECE533 Digital Image Processing Clustering Problem Statement l Given a set of vectors {x k ; 1  k  K}, find a set of M clustering centers {w(i); 1  i  c} such that each x k is assigned to a cluster, say, w(i*), according to a distance (distortion, similarity) measure d(x k, w(i)) such that the average distortion is minimized. l I(x k,i) = 1 if x is assigned to cluster i with cluster center w(I); and = 0 otherwise -- indicator function.

© by Yu Hen Hu 30 ECE533 Digital Image Processing k-means Clustering Algorithm Initialization: Initial cluster center w(i); 1  i  c, D(–1)= 0, I(x k,i) = 0, 1  i  c, 1  k  K; Repeat (A) Assign cluster membership (Expectation step) Evaluate d(x k, w(i)); 1  i  c, 1  k  K I(x k,i) = 1 if d(x k, w(i)) < d(x k, w(j)), j  i; = 0; otherwise. 1  k  K (B) Evaluate distortion D: (C) Update code words according to new assignment (Maximization) (D) Check for convergence if 1–D(Iter–1)/D(Iter) < , then convergent = TRUE,

© by Yu Hen Hu 31 ECE533 Digital Image Processing A Numerical Example x = {  1,  2,0,2,3,4}, W={2.1, 2.3} Assign membership 2.1: {  1,  2, 0, 2} 2.3: {3, 4} Distortion D = (  1  2.1) 2 + (  2  2.1) 2 + (0  2.1) 2 + (2  2.1) 2 + (3  2.3) 2 + (4  2.3) 2 3. Update W to minimize distortion W 1 = (  1  2+0+2)/4 = .25 W 2 = (3+4)/2 = Reassign membership .25: {  1,  2, 0} 3.5: {2, 3, 4} 5. Update W: w 1 = (  1  2+0)/3 =  1 w 2 = (2+3+4)/3 = 3. Converged.

© by Yu Hen Hu 32 ECE533 Digital Image Processing Thresholding Example Threshdemo.m