Chap. 9: Image Segmentation Jen-Chang Liu, 2005. Motivation Segmentation subdivides an image into its constituent regions or objects Example: 生物細胞在影像序列中的追蹤.

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

Spatial Filtering (Chapter 3)
Spatial Filtering.
Image Filtering. Outline Outline Concept of image filter  Focus on spatial image filter Various types of image filter  Smoothing, noise reductions 
EDGE DETECTION ARCHANA IYER AADHAR AUTHENTICATION.
E.G.M. PetrakisImage Segmentation1 Segmentation is the process of partitioning an image into regions –region: group of connected pixels with similar properties.
July 27, 2002 Image Processing for K.R. Precision1 Image Processing Training Lecture 1 by Suthep Madarasmi, Ph.D. Assistant Professor Department of Computer.
Image Enhancement in the Spatial Domain II Jen-Chang Liu, 2006.
Digital Image Processing
Digital Image Processing In The Name Of God Digital Image Processing Lecture3: Image enhancement M. Ghelich Oghli By: M. Ghelich Oghli
Content Based Image Retrieval
6/9/2015Digital Image Processing1. 2 Example Histogram.
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.
Chap 4-2. Frequency domain processing Jen-Chang Liu, 2006.
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.
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.
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 )
ECE 472/572 - Digital Image Processing Lecture 4 - Image Enhancement - Spatial Filter 09/06/11.
Introduction to Image Processing Grass Sky Tree ? ? Review.
Chapter 10: Image Segmentation
What is Image Segmentation?
Spatial Filtering: Basics
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,
© by Yu Hen Hu 1 ECE533 Digital Image Processing 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
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.
Chapter 4 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
Digital Image Processing Lecture 10: Image Restoration March 28, 2005 Prof. Charlene Tsai.
Digital Image Processing Lecture 10: Image Restoration
Spatial Filtering.
EE 4780 Edge Detection.
Image Subtraction Mask mode radiography h(x,y) is the mask.
COMP322/S2000/L171 Robot Vision System Major Phases in Robot Vision Systems: A. Data (image) acquisition –Illumination, i.e. lighting consideration –Lenses,
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities Prof. Charlene Tsai.
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
Evaluation of Image Segmentation algorithms By Dr. Rajeev Srivastava.
1 Mathematic Morphology used to extract image components that are useful in the representation and description of region shape, such as boundaries extraction.
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities May 2, 2005 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
Digital Image Processing Week V Thurdsak LEAUHATONG.
Digital Image Processing CSC331
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.
Digital Image Processing (DIP)
Chapter 10 Image Segmentation
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities Prof. Charlene Tsai.
Image Segmentation – Edge Detection
Digital Image Processing
Image Segmentation Image analysis: First step:
Chapter 10 – Image Segmentation
Digital Image Processing
IT472 Digital Image Processing
Presentation transcript:

Chap. 9: Image Segmentation Jen-Chang Liu, 2005

Motivation Segmentation subdivides an image into its constituent regions or objects Example: 生物細胞在影像序列中的追蹤

Basics of image segmentation Input: image => Output: attributes Segmentation of nontrivial image is one of the most difficult tasks in image processing Ex. Separate the sky, clouds, and mountains

Two approaches Based on intensity values discontinuity Partition an image based on abrupt changes, such as edges Based on intensity similarity in regions Partition an image into regions that are similar according to some criteria

Outline Point, line detection Edge detection Thresholding Use of motion in segmentation Pixel discontinuity Region similarity

Detection of discontinuity Three basic types of gray-level discontinuity Points, lines, and edges Method: run a mask through the image Input: 3x3 region z 1, z 2, …, z 9 Output: z 5 -> R z1z1 z2z2 z3z3 z4z4 z5z5 z6z6 z7z7 z8z8 z9z9 w1w1 w2w2 w3w3 w4w4 w5w5 w6w6 w7w7 w8w8 w9w9

Point detection Point detection mask 1.Mask operation over whole image 2.Threshold: |R|  T 渦輪葉片 X 光 thresholding point mask

Problem with previous point detection Assume single-pixel discontinuity Bigger region of point? Assume simple background: homogeneous background Noisy environment ? Selection of threshold T

Line detection 1. Line detection mask 2. Which orientation? Thresholding: |R i |  |R j |  T Ex. A thin line: Hori. R 1 =8 45 o R 2 =2 -45 o R 4 =2 Veri. R 3 =2

Example: single-line detection Input: binary imageabsolute value after – 45 o mask |R|  T 1 Detect line that are one pixel thick 2 Isolated “ line points ”

Outline Point, line detection Edge detection Boundary with arbitrary shape Thresholding Use of motion in segmentation

Definition of edges? Intuition of edge: set of connected pixels that line one the boundary between two regions Model of digital edge

Two factors affects acquired edges Blur 模糊化 Sampling rate, illumination condition zoom Noise 雜訊

Method of edge detection: derivatives Edge detection method Magnitude of 1 st derivatives  T 1. Sign determines Dark or light region 2. Zero-crossing

Methods: 1 st derivatives 1st derivatives 2-D gradient Magnitude = Direction =

Example: Sobel filter Original: 1200x1600 Ver. Hor. abs +

Effects of noise Unwanted Detailed Structure !

1st 2nd Noisy edges Fail to detect

Reduce noise: Smoothing Smooth with 5x5 average filter Ver. Hor. abs +

Review 2nd derivative f(x) f(x-1) 1st derivative 2nd derivative f(x)-f(x-1) f(x+1)-2f(x)+f(x-1)

Method: 2nd derivative Edge detection method Magnitude of 1 st derivatives  T 1. Sign determines Dark or light region 2. Zero-crossing 2nd derivative mask Laplacian

Example: 2nd derivative originalSobel Gaussian Smoothing Laplacian (2nd derivative) LoG Threshold(LoG)Zero-crossing of LoG

Outline Point, line detection Edge detection Thresholding Use of motion in segmentation

Foundation of thresholding Idea: object and background pixels have gray levels grouped into two dominant modes Original imagehistogram

Foundation of thresholding Input f(x,y), given threshold T

Issues of thresholding Selection of threshold T ? Complex environment – illumination Multiple thresholds – more than one object Global threshold Local threshold Thresholding as a multi-variable function: g(x,y) = T[ f(x,y), x, y, p(x,y) ] Adaptive: Depend on position Local: local property func.

1. Automatic selection of T 1. Select an initial T Average gray level Mean of max. and min. gray level 2. Segment the image using T T G1G1 G2G2 3. Calculate mean of G 1 and G 2   4. New threshold: T 2 = 0.5(   +   ) T2T2 5. Repeat steps 2~4 until difference in successive T is small

Example: automatically select T fingerprint Initial: gray level mean 3 iterations T = 125.4

2. Effects of illumination Recall: f(x,y)=i(x,y) r(x,y) Illumination source scene reflection illumination:reflectance:

Example: illumination Original image histogram Illumination source x histogram

Example: bad histogram * The gray levels of the object is mixed with background

Matlab code I = imread( ‘ PIC00074.JPG ’, ‘ jpg ’ ); I = rgb2gray(I); I = double( reshape(I, prod(size(I)), 1) ); X=0:255; Y = hist(I, X); bar(Y ’ );

Why illumination is hard to handle? f(x,y)=i(x,y) r(x,y) => z(x,y) = ln f(x,y) = ln i(x,y) + ln r(x,y) Suppose they are independent random variables Histogram (distribution) convolution

3. Multiple thresholds Multiple objects or bad illumination Thresholds:

Result of thresholding 4 gray levels

4. Motivation for adaptive thresholding histogram A single Global threshold

Adaptive local thresholding Subdivide image into blocks Q: Improperly segmented subimages !

Iterative subdivision histogram subdivision

Outline Point, line detection Edge detection Thresholding Use of motion in segmentation

Example:

Motion as a clue to extract object Spatial technique Reference image f(x,y,1) next image f(x,y,2) time index Thresholded difference image 1 if |d(x,y)| > T 0 otherwise

Image difference + thresholding difference >T>T

Use more than one images in time: eliminate noise Reference image R(x,y) Image f(x,y,2) Accumulative difference image counter + 1, Image f(x,y,3) … counter a. if d(x,y) > T positive ADI b. if d(x,y) < -T negative ADI c. if |d(x,y)| > T absolute ADI d(x,y)=R(x,y)-f(x,y,t)

Example: Absolute ADI Positive ADI Negative ADI * Object shape * Location in ref. image

Accumulative difference image(ADI) 13 frames, threshold = 10 Absolute ADIPositive ADI Negative ADI Fail to find object shape ? => Success when object intensity > background