A Fast Algorithm for Variational Level Set Segmentation

  • Slides: 41
Download presentation
A Fast Algorithm for Variational Level Set Segmentation Tony F. Chan Department of Mathematics,

A Fast Algorithm for Variational Level Set Segmentation Tony F. Chan Department of Mathematics, Univ. Calif. Los Angeles SONAD 2003 Mc. Master University, Ontario, Canada May 2, 2003 Reprints: www. math. ucla. edu/~imagers Supported by ONR and NSF (Joint work with Bing Song)

OUTLINE • Review of Variational Level Set Segmentation • Fast Algorithm

OUTLINE • Review of Variational Level Set Segmentation • Fast Algorithm

What is an “active contour” ? Initial Curve Evolutions Detected Objects

What is an “active contour” ? Initial Curve Evolutions Detected Objects

A fitting term “without edges” where Fit > 0 Fit ~ 0 Minimize: (Fitting

A fitting term “without edges” where Fit > 0 Fit ~ 0 Minimize: (Fitting +Regularization) Fitting not depending on gradient detects “contours without gradient”

An active contour model “without edges” (C. + Vese 98) Fitting + Regularization terms

An active contour model “without edges” (C. + Vese 98) Fitting + Regularization terms (length, area) C = boundary of an open and bounded domain |C| = the length of the boundary-curve C

Advantages - detects objects without sharp edges - detects cognitive contours - robust to

Advantages - detects objects without sharp edges - detects cognitive contours - robust to noise; no need for pre-smoothing Examples

Level Set Representation (S. Osher - J. Sethian ‘ 87) Inside C Outside C

Level Set Representation (S. Osher - J. Sethian ‘ 87) Inside C Outside C C C= boundary of an open domain Example: mean curvature motion * Allows automatic topology changes, cusps, merging and breaking. • Originally developed for tracking fluid interfaces.

Variational Formulations and Level Sets (Following Zhao, Chan, Merriman and Osher ’ 96) The

Variational Formulations and Level Sets (Following Zhao, Chan, Merriman and Osher ’ 96) The Heaviside function The level set formulation of the active contour model

The Euler-Lagrange equations Using smooth approximations for the Heaviside and Delta functions

The Euler-Lagrange equations Using smooth approximations for the Heaviside and Delta functions

Experimental Results Advantages Automatically detects interior contours! Works very well for concave objects Robust

Experimental Results Advantages Automatically detects interior contours! Works very well for concave objects Robust w. r. t. noise Detects blurred contours The initial curve can be placed anywhere! Allows for automatical change of topolgy

A plane in a noisy environment A galaxy

A plane in a noisy environment A galaxy

From Active Contours (2 D) to Active Surfaces (3 D) MRI DATA FROM LONI-UCLA

From Active Contours (2 D) to Active Surfaces (3 D) MRI DATA FROM LONI-UCLA

Extension to Vector-Valued Images Tony F. CHAN & Luminita VESE & B. Yezrielev SANDBERG

Extension to Vector-Valued Images Tony F. CHAN & Luminita VESE & B. Yezrielev SANDBERG Applications * Color images (RGB) * Multi-spectral (PET, MRI, CT) Vector-Valued image: The model (averages of each channel inside and outside the curve) * The model can be solved using level sets, similar with the scalar case

Extension to Vector-Valued Images Channel 1 with occlusion Channel 2 with noise Recovered object

Extension to Vector-Valued Images Channel 1 with occlusion Channel 2 with noise Recovered object and averages

Color Images Color (RGB) picture R Intensity (gray-level) picture G B Recovered objects and

Color Images Color (RGB) picture R Intensity (gray-level) picture G B Recovered objects and contours in RGB mode

Active Contour for Texture 45 transforms of image with Gabor function s=. 005 s=.

Active Contour for Texture 45 transforms of image with Gabor function s=. 005 s=. 0075 q F 0 p/6 p/4 p/3 p/2 q 120 F 120 150 180 q 0 p/6 s=. 0025 p/4 p/3 p/2 0 p/6 p/4 p/3 p/2 User Picked Gabor transforms yield final contour

Logic Operators on Multi-Channel Active Contour (Chan, Sandberg 2001) • An Example for two

Logic Operators on Multi-Channel Active Contour (Chan, Sandberg 2001) • An Example for two channel logical segmentation:

Example of an Application Original image with contour overlapping Contour only Time evolution for

Example of an Application Original image with contour overlapping Contour only Time evolution for finding the “tumor” in the first image that is not in the second.

Multiphase level set representations and partitions allows for triple junctions, with no vacuum and

Multiphase level set representations and partitions allows for triple junctions, with no vacuum and no overlap of phases 4 -phase segmentation 2 level set functions 2 -phase segmentation 1 level set function

Example: two level set functions and four phases

Example: two level set functions and four phases

An MRI brain image Phase 11 Phase 10 Phase 01 mean(11)=45 mean(10)=159 mean(01)=9 Phase

An MRI brain image Phase 11 Phase 10 Phase 01 mean(11)=45 mean(10)=159 mean(01)=9 Phase 00 mean(00)=103

Three level set functions representing up to eight phases Six phases are detected, together

Three level set functions representing up to eight phases Six phases are detected, together with the triple junctions. Evolution of the 3 level sets Segmented image T Evolution of the 3 individual level sets.

OUTLINE • Review of Variational Level Set Segmentation • Fast Algorithm

OUTLINE • Review of Variational Level Set Segmentation • Fast Algorithm

A Fast Algorithm for Level Set Based Optimization (Bing Song and Tony Chan, 2003)

A Fast Algorithm for Level Set Based Optimization (Bing Song and Tony Chan, 2003) Available at www. math. ucla. edu/applied/cam/index. html CAM 02 -68 (Related work by Gibou & Fedkiw)

Motivation • Minimize level set based functional • Examples: – – – Image segmentation

Motivation • Minimize level set based functional • Examples: – – – Image segmentation Inverse problem Shape analysis and optimization Data Clustering …

How to solve it? • Usually use gradient descent flow • Drawback – Slow

How to solve it? • Usually use gradient descent flow • Drawback – Slow (CFL) – F need to be differentiable

An Insight • Segmentation only needs sign of but not its value • Direct

An Insight • Segmentation only needs sign of but not its value • Direct search making use of objective function does not require derivatives of functional

New Algorithm 1. Initialization. Partition the domain into and 2. Advance. For each point

New Algorithm 1. Initialization. Partition the domain into and 2. Advance. For each point x in the domain, if the energy F lower when we change to , then update this point. 3. Repeat step 2 until the energy F remains unchanged

An example: Chan-Vese model

An example: Chan-Vese model

Core Step of Algorithm Change in F if is changed to at a pixel:

Core Step of Algorithm Change in F if is changed to at a pixel:

How to calculate length term? Change in length term can be updated locally. Only

How to calculate length term? Change in length term can be updated locally. Only possible value for length term locally is 0, 1, sqrt(2) depending the 3 points in the length term belong to the same region or not.

A 2 -phase example (a), (b), (c), (d) are four different initial condition. All

A 2 -phase example (a), (b), (c), (d) are four different initial condition. All of them converge in one sweep!

Example with Noise Converged in 4 steps. (Gradient Descent on Euler-Lagrange took > 400

Example with Noise Converged in 4 steps. (Gradient Descent on Euler-Lagrange took > 400 steps. )

Convergence of the algorithm Theorem: For a two phase image, the algorithm will converge

Convergence of the algorithm Theorem: For a two phase image, the algorithm will converge in one sweep, independent of sweeping order. Proof considers the following 2 cases: Green part of inside of contour will flip sign. Only one of the 2 black parts can change sign

Why is 1 -step convergence possible? • Problem is global: usually cannot have finite

Why is 1 -step convergence possible? • Problem is global: usually cannot have finite step convergence based on local updates only • But, in our case, we can exactly calculate the global energy change via local update (can update global average locally)

Application to piecewise linear CV model (Vese 2002) Original P. W. Constant P. W.

Application to piecewise linear CV model (Vese 2002) Original P. W. Constant P. W. Linear Converged in 4 steps Converged in 6 steps

Application to multiphase CV model (C. - Vese 2000) • Using n level set

Application to multiphase CV model (C. - Vese 2000) • Using n level set to represent 2 n phases.

Multiphase CV model (cont’d) Converged in 1 step.

Multiphase CV model (cont’d) Converged in 1 step.

Gibou and Fedkiw’s method (02) • First, discard the stiff length term in E-L:

Gibou and Fedkiw’s method (02) • First, discard the stiff length term in E-L: • Take large time step enough to change sign • If , then • Followed by anisotropic diffusion to handle noise • Difference (Ours wrt GF): – A unified framework to handle length term – F does not need to be differentiable

Conclusion • A fast algorithm to solve the Chan-Vese segmentation models. • 1 -step

Conclusion • A fast algorithm to solve the Chan-Vese segmentation models. • 1 -step convergence for 2 phase images (no reg. ). • Robust wrt noise: 3 -4 step convergence. • The gradient of functional is not needed. • We think it can be applied to more general level set based optimization problems. • In general, cannot expect finite step convergence (need global change from local update). Can get stuck in local minima.

That’s all. Thank you for your patience!

That’s all. Thank you for your patience!