Segmentation Lucia Ballerini Digital Image Processing Lecture 8 Course book reading: GW 10.

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

Clustering & image segmentation Goal::Identify groups of pixels that go together Segmentation.
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.
Instructor: Mircea Nicolescu Lecture 13 CS 485 / 685 Computer Vision.
Snakes - Active Contour Lecturer: Hagit Hel-Or
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.
1Ellen L. Walker Segmentation Separating “content” from background Separating image into parts corresponding to “real” objects Complete segmentation Each.
3. Introduction to Digital Image Analysis
EE663 Image Processing Edge Detection 2 Dr. Samir H. Abdul-Jauwad Electrical Engineering Department King Fahd University of Petroleum & Minerals.
Segmentation Divide the image into segments. Each segment:
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.
Edge Detection Today’s readings Cipolla and Gee –supplemental: Forsyth, chapter 9Forsyth Watt, From Sandlot ScienceSandlot Science.
Robust estimation Problem: we want to determine the displacement (u,v) between pairs of images. We are given 100 points with a correlation score computed.
Thresholding Thresholding is usually the first step in any segmentation approach We have talked about simple single value thresholding already Single value.
כמה מהתעשייה? מבנה הקורס השתנה Computer vision.
Tal Mor  Create an automatic system that given an image of a room and a color, will color the room walls  Maintaining the original texture.
Introduction to Image Processing Grass Sky Tree ? ? Review.
Chapter 10: Image Segmentation
06 - Boundary Models Overview Edge Tracking Active Contours Conclusion.
Deformable Models Segmentation methods until now (no knowledge of shape: Thresholding Edge based Region based Deformable models Knowledge of the shape.
1Ellen L. Walker Segmentation Separating “content” from background Separating image into parts corresponding to “real” objects Complete segmentation Each.
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
Topic 10 - Image Analysis DIGITAL IMAGE PROCESSING Course 3624 Department of Physics and Astronomy Professor Bob Warwick.
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
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.
G52IVG, School of Computer Science, University of Nottingham 1 Edge Detection and Image Segmentation.
EECS 274 Computer Vision Segmentation by Clustering II.
主講人 : 張緯德 1.  Image segmentation ◦ ex: edge-based, region-based  Image representation ◦ ex: Chain code, polygonal approximation signatures, skeletons.
CS654: Digital Image Analysis
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.
Edge Detection and Geometric Primitive Extraction Jinxiang Chai.
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.
主講者 : 陳建齊. Outline & Content 1. Introduction 2. Thresholding 3. Edge-based segmentation 4. Region-based segmentation 5. conclusion 2.
Digital Image Processing
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.
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities May 2, 2005 Prof. Charlene Tsai.
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, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Unit-VII Image Segmentation.
Digital Image Processing (DIP)
Chapter 10 Image Segmentation
Detection of discontinuity using
DIGITAL SIGNAL PROCESSING
Image Segmentation – Edge Detection
ECE 692 – Advanced Topics in Computer Vision
Computer Vision Lecture 16: Texture II
Digital Image Processing
CS654: Digital Image Analysis
Presentation transcript:

Segmentation Lucia Ballerini Digital Image Processing Lecture 8 Course book reading: GW 10

Image "What are the objects to be analyzed?" Pre-processing, image enhancement Segmentation Binary operations Morphological operations and feature extraction Classification and matching Image analysis Data

Segmentation ► ► Full segmentation: Individual objects are separated from the background and given individual ID numbers (labels). ► ► Partial segmentation: The amount of data is reduced (usually by separating objects from background) to speed up the further processing. ► ► Segmentation is often the most difficult problem to solve in the process; there is no universal solution! ► ► The problem can be made much easier if solved in cooperation with the constructor of the imaging system (choice of sensors, illumination, background etc).

Three types of segmentation ► ► Classification – Based on some similarity measure between pixel values. The simplest form is thresholding. ► ► Edge-based – Search for edges in the image. They are then used as borders between regions ► ► Region-based – Region growing, merge & split Common idea: search for discontinuities or/and similitudes in the image

Thresholding global or local ► ► global: based on some kind of histogram: grey-level, edge, feature etc.   Lighting conditions are extremely important, and it will only work under very controlled circumstances. ► ► Fixed thresholds: the same value is used in the whole image ► ► local (or dynamic thresholding): depends on the position in the image. The image is divided into overlapping sections which are thresholded one by one.

Classical automatic thresholding algorithm 1. Select an initial estimate for T 2. Segment the image using T. This produces 2 groups: G 1, pixels with value >T and G 2, with value T and G 2, with value <T 3. Compute µ 1 and µ 2, average pixel value of G 1 and G 2 4. New threshold: T=1/2(µ 1 +µ 2 ) 5. Repeat steps 2 to 4 until T stabilizes. ► Very easy + very fast ► Assumptions: normal dist. + low noise

Optimal Thresholding ► ► based on the shape of the current image histogram. Search for valleys, Gaussian distributions etc. Background Real histogram Optimal threshold ? Both Foreground

Histograms To love… …and to hate

Thresholding and illumination ► Solutions:  Calibration of the imaging system  percentile filter with very large mask  Morphological operators

MR non-uniformity median filteringthresholding -

More thresholding ► ► Can also be used on other kinds of histogram: grey-level, edge, feature etc. Multivariate data (  see next lectures) ► ► Problems:   Only considers the graylevel pixel value, so it can leave “holes” in segmented objects. ► ► Solution: post-processing with morphological operators   Requires strong assumptions to be efficient   Local thresholding is better  see region growing techniques

Edge-based Segmentation Based on finding discontinuities (local variations of image intensity) Apply an edge detector ex gradient operator (Sobel) second derivative (Laplace) Threshold the edge image to get a binary image Depending on the type of edge detector:   Link edges together to close shapes (using edge direction for ex)   Remove spurrious edges

Gradient based procedure Sobel

Zero-crossing based procedure LoG

Laplacian of Gaussian

Edge-based Segmentation: examples Prewitt: needs edge linkingCanny: needs “cleaning”

Region based segmentation ► ► Work by extending some region based on local similarities between pixels   region growing (bottom-up method)   region splitting and merging (top-down method)   Bottom-up: from data to representation   Top-down: from model to data

Region growing (bottom-up method) Find starting points Include neighbouring pixels with similar features (grey-level, texture, color) Continue untill all pixels have been included with one of the starting points. ► ► Problems:   Not trivial to find good strating points, difficult to automate   Need good criteria for similarity.

Watershed (a kind of region growing) ► ► Think of the grey-level image as a landscape. Let water rise from the bottom of each valley (the water from each valley is given its own label). As soon as the water from two valleys meet, build a dam, or watershed. These watersheds will then define the borders between different regions.

Example of watershed directly on a gray- level image

Example of Watershed on a binary image

Watershed: problems and solutions ► Oversegmentation  watershed from markers ► Computation  new algorithm for fast watershed ► Graylevel might not be the optimal choice as the local similarity measure  bigger neighborhood when growing  other local features (statistical,  other local features (statistical, edge enhanced image, distance transformed image…)

Split & Merge (top-down metod) Set up som criteria for what is a uniform area (ex mean, variance, bimodality of histogram, texture, etc…) Start with the full image and split it in to 4 sub-images Check each sub-image. If not uniform, divide into 4 new sub- images After each iteration, compare touching regions with neighboring regions end merge if uniform. The method is also called "quadtree" division (and is also used for compression)

Split & Merge

The Hough transform ► ► A method for finding global relationships between pixels. Example: We want to find straight lines in an image   1. Apply edge enhancing filter (ex Laplace)   2. Set a threshold for what filter response is considered a true ”edge pixel”   3. Extract the pixels that are on a straight line using the Hough transform original imageedge enhanced image thresholded edge image

The Hough transform Finding straight lines: ► ► 1. consider a pixel in position (xi,yi) ► ► 2. equation of a straight line yi=axi+b ► ► 3. set b=-axi+ yi and draw this (single) line in ”ab-space” ► ► 4. consider the next pixel with position (xj,yj) and draw the line b=-axj+ yj ”ab-space” (also called parameter space). The poins (a’,b’) where the two lines intersect represent the line y=a’x+b’ in ”xy-space” which will go through both (xi,yi) and (xj,yj). ► ► 5. draw the line in ab-space corresponding to each pixel in xy- space. ► ► 6. divide ab-space into accumulator cells and find most common (a’, b’) which will give the line connecting the largest number of pixels

y The Hough transform xy-space x ab- or parameter space b a

The Hough transform ► ► In reality we have a problem with y=ax+b because a reaches infinity for vertical lines. Use instead. ► ► It is common to use ”filters” for finding the intersection: ”butterfly filters” ► ► Different variations of the Hough transform can also be used for finding other shapes of the form g(v,c)=0, v is a vector of coordinates, c is a vector of coefficients. ► ► Possible to find any kind of simple shape ex. circle:(3D parameter space)

The Hough transform

Conclusions ► The segmentation procedure 1.Pre-processing 2.Segmentation 3.Post-processing  Like any IP procedure ► There exists NO universal segmentation method ► Evaluation of segmentation performance is important

Snakes ► Example: segmentation of the brain in MRI Snake after initializationSnake at equilibrium User interaction

Snakes (active contours) ► A snake is an active contour parametrically represented by its position v(s)=(x(s), y(s)) ► Each position is associated to an energy: ► The final position corresponds to the minimum of the energy

Internal Energy The internal energy of the snake is due to bending and it is associated with a priori constraints: The internal energy of the snake is due to bending and it is associated with a priori constraints: ►  (s) controls the tension of the contour ►  (s) controls its rigidity

External Energy ► The external energy depends on the image and accounts for a posteriori information ► Several energy forms have been proposed based on features of interest in the image ► An energy commonly used to attract snakes towards edges is:

Applications

Applications (by Terzopoulos)

Considerations ► The number of nodes is an important factor for the behavior of the snake. Ability to resample the contour may be necessary. ► If we want a closed contour, we set the first and the last point equal. ► Anchor points are necessary to keep the snake in position if the image forces are not enough. ► It may be necessary to allow a snake contour to divide into two contours, or two contours to merge into one contour. ► Different applications may need different potential functions and different settings of the control parameters (damping, tension and rigidity).

Applications ► Tracking of a moving object  An initial estimate for the contour (e.g. interactively defined) is used in the first frame.  The contour at equilibrium is used as the starting contour for the next frame. The snake locks on to the object. ► Reconstruction from serial sections  The user draws an approximate contour in the first slice.  The contour at equilibrium is used as the starting contour in the next slice.  The 3D object is reconstructed from the contours using triangulation. ► …..

More segmentation Important in Image Processing in general: “If you can use expert knowledge (user interaction, modelling,…) at relatively low cost (development, computational,…)” JUST DO IT!!