Image Segmentation and Registration

Similar documents
SIFT: SCALE INVARIANT FEATURE TRANSFORM SURF: SPEEDED UP ROBUST FEATURES BASHAR ALSADIK EOS DEPT. TOPMAP M13 3D GEOINFORMATION FROM IMAGES 2014

Scale Invariant Feature Transform

Scale Invariant Feature Transform

The SIFT (Scale Invariant Feature

Outline 7/2/201011/6/

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

Local Features: Detection, Description & Matching

SUMMARY: DISTINCTIVE IMAGE FEATURES FROM SCALE- INVARIANT KEYPOINTS

Patch-based Object Recognition. Basic Idea

SIFT - scale-invariant feature transform Konrad Schindler

Introduction. Introduction. Related Research. SIFT method. SIFT method. Distinctive Image Features from Scale-Invariant. Scale.

CAP 5415 Computer Vision Fall 2012

Local invariant features

Computer vision: models, learning and inference. Chapter 13 Image preprocessing and feature extraction

EECS150 - Digital Design Lecture 14 FIFO 2 and SIFT. Recap and Outline

Local Image Features

SIFT: Scale Invariant Feature Transform

Local Image preprocessing (cont d)

CS 4495 Computer Vision A. Bobick. CS 4495 Computer Vision. Features 2 SIFT descriptor. Aaron Bobick School of Interactive Computing

Scale Invariant Feature Transform by David Lowe

Obtaining Feature Correspondences

Computer Vision. Recap: Smoothing with a Gaussian. Recap: Effect of σ on derivatives. Computer Science Tripos Part II. Dr Christopher Town

Local Image Features

EE368 Project Report CD Cover Recognition Using Modified SIFT Algorithm

Feature Based Registration - Image Alignment

Implementing the Scale Invariant Feature Transform(SIFT) Method

Computer Vision for HCI. Topics of This Lecture

CEE598 - Visual Sensing for Civil Infrastructure Eng. & Mgmt.

Solution: filter the image, then subsample F 1 F 2. subsample blur subsample. blur

Feature Detection. Raul Queiroz Feitosa. 3/30/2017 Feature Detection 1

Local Features Tutorial: Nov. 8, 04

Motion illusion, rotating snakes

School of Computing University of Utah

Norbert Schuff VA Medical Center and UCSF

Topic 4 Image Segmentation

Local features: detection and description. Local invariant features

Announcements. Edge Detection. An Isotropic Gaussian. Filters are templates. Assignment 2 on tracking due this Friday Midterm: Tuesday, May 3.

SCALE INVARIANT FEATURE TRANSFORM (SIFT)

Chapter 3 Image Registration. Chapter 3 Image Registration

3D Reconstruction From Multiple Views Based on Scale-Invariant Feature Transform. Wenqi Zhu

Robotics Programming Laboratory

Modern Medical Image Analysis 8DC00 Exam

Corner Detection. GV12/3072 Image Processing.

BSB663 Image Processing Pinar Duygulu. Slides are adapted from Selim Aksoy

Features Points. Andrea Torsello DAIS Università Ca Foscari via Torino 155, Mestre (VE)

Key properties of local features

EE795: Computer Vision and Intelligent Systems

Image features. Image Features

Eppur si muove ( And yet it moves )

Image Processing. Image Features

Motion Estimation and Optical Flow Tracking

Feature Matching and Robust Fitting

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

Segmentation and Grouping

Edge and corner detection

Computer Vision I - Basics of Image Processing Part 2

Augmented Reality VU. Computer Vision 3D Registration (2) Prof. Vincent Lepetit

Image processing and features

Region-based Segmentation

Image Analysis Lecture Segmentation. Idar Dyrdal

Local features: detection and description May 12 th, 2015

CS 558: Computer Vision 4 th Set of Notes

Boundaries and Sketches

Nonrigid Registration using Free-Form Deformations

Computer Vision I - Filtering and Feature detection

Implementation and Comparison of Feature Detection Methods in Image Mosaicing

Local Feature Detectors

Edge and local feature detection - 2. Importance of edge detection in computer vision

Midterm Wed. Local features: detection and description. Today. Last time. Local features: main components. Goal: interest operator repeatability

Feature Detection and Matching

EE795: Computer Vision and Intelligent Systems

Computational Optical Imaging - Optique Numerique. -- Multiple View Geometry and Stereo --

Feature descriptors and matching

Deformable Segmentation using Sparse Shape Representation. Shaoting Zhang

A Novel Algorithm for Color Image matching using Wavelet-SIFT

Motion Estimation. There are three main types (or applications) of motion estimation:

Edges and Binary Images

Verslag Project beeldverwerking A study of the 2D SIFT algorithm

Comparison of Feature Detection and Matching Approaches: SIFT and SURF

AK Computer Vision Feature Point Detectors and Descriptors

Biomedical Image Processing

ECG782: Multidimensional Digital Signal Processing

MEDICAL IMAGE ANALYSIS

TA Section 7 Problem Set 3. SIFT (Lowe 2004) Shape Context (Belongie et al. 2002) Voxel Coloring (Seitz and Dyer 1999)

Image Matching. AKA: Image registration, the correspondence problem, Tracking,

Anno accademico 2006/2007. Davide Migliore

Filtering Images. Contents

Generalized Hough Transform, line fitting

Introduction to Medical Imaging (5XSA0)

Scale Invariant Feature Transform (SIFT) CS 763 Ajit Rajwade

Edge detection. Goal: Identify sudden. an image. Ideal: artist s line drawing. object-level knowledge)

Feature descriptors. Alain Pagani Prof. Didier Stricker. Computer Vision: Object and People Tracking

Peripheral drift illusion

Digital Image Processing

Feature Detectors and Descriptors: Corners, Lines, etc.

Announcements. Edges. Last Lecture. Gradients: Numerical Derivatives f(x) Edge Detection, Lines. Intro Computer Vision. CSE 152 Lecture 10

Object Recognition with Invariant Features

Panoramic Image Stitching

Building a Panorama. Matching features. Matching with Features. How do we build a panorama? Computational Photography, 6.882

Biometrics Technology: Image Processing & Pattern Recognition (by Dr. Dickson Tong)

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 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 mean values 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://thecreativecat.net

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: Minimize intensity dissimilarity and curvature of boundary http://en.wikipedia.org/wiki/level_set_method

Hybrid Methods Graph cut: Minimize intensity dissimilarity and edge costs Level set: Minimize intensity dissimilarity and curvature of boundary Anything else we could use?

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

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 37

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

1. Scale Space Convolve image with Gaussian kernels 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. 47

Transformations translation rotation

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 2 D( A, B) A( x) B( T( x)) N x 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.

Example: Rib detection in MRI Shape model from CT - 20 subjects - 96% variability of all 4 ribs - Captured by 6 parameters Appearance model from MRI - Random forest classifiers - Trained on MR rib/non-rib patches - Provides probability of ribness Find shape parameters which maximize ribness probability along ribs Mean detection accuracy: 2.5mm Samei et al., Detection and registration of ribs in MRI using geometric and appearance models, MICCAI 2014

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