Introduction to Medical Imaging (5XSA0) Module 5

Similar documents
Region-based Segmentation

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

Bioimage Informatics

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

Image Segmentation. Selim Aksoy. Bilkent University

Image Segmentation. Selim Aksoy. Bilkent University

identified and grouped together.

Segmentation of Images

REGION & EDGE BASED SEGMENTATION

Region & edge based Segmentation

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

Ulrik Söderström 16 Feb Image Processing. Segmentation

Today INF How did Andy Warhol get his inspiration? Edge linking (very briefly) Segmentation approaches

Moving Object Segmentation Method Based on Motion Information Classification by X-means and Spatial Region Segmentation

EECS490: Digital Image Processing. Lecture #22

Image segmentation. Stefano Ferrari. Università degli Studi di Milano Methods for Image Processing. academic year

EE 701 ROBOT VISION. Segmentation

Content-based Image and Video Retrieval. Image Segmentation

Image Segmentation Based on Watershed and Edge Detection Techniques

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

Chapter 3 Image Registration. Chapter 3 Image Registration

ECG782: Multidimensional Digital Signal Processing

DATA and signal modeling for images and video sequences. Region-Based Representations of Image and Video: Segmentation Tools for Multimedia Services

Object Segmentation. Jacob D. Furst DePaul CTI

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 II

Image Analysis Lecture Segmentation. Idar Dyrdal

6. Object Identification L AK S H M O U. E D U

Segmentation and Grouping

Image Analysis - Lecture 5

Segmentation

Segmentation

MULTIVIEW REPRESENTATION OF 3D OBJECTS OF A SCENE USING VIDEO SEQUENCES

Part 3: Image Processing

Announcements. Image Segmentation. From images to objects. Extracting objects. Status reports next Thursday ~5min presentations in class

Histogram and watershed based segmentation of color images

Image Processing. Bilkent University. CS554 Computer Vision Pinar Duygulu

Colorado School of Mines. Computer Vision. Professor William Hoff Dept of Electrical Engineering &Computer Science.

Digital Image Analysis and Processing

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

Image Segmentation. Srikumar Ramalingam School of Computing University of Utah. Slides borrowed from Ross Whitaker

EDGE BASED REGION GROWING

Spatial Outlier Detection

Norbert Schuff VA Medical Center and UCSF

Interactive Video Object Extraction & Inpainting 清華大學電機系. Networked Video Lab, Department of Electrical Engineering, National Tsing Hua University

Image Segmentation for Image Object Extraction

ORDER-INVARIANT TOBOGGAN ALGORITHM FOR IMAGE SEGMENTATION

2D image segmentation based on spatial coherence

Image Analysis Image Segmentation (Basic Methods)

Automatic Segmentation of Moving Objects in Video Sequences: A Region Labeling Approach

Topic 4 Image Segmentation

SYDE Winter 2011 Introduction to Pattern Recognition. Clustering

Adaptive Background Mixture Models for Real-Time Tracking

EECS490: Digital Image Processing. Lecture #19

Image Segmentation. Ross Whitaker SCI Institute, School of Computing University of Utah

Image Processing and Image Analysis VU

ELEC Dr Reji Mathew Electrical Engineering UNSW

Image Segmentation Using Iterated Graph Cuts Based on Multi-scale Smoothing

Digital Image Processing Lecture 7. Segmentation and labeling of objects. Methods for segmentation. Labeling, 2 different algorithms

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

Motion in 2D image sequences

EE368 Project Report CD Cover Recognition Using Modified SIFT Algorithm

Texture. Texture is a description of the spatial arrangement of color or intensities in an image or a selected region of an image.

Image Segmentation. Ross Whitaker SCI Institute, School of Computing University of Utah

Research Article Image Segmentation Using Gray-Scale Morphology and Marker-Controlled Watershed Transformation

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

Detecting and Identifying Moving Objects in Real-Time

MR IMAGE SEGMENTATION

Digital Image Processing. Prof. P.K. Biswas. Department of Electronics & Electrical Communication Engineering

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

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

Motion Detection. Final project by. Neta Sokolovsky

Motion Estimation for Video Coding Standards

CS 664 Segmentation. Daniel Huttenlocher

Advanced Video Content Analysis and Video Compression (5LSH0), Module 4

EE 584 MACHINE VISION

Texture Image Segmentation using FCM

Contents.

Modern Medical Image Analysis 8DC00 Exam

Change detection using joint intensity histogram

Example 1: Regions. Image Segmentation. Example 3: Lines and Circular Arcs. Example 2: Straight Lines. Region Segmentation: Segmentation Criteria

Example 2: Straight Lines. Image Segmentation. Example 3: Lines and Circular Arcs. Example 1: Regions

5th International Conference on Information Engineering for Mechanics and Materials (ICIMM 2015)

Introduction to Medical Imaging (5XSA0)

ECEN 447 Digital Image Processing

Class 3: Advanced Moving Object Detection and Alert Detection Feb. 18, 2008

Image Processing. BITS Pilani. Dr Jagadish Nayak. Dubai Campus

A Feature Point Matching Based Approach for Video Objects Segmentation

Representing Moving Images with Layers. J. Y. Wang and E. H. Adelson MIT Media Lab

Segmentation Region-based processing. Feature extraction Gonzalez-Woods Chapt. 10 Pratt Chapt. 16 and 17

2. LITERATURE REVIEW

Marcel Worring Intelligent Sensory Information Systems

Fundamentals of Digital Image Processing

IMAGE SEGMENTATION. Václav Hlaváč

Multi-Camera Calibration, Object Tracking and Query Generation

Integrating Intensity and Texture in Markov Random Fields Segmentation. Amer Dawoud and Anton Netchaev. {amer.dawoud*,

Computer Vision 5 Segmentation by Clustering

Image Segmentation and Registration

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

Final Review CMSC 733 Fall 2014

Multimedia Systems Video II (Video Coding) Mahdi Amiri April 2012 Sharif University of Technology

Transcription:

Introduction to Medical Imaging (5XSA0) Module 5 Segmentation Jungong Han, Dirk Farin, Sveta Zinger ( s.zinger@tue.nl ) 1 Outline Introduction Color Segmentation region-growing region-merging watershed Background Subtraction background generation change detection Model-based Object Detection graph model 2 Applications of Object Segmentation Surveillance detect people in restricted areas detect abnormal behavior (motion pattern) Video/Image Analysis Video Editing Intelligent Video Databases object classification Sports Analysis Object-Oriented Video-Coding (MPEG-4) 3 Definition of Object Segmentation It's your turn. Segment this image! 4 Definition of Object Segmentation 5 Definition of Object Segmentation 6 Central question: what is an object??? Semantic problems of object definition: shadows occlusions reflections object status change (parking cars) small movements (waving trees) hierarchical objects (man in car) The object definition and the segmentation algorithm to use depends on the context! There is no such thing as a general segmentation algorithm Possible definitions: regions with uniform color color segmentation regions with uniform texture texture segmentation regions with uniform motion motion segmentation 1

Color Segmentation: Example (1) Example medical application: count number of blood cells 7 Color Segmentation: Example (2) Preprocessing for special applications colors help to detect objects and markers 8 input image binarized image separate connected cells (requires further model knowledge) input image segmentation Images taken from CMVision realtime color segmentation library Color Segmentation: Example (3) Color segmentation on natural images: 9 Texture Segmentation Group regions based on texture features. Usual approach: extract texture descriptors (e.g., Gabor filter coefficients) cluster similar descriptors (comparable to color segmentation) 10 input image segmentation Background Subtraction Assume that a pure background image is known detect changes between input image and background image (Change Detection) 11 Manual Segmentation Interactive segmentation user controls the segmentation process computer determines accurate object boundaries 12 subtract Edge based techniques intelligent scissors Region based techniques marker based watershed Kar-Han Tan, Narendra Ahuja: Selecting Objects with Freehand Sketches 2

Evaluating the Segmentation Result oversegmentation result has more regions than expected undersegmentation result has less regions than expected 13 Point detection Look for a point that is different from its neighborhood Apply an isolating mask to calculate: R w1 z1 w2 z2... w9 z9 A point is detected at the center of the mask if R T where T is a threshold 14 oversegmented undersegmented Line detection Masks responding to lines of different orientations: -45º detector (zoomed) absolute values of -45º detector Original image 15-45º detector Thresholded absolute values of -45º detector Introduction Color Segmentation region-growing region-merging watershed Background Subtraction background generation change detection Outline Model-based Object Detection graph model 16 Color Segmentation: Region Growing (1) Start a new region with a seed pixel Consider neighboring pixels if their color is similar to the mean region color, add pixel to the region continue growing until no more pixels can be added to the region 17 Color Segmentation: Region Growing (2) Implementation input: seed (x s,y s ), image I(x,y) insert (x s,y s ) into queue of positions Q region color C=I(x s,y s ) 18 while Q not empty extract (x,y) from queue if I(x,y)-C < add neighbors of (x,y) into Q [ update region color C with I(x,y) ] Color similarity threshold 3

Color Segmentation: Region Growing (3) Regions have already been defined 19 Color Segmentation: Region Growing (4) Seed pixels can be placed manually, or arbitrarily chosen from the unprocessed pixel 20 We hope homogeneous input image segmentation result Color Segmentation: Region Growing (5) Segmentation result is depending on similarity threshold choice of seed pixels order in which seed pixels are processed algorithm implementation (order in which neighboring pixels are processed) 21 Color Segmentation: Region Merging (1) Alternative approach: Region Merging Start with a set of regions (obtained by another algorithm) Consecutively join the two most similar neighboring regions 22 Color Segmentation: Region Merging (2) Data-structure: neighborhood graph of image regions each node represents a region graph edges denote adjacency they are attributed with the region similarity 23 Color Segmentation: Region Merging (3) strong similarity weak similarity 24 input regions neighborhood graph 4

gradient value gradient value Color Segmentation: Region Merging (4) Several merging criteria are possible Simple model: describe region color l i by average luminance. Merging criterion: I(x,y) luminance image r i pixels in region mean: difference of mean region luminances Difference of mean luminances does not take region size into account 25 Color Segmentation: Watershed (1) The watershed algorithm Fast color segmentation algorithm Generally gives oversegmented results on natural images Well-defined output Often used as preprocessing operation quickly convert a pixel image into a region-level description to speedup further processing Variant: watershed with manually placed markers 26 Color Segmentation: Watershed (2) Algorithm principle: 27 Color Segmentation: Watershed (3) 28 apply gradient filter on input image and work on the resulting edge image search for local minima in edge image and initialize a new region for each minimum extend regions like follows: Watersheds are built where water from different lakes meets input image edge image local minima edge profile of input image Color Segmentation: Watershed (4) 29 Color Segmentation: Watershed (5) Typical result: 30 water begins to rise from local minima build watershed when different lakes touch water continues to rise; build more watersheds Many regions because camera noise generates many local minima 5

31 Color Segmentation: Watershed (6) Noise in flat areas generates too many local minima Color Segmentation: Watershed (7) Result with clipped gradient strength: 32 Small noise regions can be avoided by clipping gradients to a minimum value noise threshold level Color Segmentation: Watershed (8) Variant: manual watershed Instead of starting to flood from local minima, start flooding from markers markers, water will only start flooding from here no watershed is built here, since no water is emanating from (A) (A) 33 Summary Region Growing Color Segmentation easy implementation, low-quality results Region Merging difficult implementation, flexible control of segmentation process, high-quality results Watershed easy and fast implementation, predictable result, severe over-segmentation no threshold to influence result (except gradient clipping) Result only sufficient for specialized applications 34 Introduction Color Segmentation region-merging watershed Outline Background Subtraction background generation change detection Model-based Object Detection graph-models 35 Thresholding Simple and computationally efficient Threshold selection uses intensity information histogram Example: bimodal histogram 2.5 x 104 2 1.5 1 0.5 36 0 0 20 40 60 80 100 120 6

Optimal Thresholding What value of T will give us the best segmentation? Gonzalez and Woods: Initialize T (e.g. halfway between min and max) Iteratively set T=0.5*(μ1+μ2), where μ1, μ2 the mean values of pixels with value larger or smaller than T, respectively Until T converges Iteration 1 Iteration 2 Iteration 3 Iteration 4 37 Bkg. Subtraction: Principle - (1) Assumption: background is static Input image is compared with background image if the difference is small: background content if the difference is large: foreground object difference is generally not zero due to noise in the sequences For some applications, the background image can be captured separately For other applications, it must be synthesized from the input sequence 38 Bkg. Subtraction: Principle (2) Background image generation Change detection Motion Segmentation Background Selective update Estimation background Pre-processed Change foreground mask image Detection 39 Bkg. Subtraction: Principle (3) Background image generation: stack large number of input frames (camera motion must be compensated) different techniques proposed in literature weighted linear filter temporal recursive filter kalman filter Temporal Median Gaussian Mixture Model 40 t Bkg. Sub: Background Generation (1) Temporal median filter good performance can be achieved relatively low computational complexity B(x) = median (I t (x), I t-l (x),, I t-k*l (x)) 41 We have Bkg. Sub: Change Detection current input frame I t background frame I B We denote the image color channels as 42 and the vector combining all channels as Detect object, e.g., if t background image is a threshold that depends on the noise level 7

Bkg. Sub: Difference Metrics 43 Distribution of Color Differences (1) 44 What metric should be used for the image difference? greyscale difference Distribution of difference vector d between input color I t and background color I B sum of squared differences of RGB channels RGB YUV sum of absolute differences of RGB channels... in YUV color-space... something else (L*u*v color-space, non-linear difference functions?) Distribution of Color Differences (2) Each difference function defines a decision boundary here: Euclidean distance defines sphere inside sphere: background, outside: foreground wrong classification 45 Distribution of Color Differences (3) Greyscale difference only: Defines slice in Y-dimension Better classification could be obtained by integrating color 46 wrong classification YUV many false classifications example result Distribution of Color Differences (4) Euclidean distance in YUV space Defines sphere However, background distribution has lower variance in U,V dimensions YUV example result 47 Background Subtraction Summary change detection between input frame and background frame independent pixel classification RGB, YUV color difference greyscale difference sum of squared difference Mahalanobis distance classify groups of pixels joint probability has less overlap results are more robust to noise 48 8

Introduction Color Segmentation region-merging watershed Outline Background Subtraction background generation change detection Model-based Object Detection graph model 49 GM Algorithm: Principle (1) How can we tell the computer what objects we want to extract?? Find this! 50 GM Algorithm: Principle (2) 51 GM Algorithm: Principle (3) 52 The same object can show in many deformed appearances Objects can be partly occluded Idea: Describe objects with graph-based models The graph consists of: nodes for the essential object regions nodes have attributes with region features (color, size) edges denote spatial relationships between regions GM Algorithm: Principle (4) Generation of the object model: user takes example image and places markers into essential regions. Apply marker driven watershed 53 sample object image GM Algorithm: Principle (5) editor model graph, region features matching 54 markers user specifies spatial relationships between regions that must be fulfilled input image automatic segmentation feature extraction 9

Graph-Model: Graph Matching (1) Graph Matching model graph (V M,E M ) segmentation graph (V S,E S ) mapping cost function determine model graph segmentation graph 55 Graph-Model: Graph Matching (2) Matching cost function consists of Node costs similarity of regions (color, shape,...) Edge cost relations between regions (distances, size ratios) 56 Graph-Model: Result (1) 57 Graph-Model: Result (3) 58 1:1 matching model extension: 1:N matching model 1:1 matching 1:N matching Graph-Model based Object Detection Summary algorithm to detect general objects object is described with attributed graphs (only treeshaped) manual definition of model graph automatic color segmentation to obtain segmentation graph efficient graph-matching algorithm to detect model graph in segmentation graph 59 Color segmentation References (1) B. Dobrin, T. Viero, M. Gabbouj: Fast watershed algorithms: analysis and extensions, SPIE Nonlinear Image Processing V, 209-220, 1994 K. Haris, S. Efstratiadis, N. Maglaveras, A. Katsaggelos: Hybrid Image Segmentation Using Watersheds and Fast Region Merging, IEEE Transactions on Image Processing, Vol. 7, No. 12, 1684-1699, 1998. Background subtraction T. Aach, A. Kaup, Statistical model-based change detection in moving video, Signal Processing 31, pp. 165-180, 1993 60 10

References (2) 61 Intelligent Scissors E.N. Mortensen and W.A. Barrett, Interactive Segmentation with Intelligent Scissors, Graphical Models and Image Processing, Vol. 60, No. 5, pp. 349-384, Sept. 1998. Segmentation based on feature clustering J. Shi, J. Malik, Normalized Cuts and Image Segmentation, IEEE Transactions on Pattern Analysis and Machine Intelligence, Vol. 22, No. 8, pp. 888-905, 2000. 11