advanced methods for image segmentation

49
Advanced Methods for Image Segmentation Ilya Pollak Purdue University November 10, 2008

Upload: admon

Post on 16-Jan-2016

52 views

Category:

Documents


0 download

DESCRIPTION

Advanced Methods for Image Segmentation. Ilya Pollak Purdue University November 10, 2008. Outline. Image segmentation examples Different classes of image segmentation methods Methods based on scale-spaces: Linear Gaussian scale-space Perona-Malik equation - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Advanced Methods for Image Segmentation

Advanced Methods for Image Segmentation

Ilya Pollak

Purdue University

November 10, 2008

Page 2: Advanced Methods for Image Segmentation

Outline

• Image segmentation examples• Different classes of image segmentation methods• Methods based on scale-spaces:

– Linear Gaussian scale-space

– Perona-Malik equation

– Stabilized inverse diffusion equation (SIDE)

• Vector-valued SIDEs• Applications to Digital Microscopy Data

Page 3: Advanced Methods for Image Segmentation

freckle021

freckle059

freckle055

freckle108

Segmentation of a Freckle Defect in Single Crystal Nickel Images

Page 4: Advanced Methods for Image Segmentation

Segmentation of Dermatoscopic Images of Skin Lesions

Page 5: Advanced Methods for Image Segmentation

Segmentation of a SAR Image

Original Method 1 Method 2

Page 6: Advanced Methods for Image Segmentation

Document Image Segmentation

Document and its segmentation Classification of regions

Page 7: Advanced Methods for Image Segmentation

Activation Detection in Functional MRI

Left hemifield stimulus Right hemifield stimulus

Page 8: Advanced Methods for Image Segmentation

References• L. Huffman, J. Simmons and I. Pollak. Segmentation of digital microscopy data for

the analysis of defect structures in materials using nonlinear diffusions. Presented at the Conference on Computational Imaging, IS&T/SPIE 20th Annual Symposium on Electronic Imaging Science and Technology, January 27-31, 2008, San Jose, CA. In Computational Imaging VI, Proceedings of SPIE, C.A. Bouman, E.L. Miller, and I. Pollak, Eds.

• X. Dong and I. Pollak. Multiscale Segmentation with Vector-Valued Nonlinear Diffusions on Arbitrary Graphs. IEEE Trans. Im. Proc., 15(7):1993-2005, July 2006.

• M.G. Fleming, C. Steger, J. Zhang, J. Gao, A.B. Cognetta, I. Pollak and C.R. Dyer. Techniques for a structural analysis of dermatoscopic imagery. Computerized Medical Imaging and Graphics, 22(5):375-389, 1998.

• I. Pollak, A.S. Willsky and H. Krim. Image segmentation and edge enhancement with stabilized inverse diffusion equations. IEEE Trans. Im. Proc., 9(2):256-266, Feb 2000.

• W. Wang, I. Pollak, T.-S. Wong, C.A. Bouman, M.P. Harper and J.M. Siskind. Hierarchical stochastic image grammars for classification and segmentation. IEEE Trans. Im. Proc., 15(10):3033-3052, October 2006.

• J. Wei, T. Talavage and I. Pollak. Modeling and activation detection in fMRI data analysis. In Proc. IEEE Statistical Signal Processing Workshop, pp. 141-145, August 26-29, 2007, Madison, WI.

Page 9: Advanced Methods for Image Segmentation

Some Classes of Segmentation Methods

• Bayesian classification (C. Bouman, Tue AM):– Construct a prior model for each pixel class, estimate pixel classes from the

observed data

• Active contours (S. Acton, J. Kovačević, Tue AM):– Throw several curves onto the image and let them evolve towards objects of

interest by minimizing an energy

• Graph-based methods (S. Wang, Tue AM):– E.g., compute an optimal graph cut

• Variational methods (C. Bajaj, Tue PM):– Set up and solve a global variational problem (e.g. Mumford-Shah)

• Region merging:– Recursively merge regions to reduce an energy

• Multiscale methods:– Repeatedly coarsen with “low-pass” filters, segment coarsened versions

Page 10: Advanced Methods for Image Segmentation

To simplify, consider 1D segmentation first

Take the first row of pixels and plottheir intensities as a function of position:

Page 11: Advanced Methods for Image Segmentation

* =

* =

* =

Noise Removal with a Linear Gaussian Scale-Space

Page 12: Advanced Methods for Image Segmentation

),0(

),(),(

xu

xtuxtu xxt Heat equation

Linear Gaussian Scale-Space and Heat Equation

where

* = ),,( xtu

2t

Page 13: Advanced Methods for Image Segmentation

tu xxu1D Example

Page 14: Advanced Methods for Image Segmentation

2D Example

Fine scale Coarse scale

ut uxx uyy

Page 15: Advanced Methods for Image Segmentation

Perona-Malik Equation

ut x

F(ux ) • Edge sharpening for

• Ill-posed,

• Semi-discrete and discrete versions are well-posed:

ux K

ut F (ux )uxx

))()(())()(()( 11 tutuFtutuFtu nnnnn

uni1 un

i t (F(un1i un

i ) F(uni un 1

i ))

Page 16: Advanced Methods for Image Segmentation

Semi-Discrete Perona-Malik Equation

We focus on the semi-discrete equation, which is a system of ODE’s:

))()(())()(()( 11 tutuFtutuFtu nnnnn for n=1,…,N

u(0) u0 u10,u2

0,,uN0 T

Page 17: Advanced Methods for Image Segmentation

2D Example

Large K

Small K

Page 18: Advanced Methods for Image Segmentation

F(un1 un )

un1 un

Stabilized Inverse Diffusion Equations (SIDE’s)

• Pollak, Willsky, Krim, Trans. Image Proc., Feb. 2000.

• The limit of Perona-Malik as K approaches zero.

• Semi-discrete version is well-posed.

– Sliding modes on the surfaces

– I.e.,

u : un1 un

uk1 uk

un1 un

• Scale-space consists of piecewise-constant signals.

if un1() un ( ) then un1(t) un (t) for t

– Will converge to a constant within finite time.

Page 19: Advanced Methods for Image Segmentation

Another 1D Example

Page 20: Advanced Methods for Image Segmentation

))()(())()((1

)( 11 ttFttFL

t iiiii

i

SIDEs (continued)• The solution automatically produces fine-to-coarse sequence of segmentations.

• This process is a multiscale region merging algorithm which starts with singleton regions.

• Sliding mode dynamics for the i-th region of length and intensity

Li

i :

)(nbrs

))()((1

)(ij

ijiji

i bttFA

t • In 2D,

– where

Ai is the number of pixels in region i, and

bij is the length of the boundary between regions i and j.

Page 21: Advanced Methods for Image Segmentation

2D Example

1000 regions 100 regions 2 regions

Page 22: Advanced Methods for Image Segmentation

2D Examples

Page 23: Advanced Methods for Image Segmentation

Segmentation of Vector-Valued Images: Motivation

How to segment an image composed of several textureswhose average intensities may not be very different?

One possible answer: convert it into several “feature” images which associate different intensities with different textures

Page 24: Advanced Methods for Image Segmentation

Scalar-Valued Image Vector-Valued Image

Filter 1

Filter 2

Original image

Filter N

Filter bank Vector-valued feature image

Page 25: Advanced Methods for Image Segmentation

Example: Gabor Energy Features

• Useful for analyzing textures at different scales, frequencies, orientations

• Filter an image with Gabor filter pairs at many scales, frequencies, orientations

• For each Gabor filter pair, take the energy image

Page 26: Advanced Methods for Image Segmentation

Gabor Energy Features

Page 27: Advanced Methods for Image Segmentation

SIDE as a Gradient Descent

S R1,,RI a partition of the image domain into I regions

US all piecewise - constant images with this partition

++=

Page 28: Advanced Methods for Image Segmentation

SIDE as a Gradient Descent

ijji

ij

S

bE

U

nbrs ,

)()( whereand

current in the taken isgradient thewhere

is SIDE 2D :nObservatio

u

u

E

E

S R1,,RI a partition of the image domain into I regions

US all piecewise - constant images with this partition

E(v)

v

F(v)

v

Page 29: Advanced Methods for Image Segmentation

• Define an inner product between feature (or color) vectors.

• Define an inner product between two vector-valued images in

• Perform recursive region merging, with gradient descent on between merges.

From Scalar-Valued to Vector-Valued SIDEs

E (u) = E r μ j −

r μ i ( ) bij

i, j nbrs

SU

Page 30: Advanced Methods for Image Segmentation

Vector-Valued SIDE

– is the vector intensity of region Ri at scale t

– a(Ri) is an application-specific positive weight function, e.g., the area of region Ri

– b(Ri,Rj) is an application-specific positive weight function which relates neighboring regions Ri and Rj, e.g., the length of the boundary between Ri and Rj

– E(x) is the energy function, e.g.,• This choice of E(x) pushes intensities μ of neighboring regions to

equality, therefore encouraging a coarse segmentation

)(NBRS

||)(||'||||

),()(

1

ij RRij

ij

ijji

ii ERRb

Ra

E x x

i

Page 31: Advanced Methods for Image Segmentation

Multiscale Segmentation Algorithm

1. Given a segmentation S of image u, evolve the descent equation until the intensities of some pair of neighbor regions are equal.

2. Merge the two regions by removing them both from S and adding their union to S.

3. If the desired number of regions is reached, stop. Else, go to Step 1.

Page 32: Advanced Methods for Image Segmentation

Texture Segmentation Example

Page 33: Advanced Methods for Image Segmentation

Texture Segmentation Example

Page 34: Advanced Methods for Image Segmentation

Another Example

Page 35: Advanced Methods for Image Segmentation

Segmentation of a Natural Image

Page 36: Advanced Methods for Image Segmentation

freckle021

freckle059

Segmentation of a Freckle Defect in Single Crystal Nickel Images

freckle055

freckle108

Page 37: Advanced Methods for Image Segmentation

Multi-Tilt Segmentations

Combining segmentations from multiple images

+ + +

=

Page 38: Advanced Methods for Image Segmentation

Segmentation Fusion

1. Locate landmarks visible in every image

2. Register images using landmarks

3. Combine SIDE segmentations of each image to create a composite segmentation

Page 39: Advanced Methods for Image Segmentation

Carbides as Landmarks

• Carbides appear as dark spots in the material visible at most of the tilt angles. These are used as landmarks.

Some visible carbides

Page 40: Advanced Methods for Image Segmentation

• Carbides detected by thresholding the intensity of pixels in regions where less than 1% of pixels are above threshold

Landmark Detection

Carbide pixel extraction

Page 41: Advanced Methods for Image Segmentation

Image Registration

Unaligned segmentation boundaries (4001 in red, 7001 in green)

Aligned through 2D correlation

Aligned by affine-transforming 7001 to match 4001

Page 42: Advanced Methods for Image Segmentation

Segmentation Fusion

• Directly overlaying segmentations from multiple tilts produces many new “regions” due to slight differences in SIDE outputs on different images.

Overlaid boundaries of 4001 and transformed 7001

Zoom in on shared region borders

Page 43: Advanced Methods for Image Segmentation

Removing Small Extraneous Regions

• Assign a unique region label to every region in the original individual segmentations.

• Each region in the combined segmentation then has two original region labels from the original segmentations.

• The overlap of Region A from image 1 with Region B from image 2 may produce multiple new contiguous regions.

New region labels indicated by color

Page 44: Advanced Methods for Image Segmentation

• New regions are defined as “extraneous” if they make up less than ε% of both of the original regions the pixels belonged to.

• Extraneous regions are then combined with the neighboring region that shares one of the same original region labels and contains the most pixels from that original region.

Removing Small Extraneous Regions

Direct overlay contains 1960 regions Removing extraneous regions results in 426 regions total

Zoom of original overlay labeling

Zoom of overlay labeling after extraneous region removal

Page 45: Advanced Methods for Image Segmentation

Segmentation Fusion for Four Tilts

4001 regions

Transformed 5001 regions

Transformed 6001 regions

Merged 4001-5001 regions

Transformed 7001 regions

Merged 4001-5001-6001-7001 regions

Merged 4001-5001-6001 regions

Page 46: Advanced Methods for Image Segmentation

Segmentations and Images

4001 portion 5001 portion

7001 portion6001 portion

Combined region boundaries

Page 47: Advanced Methods for Image Segmentation

Summary

• SIDE is a flexible, robust segmentation method

• Once parameters are selected, no human interaction

• Can work in conjunction with any feature extraction method and any image registration/fusion method

• Has been successfully applied to natural images, medical images, and microscopy images of materials

Page 48: Advanced Methods for Image Segmentation

Acknowledgments• Jeff Simmons of AFRL

• Data: Michael Uchic and Jonathan Spowart of AFRL

• Past Funding: AFRL, Wright-Patterson AFB (Dr. Dallis Hardwick, program manager) under subcontract USAF-5212-STI-SC-0026 from GeneralDynamics Information Technology, Inc. (May-Nov 2007)

• Future Funding: ??????

Page 49: Advanced Methods for Image Segmentation

Future Work• Improvements to multi-tilt fusion• Joint 3D/4D segmentation• Applications to other images of materials• Investigation of feature extraction methods• Parameter learning• Prior modeling: designing penalty functions a and

b and energy function E• Theoretical analysis:

– Total-variation minimization for u0 = x + w

– Inverse problems: u0 = Ax + w

– Non-Gaussian noise