Image Segmentation and Registration

Similar documents
Convolution. 1D Formula: 2D Formula: Example on the web:

A Study on SURF Algorithm and Real-Time Tracking Objects Using Optical Flow

Bildverarbeitung und Mustererkennung Image Processing and Pattern Recognition

Canny Edge Detection

Probabilistic Latent Semantic Analysis (plsa)

MVA ENS Cachan. Lecture 2: Logistic regression & intro to MIL Iasonas Kokkinos Iasonas.kokkinos@ecp.fr

Feature Tracking and Optical Flow

Morphological analysis on structural MRI for the early diagnosis of neurodegenerative diseases. Marco Aiello On behalf of MAGIC-5 collaboration

Assessment. Presenter: Yupu Zhang, Guoliang Jin, Tuo Wang Computer Vision 2008 Fall

Distinctive Image Features from Scale-Invariant Keypoints

Norbert Schuff Professor of Radiology VA Medical Center and UCSF

Segmentation & Clustering

Practical Tour of Visual tracking. David Fleet and Allan Jepson January, 2006

Object Recognition and Template Matching

Automatic georeferencing of imagery from high-resolution, low-altitude, low-cost aerial platforms

Machine Learning for Medical Image Analysis. A. Criminisi & the InnerEye MSRC

Social Media Mining. Data Mining Essentials

Robert Collins CSE598G. More on Mean-shift. R.Collins, CSE, PSU CSE598G Spring 2006

Colour Image Segmentation Technique for Screen Printing

Edge-based Template Matching and Tracking for Perspectively Distorted Planar Objects

Recognizing Cats and Dogs with Shape and Appearance based Models. Group Member: Chu Wang, Landu Jiang

Modelling, Extraction and Description of Intrinsic Cues of High Resolution Satellite Images: Independent Component Analysis based approaches

Data Mining. Cluster Analysis: Advanced Concepts and Algorithms

Image Gradients. Given a discrete image Á Òµ, consider the smoothed continuous image ܵ defined by

Subspace Analysis and Optimization for AAM Based Face Alignment

siftservice.com - Turning a Computer Vision algorithm into a World Wide Web Service

Feature Point Selection using Structural Graph Matching for MLS based Image Registration

Face Recognition in Low-resolution Images by Using Local Zernike Moments

Local features and matching. Image classification & object localization

Environmental Remote Sensing GEOG 2021

Component Ordering in Independent Component Analysis Based on Data Power

Android Ros Application

A Learning Based Method for Super-Resolution of Low Resolution Images

How To Cluster

Face Model Fitting on Low Resolution Images

An Iterative Image Registration Technique with an Application to Stereo Vision

2.2 Creaseness operator

Linköping University Electronic Press

The Wondrous World of fmri statistics

OBJECT TRACKING USING LOG-POLAR TRANSFORMATION

J. P. Oakley and R. T. Shann. Department of Electrical Engineering University of Manchester Manchester M13 9PL U.K. Abstract

COMPARISON OF OBJECT BASED AND PIXEL BASED CLASSIFICATION OF HIGH RESOLUTION SATELLITE IMAGES USING ARTIFICIAL NEURAL NETWORKS

PATTERN RECOGNITION AND MACHINE LEARNING CHAPTER 4: LINEAR MODELS FOR CLASSIFICATION

Image Classification for Dogs and Cats

Classification of Fingerprints. Sarat C. Dass Department of Statistics & Probability

Automatic 3D Reconstruction via Object Detection and 3D Transformable Model Matching CS 269 Class Project Report

The Role of Size Normalization on the Recognition Rate of Handwritten Numerals

Vision based Vehicle Tracking using a high angle camera

Machine vision systems - 2

The Scientific Data Mining Process

Data Mining Cluster Analysis: Basic Concepts and Algorithms. Lecture Notes for Chapter 8. Introduction to Data Mining

Blind Deconvolution of Barcodes via Dictionary Analysis and Wiener Filter of Barcode Subsections

Two-Frame Motion Estimation Based on Polynomial Expansion

Unsupervised Data Mining (Clustering)

Part-Based Recognition

A Comparative Study between SIFT- Particle and SURF-Particle Video Tracking Algorithms

Cluster Analysis: Advanced Concepts

Object class recognition using unsupervised scale-invariant learning

Medical Information Management & Mining. You Chen Jan,15, 2013 You.chen@vanderbilt.edu

So which is the best?

CS 534: Computer Vision 3D Model-based recognition

Morphological segmentation of histology cell images

Volume visualization I Elvins

Image Registration and Fusion. Professor Michael Brady FRS FREng Department of Engineering Science Oxford University

Accurate and robust image superresolution by neural processing of local image representations

Randomized Trees for Real-Time Keypoint Recognition

Simultaneous Gamma Correction and Registration in the Frequency Domain

Signature Segmentation from Machine Printed Documents using Conditional Random Field

Edge detection. (Trucco, Chapt 4 AND Jain et al., Chapt 5) -Edges are significant local changes of intensity in an image.

DEVELOPMENT OF AN IMAGING SYSTEM FOR THE CHARACTERIZATION OF THE THORACIC AORTA.

Low-resolution Character Recognition by Video-based Super-resolution

Visualization and Feature Extraction, FLOW Spring School 2016 Prof. Dr. Tino Weinkauf. Flow Visualization. Image-Based Methods (integration-based)

Tracking of Small Unmanned Aerial Vehicles

SIGNATURE VERIFICATION

Implementation of Canny Edge Detector of color images on CELL/B.E. Architecture.

Segmentation of building models from dense 3D point-clouds

State of Stress at Point

Face detection is a process of localizing and extracting the face region from the

Build Panoramas on Android Phones

IMPLICIT SHAPE MODELS FOR OBJECT DETECTION IN 3D POINT CLOUDS

Mean-Shift Tracking with Random Sampling

Data Mining Cluster Analysis: Advanced Concepts and Algorithms. Lecture Notes for Chapter 9. Introduction to Data Mining

Multisensor Data Fusion and Applications

ROBUST VEHICLE TRACKING IN VIDEO IMAGES BEING TAKEN FROM A HELICOPTER

jorge s. marques image processing

Image Analysis for Volumetric Industrial Inspection and Interaction

BEHAVIOR BASED CREDIT CARD FRAUD DETECTION USING SUPPORT VECTOR MACHINES

Palmprint Recognition. By Sree Rama Murthy kora Praveen Verma Yashwant Kashyap

High Quality Image Magnification using Cross-Scale Self-Similarity

Document Image Retrieval using Signatures as Queries

Module II: Multimedia Data Mining

Digital image processing

Evaluation of Interest Point Detectors

Mesh Discretization Error and Criteria for Accuracy of Finite Element Solutions

Medical Image Processing on the GPU. Past, Present and Future. Anders Eklund, PhD Virginia Tech Carilion Research Institute

RUN-LENGTH ENCODING FOR VOLUMETRIC TEXTURE

Linear Threshold Units

Transcription:

Image Segmentation and Registration Dr. Christine Tanner (tanner@vision.ee.ethz.ch) Computer Vision Laboratory, ETH Zürich Dr. Verena Kaynig, Machine Learning Laboratory, ETH Zürich

Outline Segmentation What is it? Tresholding K-means clustering Canny edge detection Graph cut Registration What is it? Main components Feature-based Intensity-based Examples Region growing Level set

Image Segmentation I stand at the window and see a house, trees, sky. Theoretically I might say there were 327 brightnesses and nuances of colour. Do I have 327? No. I have sky, house, and trees. --Max Wertheimer, Laws of Organization in Perceptual Forms (1923)

Aim of Image Segmentation Partition image into a set of regions which are visual distinct and share certain visual properties - Intensity - Colour - Texture To simplify representation for easier analysis

Segmentation via Thresholding Histogram Intensity value Value above threshold: Object Value below threshold: Background

Automatic Thresholding Two Classes 1. Choose initial threshold (e.g. randomly) 2. Segment the image into object and background 3. Compute mean intensity of object (m 1 ) and background (m 2 ) Histogram 4. Set new threshold to (m 1 +m 2 )/2 5. Repeat from 2. until no change m 2 Intensity value m 1

Segmentation via K-Means Clustering Histogram m 1 m 2 m 3 m 4 m 5 Intensity value m 2 Use K means get K classes K=10 m m 2 5 m 3 m 1 1) K initial means (m k ) 2) Assign each pixel p to cluster k s. t. argmin k intensity(p) m k 3) Recalculate cluster mean 4) Repeat from 2) until convergence

K-Means Clustering for Color Images So far K-means clustering in 1D (intensities) Same process for nd by using vector distances e.g. color images (RGB described as 3D-vector) R G B

K-Means Clustering Number of Clusters 10 24 68 clusters

K-Means Clustering - Initialization 6 clusters

K-Means Clustering - Summary Result depends on initialization Number of clusters is very important No spatial considerations

Edge Detection Why edges? http://www.funnyjunksite.com

Edge Detection Task: Segment the image by finding relevant edges (http://en.wikipedia.org/wiki/canny_edge_detector)

Edge Detection Task: Segment the image by finding relevant edges Simple Way: Smooth the image Calculate magnitude of image gradient Threshold

Canny Edge Detection Aim for optimal edge detection algorithm Good detection - find all relevant edges Good localization - find edge at the right location Minimal response - find only relevant edges

Canny Edge Detection Optimal edges? good detection: good localization: yes NO minimal response: yes/no

Canny Edge Detection Edge Direction Improve localization Classify according to gradient direction

Canny Edge Detection Thining Non-maximum suppression Thin edge in gradient direction: i.e. keep maximum response on 1D profile orthogonal to edge

Canny Edge Detection Thresholding Hysteresis thresholding To find relevant edges Strong edges Keep strong edges (response > T high ) Keep weaker edges connected to strong edges (response > T low and connectable to T high pixels) Weak edges After hysteresis thresholding

Canny Edge Detection Result Initial Final

Canny Edge Detection - Steps 1. Convolve image with Gaussian filter 2. Compute edges and estimate edge direction 3. Find edge locations using non-maximal suppression 4. Trace edges using hysteresis thresholding

Canny Edge Detection - Summary Affected by noise No automatic threshold selection Useful as preprocessing step Axial slice of lung CT image Sagittal slice of liver MR image

Hybrid Methods So far methods based on properties of single pixels (e.g. thresholding, K-mean clustering) relationship between neighbouring pixels (e.g. Canny edge detection) Combine these!

Graph Cut Source: label 1 Sink: label 2 Unary term: cost to not assign label y p to pixel p Binary Term: cost to assign label y p to p and y q to q

Graph Cut Source: label 1 Cut graph such that cost E(y) is minimal Sink: label 2 Unary Term: cost to not assign label y p to pixel p Binary Term: cost to assign label y p to p and y q to q

Examples: K-Means refined by Graph Cut 7 clusters Graph K-means cut 7 clusters Graph K-means cut

Graph Cut - Summary Hybrid method: intensity and edge costs Provides method to solve such a problem Global optimum But high memory usage

Region Growing Region based perspective From a (manually selected) seed (pixel or region) Expand boundary to enclose homogenous region (e.g. allowed intensities within range of mean±delta) Leakage when to stop?

Level Set Want smooth boundary enclosing homogenous regions Hybrid method: intensities and curvature of boundary http://en.wikipedia.org/wiki/level_set_method

Top-down Methods So far all methods were bottom-up Can we use prior knowledge? What objects are expected in the images? E.g. searching for certain shapes and appearances Important especially for noisy, lowcontrast, low-resolution images Involves image registration next http://thecreativecat.net

Outline Segmentation What is it? Tresholding K-means clustering Canny edge detection Graph cut Registration What is it? Main components Feature-based Intensity-based Examples Region growing Level set

Image Registration Aim: to establish spatial correspondences Result: motion vectors, spatial transformation between images http://www.vcipl.okstate.edu/research_image_registration.html

Main Component: Optimization Criteria Feature-based Find feature candidates Match features (minimize feature difference) Estimate spatial transformation Intensity-based Transform source image such that similarity between images is maximized

Main Component: Spatial Transformation What spatial transformation is expected? E.g. rigid transformation for bones Helps to constrain problem Rigid Deformable Defines interpolation function - From sparse correspondences (e.g. at features) - To dense displacement field

Image Registration Approaches Feature-Based Intensity-Based

Landmarks - SIFT Features SIFT = Scale Invariant Feature Transform Rotation and scale invariant Lowe et al., Distinctive Image Features form Scale-Invariate Keypoints, Int. J. Comp. Vision, 2004 36

Landmarks - SIFT Features 1. Scale-space extrema detection 2. Keypoint localization 3. Orientation assignment 4. Keypoint descriptor 37

1. Scale Space Convolve image with Gaussian kernel Get DoG images Downsample by factor of 2 Repeat

1. Scale Space Gaussian blurred images Difference of Gaussian images

1. Scale Space Extrema Detection Detect extrema of DoG images: Compare pixel to its 26 neighbors In 3x3x3 regions At current and adjacent scales Current pixel extrema of all neighbours?

2. Keypoint Localization Where exactly is the extrema? Fit a 3D quadratic function to the local sample points Determine the interpolated location of the extrema Reject extrema with low contrast http://en.wikipedia.org/wiki/ Scale-invariant_feature_transform

2. Keypoint Localization Remove edge responses DoG function gives strong response at edges But location along the edge is poorly determined - 1 large principal curvature (across edge) - 1 small principal curvature (along edge) Eigenvalues (α>β) of Hessian matrix H are proportional to principle curvatures Reject if ratio of eigenvalues (r = α/β) is large

3. Orientation Assignment Assign one or more orientations to each keypoint Histogram of local image gradient directions in neighborhood Peaks in histograms (>80% of max) define dominant orientations Achieves rotation invariance Future operations on images after transformation relative to this orientation, scale, location

4. Keypoint Descriptor Compute image gradient magnitude and orientation around keypoint Surrounding divided into 4x4 subregions Accumulate into orientation histograms (8 bins) relative to keypoint orientation Keypoint descriptor of length 128 (=16 subregions*8 bins) Correspondences indicated by small distance between key point descriptors

Stitching Example High-resolution sub-images Low-resolution image 1) Detect keypoints 2) Establish correspondences between keypoints 3) Determine transformation Kaynig et al., Fully Automatic Registration of Electron Microscopy Images with High and Low Resolution, Microscopy and Microanalysis, 2007. 46

Transformations translation rotation All 2D affine transformations (translation, rotation, scaling, shearing) can be expressed in a 3x3 transformation matrix A, i.e. x =Ax

Estimate Transformation from Keypoints Ordinary least squares Overdetermined linear system of equation AX = X Â = X X T (X X T ) -1 Minimizes Σ n (Âx n -x n ) 2 x x

Robust Estimation Weighted least squares Diagonal weight matrix W from confidence of keypoint correspondences  = X W X T (X W X T ) -1 Huber loss (ξ= Âx-x ) Outliers have less influence

Intensity-based: Image (Dis)Similarity Simplest: minimize Mean Squared Differences Optimal if images differ only by Gaussian noise 1 D( A, B) A( x) B( T( x)) N x 2 Linear function: maximize Correlation Coefficient Signals are normalized with respect to mean and standard deviation ( A( x) A)( B( T( x)) B) 1 x S( A, B) [0,1] N 2 2 ( A( x) A) ( B( T( x)) B) x x

Intensity-based: Block Matching Example Find translation which maximizes correlation coefficient

Intensity-based: Image Similarity Statistical: maximize Mutual Information Joint histogram: Probability of intensity pairs in MR/CT brain images Want to reduce the amount of information in combined image Information measured by Mutual Information I(A,B) = H(A) + H(B) - H(A, B) where Entropy H(A) = S p(a)log p(a) Joint Entropy H(A,B) = S S p(a,b)log p(a,b) Registered Misregistered by 2 mm Misregistered by 5 mm Hill et al., Medical Image Registration, Phys. Med. Biol. 46, 2001.

Example: Contrast- Enhanced MR Mammography No registration Rigid registration Non-rigid registration Maximum intensity projections of the difference between the post- and pre-contrast MR breast image

Example: Contrast-Enhanced MR Mammography Change in image intensity due to contrast Similarity measure: Mutual information Deformable parametric transformation Regular grid of control points interpolated by B-Splines Constraint: Volume preservation Mean accuracy ~0.5 mm Tanner et al., Quantitative evaluation of free-form deformation registration for dynamic contrast-enhanced MR mammography, Med. Phys. 34, 2007.

Example: Segmentation by Registration Model-based segmentation Assume repetitive shape/appearance Use learned statistical variation to constrain problem Main steps Register training data to common space Probabilistic representation of variation - e.g. PCA model of shape and appearance changes Register model to image data Cootes and Taylor, Active Shape Models Smart Snakes, BMVC 1992, Cootes et al., Active Appearance Models, ECCV 1998.

Outline Segmentation What is it? Treshold K-means Graph cut Canny Registration What is it? Main components Feature-based Intensity-based Examples Watersheds

Questions? References Image Segmentation Pal et al. "A Review on Image Segmentation Techniques" Pattern recognition,1993 Pham et al., Current Methods in Medical Image Segmentation, Ann. Review of Biomedical Eng., 2000 Heimann et al. "Statistical shape models for 3D medical image segmentation: A review." Medical image analysis, 2009 Image Registration Brown et al. "A Survey of Image Registration Techniques." ACM Computing Surveys, 1992 Hill et al., Medical Image Registration, Phys. Med. Biol., 2001 Zitova et al., Image Registration Methods: a Survey, Image and Vision Computing, 2003