Image segmentation. Václav Hlaváč. Czech Technical University in Prague

Similar documents
IMAGE SEGMENTATION. Václav Hlaváč

2D image segmentation based on spatial coherence

Brightness and geometric transformations

EE 701 ROBOT VISION. Segmentation

Region-based Segmentation

Image Processing, Analysis and Machine Vision

Histograms. h(r k ) = n k. p(r k )= n k /NM. Histogram: number of times intensity level rk appears in the image

CS 534: Computer Vision Segmentation and Perceptual Grouping

Snakes, level sets and graphcuts. (Deformable models)

An Introduction To Automatic Tissue Classification Of Brain MRI. Colm Elliott Mar 2014

CS 534: Computer Vision Segmentation and Perceptual Grouping

ECG782: Multidimensional Digital Signal Processing

Lecture 6: Edge Detection

Image Segmentation. Selim Aksoy. Bilkent University

Image Segmentation. Selim Aksoy. Bilkent University

6.801/866. Segmentation and Line Fitting. T. Darrell

CS 556: Computer Vision. Lecture 18

MR IMAGE SEGMENTATION

INTRODUCTION TO IMAGE PROCESSING (COMPUTER VISION)

CS4442/9542b Artificial Intelligence II prof. Olga Veksler

Digital Image Processing COSC 6380/4393

Combinatorial optimization and its applications in image Processing. Filip Malmberg

CS4442/9542b Artificial Intelligence II prof. Olga Veksler

Motivation. Intensity Levels

Last update: May 4, Vision. CMSC 421: Chapter 24. CMSC 421: Chapter 24 1

GrayCut Object Segmentation in IR-Images

What is Computer Vision?

(Refer Slide Time 00:17) Welcome to the course on Digital Image Processing. (Refer Slide Time 00:22)

ECG782: Multidimensional Digital Signal Processing

Motivation. Gray Levels

Processing and Others. Xiaojun Qi -- REU Site Program in CVMA

Norbert Schuff VA Medical Center and UCSF

intro, applications MRF, labeling... how it can be computed at all? Applications in segmentation: GraphCut, GrabCut, demos

Object-Based Classification & ecognition. Zutao Ouyang 11/17/2015

Topic 4 Image Segmentation

Content-based Image and Video Retrieval. Image Segmentation

Range Imaging Through Triangulation. Range Imaging Through Triangulation. Range Imaging Through Triangulation. Range Imaging Through Triangulation

Perception. Autonomous Mobile Robots. Sensors Vision Uncertainties, Line extraction from laser scans. Autonomous Systems Lab. Zürich.

Digital Image Processing COSC 6380/4393

Lecture 4 Image Enhancement in Spatial Domain

Computer Vision 2. SS 18 Dr. Benjamin Guthier Professur für Bildverarbeitung. Computer Vision 2 Dr. Benjamin Guthier

Application of fuzzy set theory in image analysis. Nataša Sladoje Centre for Image Analysis

Image Processing: Final Exam November 10, :30 10:30

Babu Madhav Institute of Information Technology Years Integrated M.Sc.(IT)(Semester - 7)

Multiple Model Estimation : The EM Algorithm & Applications

MONOCULAR OBJECT LOCALIZATION BY SUPERQUADRICS CURVATURE REPROJECTION AND MATCHING

Basic Algorithms for Digital Image Analysis: a course

Operators-Based on Second Derivative double derivative Laplacian operator Laplacian Operator Laplacian Of Gaussian (LOG) Operator LOG

Image Segmentation. Segmentation is the process of partitioning an image into regions

Complex Sensors: Cameras, Visual Sensing. The Robotics Primer (Ch. 9) ECE 497: Introduction to Mobile Robotics -Visual Sensors

All human beings desire to know. [...] sight, more than any other senses, gives us knowledge of things and clarifies many differences among them.

Dr. Ulas Bagci

Introduction to Medical Image Processing

Segmentation of Images

Data: a collection of numbers or facts that require further processing before they are meaningful

Lecture: Segmentation I FMAN30: Medical Image Analysis. Anders Heyden

Basic relations between pixels (Chapter 2)

Image Processing. Bilkent University. CS554 Computer Vision Pinar Duygulu

Classification and Detection in Images. D.A. Forsyth

Segmentation by Clustering. Segmentation by Clustering Reading: Chapter 14 (skip 14.5) General ideas

Applications. Foreground / background segmentation Finding skin-colored regions. Finding the moving objects. Intelligent scissors

Segmentation by Clustering Reading: Chapter 14 (skip 14.5)

Topics to be Covered in the Rest of the Semester. CSci 4968 and 6270 Computational Vision Lecture 15 Overview of Remainder of the Semester

ME/CS 132: Introduction to Vision-based Robot Navigation! Low-level Image Processing" Larry Matthies"

Digital Image Processing COSC 6380/4393. Lecture 19 Mar 26 th, 2019 Pranav Mantini

CHAPTER 6 PERCEPTUAL ORGANIZATION BASED ON TEMPORAL DYNAMICS

human vision: grouping k-means clustering graph-theoretic clustering Hough transform line fitting RANSAC

Multimedia Technology CHAPTER 4. Video and Animation

Segmentation. (template) matching

Model-based Visual Tracking:

identified and grouped together.

Image Segmentation. Shengnan Wang

Structured Light II. Thanks to Ronen Gvili, Szymon Rusinkiewicz and Maks Ovsjanikov

CSE 4392/5369. Dr. Gian Luca Mariottini, Ph.D.

CS 664 Segmentation. Daniel Huttenlocher

CSE152a Computer Vision Assignment 2 WI14 Instructor: Prof. David Kriegman. Revision 1

Motion Analysis. Motion analysis. Now we will talk about. Differential Motion Analysis. Motion analysis. Difference Pictures

Practice Exam Sample Solutions

EXAM SOLUTIONS. Image Processing and Computer Vision Course 2D1421 Monday, 13 th of March 2006,

Image Segmentation. Schedule. Jesus J Caban 11/2/10. Monday: Today: Image Segmentation Topic : Matting ( P. Bindu ) Assignment #3 distributed

Introduction to digital image classification

Part 3: Image Processing

Ch 22 Inspection Technologies

Schools of thoughts on texture

CMPSCI 670: Computer Vision! Grouping

COMP 102: Computers and Computing

Product information. Hi-Tech Electronics Pte Ltd

Towards the completion of assignment 1

Digital Image Processing

C E N T E R A T H O U S T O N S C H O O L of H E A L T H I N F O R M A T I O N S C I E N C E S. Image Operations I

Linear Operations Using Masks

Segmentation

Performance Evaluation of the TINA Medical Image Segmentation Algorithm on Brainweb Simulated Images

Image Processing Fundamentals. Nicolas Vazquez Principal Software Engineer National Instruments

Lecture 10: Semantic Segmentation and Clustering

Structural Analysis of Aerial Photographs (HB47 Computer Vision: Assignment)

Computer Vision. Image Segmentation. 10. Segmentation. Computer Engineering, Sejong University. Dongil Han

Operation of machine vision system

Analysis of Image and Video Using Color, Texture and Shape Features for Object Identification

Chapter 3 Image Registration. Chapter 3 Image Registration

Transcription:

Image segmentation Václav Hlaváč Czech Technical University in Prague Center for Machine Perception (bridging groups of the) Czech Institute of Informatics, Robotics and Cybernetics and Faculty of Electrical Engineering, Department of Cybernetics http://people.ciirc.cvut.cz/hlavac, hlavac@ciirc.cvut.cz Outline of the talk: What is segmentation? Segmentation is application dependent because it needs image interpretation. Taxonomy of segmentation methods. Thresholding-based segmentation.... the rest comes in another presentation.

What is segmentation? Motivating picture 2/27 Image, courtesy Ondřej Drbohlav

What is image segmentation? Segmentation is a collection of methods allowing to interpret spatially close parts of the image as objects. Regions (i.e., compact sets) represent spatial closeness naturally and thus are important building steps towards segmentation. Objects in a 2D image very often correspond to distinguishable regions. The object is everything what is of interest in the image (from the particular application point of view). The rest of the image is background. The approach is similar to that used in pattern recognition, i.e., division of the image into set of equivalence classes. 3/27

Segmentation can be difficult, example 4/27 Image, courtesy Ondřej Drbohlav It is difficult to find border between the cup and background in the indicated region because it does not differ in a local view. Only knowledge of the cup semantics can solve the puzzle.

Image segmentation, a bit of magic 5/27 There is often no single answer how to segment. Segmentation is mostly based on rather ad hoc methods. There is no encompassing broad theory of segmentation. However, several recent theoretically grounded approaches have formulated segmentation as an optimization task (e.g., in a Markovian fields formalism). The special case of foreground vs. background segmentation is often met. Segmentation usually makes sense in a scope of a particular application. Courtesy, images: Thomas Brox, TU Dresden, 2008

Segmentation is application dependent 6/27 Segmentation depends on an application, its semantics. Methods are not universally applicable to all images. Direct segmentation of the input image takes pragmatically into account semantic information about a particular application. This is the way how to bypass ill-posed problems in inverted tasks related to image formation physics. A vital role of a priori information: Low-level: e.g., brightness, spatial coherence, color, texture, motion,... Mid-level: object symmetries, proximity on larger scale,...

Segmentation, Example 1 7/27 Segmentation according to the texture.

Segmentation, Example 2 8/27 Segmentation of an aerial image of the sea coast.

Complete vs. partial segmentation (1) 9/27 Complete segmentation divides an image into non-overlapping regions that match to the real world objects. Complete segmentation divides an image R into the finite number S of regions R 1,..., R S R = S i=1 R i, R i R j =, i j. Partial segmentation it is possible to find only parts with semantic meaning in the image (e.g., regions, collection of edgels) which will lead to interpretation in later analysis.

Complete vs. partial segmentation (2) 10/27 To proceed from partial to complete segmentation it is needed to explore the higher-level of information processing. This can be performed iteratively in a feed-back loop. The information about the semantics of the specific application is used. Partial segmentation reduces the amount of data which need to be processed. Examples of a complete 2D segmentation Seek contrast objects in a homogeneous background. Intensity thresholding provides a silhouette corresponding to objects, e.g., printed characters, cell kernels, back-light illuminated details inspected in industry.

Example A digital profile projector Provides the back-light illumination where object shape appears as a silhouette. The principal is very often used in manufacturing for gauging and verifying correctness of a shape. The picture shows the illumination source (the smaller box containing LED diode and lens) and camera (a bigger box with cable, there is mirror inside). Courtesy: Neovision s.r.o. 11/27

Back-illuminated detail Example from the lathe-turning: Courtesy: Neovision s.r.o. 12/27 Left image a the back-illuminated detail showing imperfection and dust. Right image automatically approximated shape allowing for automatic gauge check against a technical drawing.

Profile projector User s screen Another example: Automatic gauging of the lathe-turning knife from a sintered carbide. 13/27

Observations (or features) and segmentation 14/27 There is an important question: Which observations (features in the pattern recognition terminology) distinguish regions corresponding to different objects in the image? Examples of features: intensity, color, shape of the region, texture, motion in video, disparity in stereo imaging. Primary features are provided by the sensor directly (e.g., intensity, color, depth in the range camera, temperature in far infrared (thermal) camera). More complicated secondary features have to be calculated from primary features as: texture parameters, shape parameters of the region, mutual relations between regions, motion parameters in video, stereo disparity, etc.

Use of a priori information The more a priori information the better. 15/27 Illustrative examples: nic Required shape of the region. Required position, orientation. Known initial and final point of the boundary (e.g., in the application analyzing shape of a polymer drop, where the polymer sample comes out a tube of known position). Relation of the region considered to other regions with required properties (e.g., above, inside). Examples from two application areas: nic Remote sensing: Look for ships in the water. Typical properties of railway lines, highways (minimal curvatures). Rivers do not cross. Medical: Blood vessels ar roughly parallel. Relate to anatomic atlas (model-based approach).

Major approaches to segmentation Threshold-based, according to a global property, usually intensity, where the global knowledge is represented by the intensity histogram. Spatial coherence-based ( clustering of tokens ). Connecting, e.g., edgels because edges bear often an important information about objects (cf. human visual system). Region merging/splitting. Regions come from aggregating pixels with similar properties (homogeneity criterion) Template matching detection and fitting tokens in the image to a priori known template. Parametric model detection, e.g., straight line, circle, ellipsis,... Unusual phenomena-based. Camouflage detection based on an unusual texture. Region segmentation for the image compression. 16/27

Thresholding 17/27 Input image f(i, j), output image g(i, j). For each pixel (i, j) g(i, j) = { 1 for f(i, j) Threshold, 0 for f(i, j) < Threshold. + Simple technique, long time and more often used. + Easy in hardware, intrinsically parallel. The threshold is a parameter which is difficult to adjust automatically in general. Works only for subclass of images in which objects are distinct from background in intensity.

Example, threshold influence 18/27 Original image. Threshold segmentation. Threshold too low. Threshold too high.

Thresholding, modifications 19/27 Local adaptive thresholds, e.g. divide an image into subimages and find threshold in each of them. Band thresholding, let D be a set of intensities, e.g. an interval of intensities g(i, j) = { 1 for f(i, j) D, 0 otherwise. Multiple thresholds. Semi-thresholding, to suppress background, useful in cases in which image is analysed by a human g(i, j) = { f(i, j) for f(i, j) Threshold, 0 for f(i, j) < Threshold.

Example Border regions by the band thresholding 20/27 Original image. Border regions detected.

Automatic threshold detection, Use of histogram 21/27 p-tile thresholding, if we know that the objects cover 1/p of the image, e.g. printed characters on a sheet = 1/p area of a histogram. Histogram shape analysis, distinct objects on background correspond to a bi-modal histogram. Find middle between the modes.

Automatically found threshold according to a bi-modal histogram 22/27 9000 8000 7000 6000 Threshold Frequency 5000 4000 3000 2000 1000 0 0 32 64 96 128 160 192 224 Intensity

Smoothing of the ragged histogram 23/27 Let hf(i) be a histogram which is ragged. Intensities i = 0,..., imax. Smoothing before finding the threshold automatically helps to avoid the problem with many local minima. The 1D smoothing using sliding averaging of the window size 2K + 1 is often used. The new histogram h f(i) is calculated as h f(i) = 1 2K + 1 K j= K h f (i + j), i = K,..., imax K.

Optimal thresholding by a mixture of Gaussians 24/27 Motivation: (a) optimal threshold optimal optimal distribution of objects distribution of background (b) optimal threshold conventional threshold optimal conventional optimal conventional???

Local thresholds by mixture of Gaussians 25/27 hregion local histogram. hmodel approximation of a histogram by n Gaussian distributions, h model (g) = n i=1 a i e ( (g µ i) 2σ i 2 2 ). The minimized optimization criterion F, F = g G ( h model (g) h region (g)) 2.

Example, Segmentation of the brain MR 26/27 Input: T1-weighted NMR images. Desired classes: white matter, grey matter, celebro-spinal fluid (CSF) Volume % 16 Volume % 16 Volume % 16 Gray matter 12 12 12 White matter 8 8 8 4 0 0 50 100 150 200 250 Gray level 4 0 0 50 100 150 200 250 Gray level CSF 0 50 100 150 200 250 Gray level (a) (b) (c) 4 0 Courtesy: Milan Šonka, University of Iowa.

Brain MR, Segmentation result 27/27 original gray matter white matter CSF