37
Image Registration Mapping of Evolution

Image Registration Mapping of Evolution. Registration Goals Assume the correspondences are known Find such f() and g() such that the images are best

Embed Size (px)

Citation preview

Page 1: Image Registration  Mapping of Evolution. Registration Goals Assume the correspondences are known Find such f() and g() such that the images are best

Image Registration Mapping of Evolution

Page 2: Image Registration  Mapping of Evolution. Registration Goals Assume the correspondences are known Find such f() and g() such that the images are best

Registration Goals

• Assume the correspondences are known

• Find such f() and g() such that the images are best matched

I2(x,y)=g(I1(f(x,y))

f() – 2D spatial transformationg() – 1D intensity transformation

Page 3: Image Registration  Mapping of Evolution. Registration Goals Assume the correspondences are known Find such f() and g() such that the images are best

Spatial Transformations

• Rigid

• Affine

• Projective

• Perspective

• Global Polynomial

• Spline

Page 4: Image Registration  Mapping of Evolution. Registration Goals Assume the correspondences are known Find such f() and g() such that the images are best

Rigid Transformation

• Rotation(R)• Translation(t)• Similarity(scale)

2

22 y

xp

1

11 y

xp

12 pRstp

)cos()sin(

)sin()cos(

R

2

11 s

ss

2

11 t

tt

Page 5: Image Registration  Mapping of Evolution. Registration Goals Assume the correspondences are known Find such f() and g() such that the images are best

Affine Transformation

• Rotation• Translation• Scale• Shear

1

1

2221

1211

23

13

2

2

y

x

aa

aa

a

a

y

x

No more preservation of lengths and angles

Parallel lines are preserved

Page 6: Image Registration  Mapping of Evolution. Registration Goals Assume the correspondences are known Find such f() and g() such that the images are best

Perspective Transformation (Planar Homography)

Page 7: Image Registration  Mapping of Evolution. Registration Goals Assume the correspondences are known Find such f() and g() such that the images are best

Perspective Transformation(2)

• (xo,yo,zo) world coordinates

• (xi,yi) image coordinates

• Flat plane tilted with respect to the camera requires Projective Transformation

fz

fyy

o

oi

fz

fxx

o

oi

Page 8: Image Registration  Mapping of Evolution. Registration Goals Assume the correspondences are known Find such f() and g() such that the images are best

Projective Transformation

• (xp,yp) Plane Coordinates• (xi,yi) Image Coordinates

• amn coefficients from the equations of the scene and the image planes

333231

131211

ayaxa

ayaxax

pp

ppi

333231

232221

ayaxa

ayaxay

pp

ppi

Page 9: Image Registration  Mapping of Evolution. Registration Goals Assume the correspondences are known Find such f() and g() such that the images are best

Complex Transformations

Global Polynomial Transformation(splines)

Page 10: Image Registration  Mapping of Evolution. Registration Goals Assume the correspondences are known Find such f() and g() such that the images are best

Methods of Registration

• Correlation

• Fourier

• Point Mapping

Page 11: Image Registration  Mapping of Evolution. Registration Goals Assume the correspondences are known Find such f() and g() such that the images are best

Correlation Based TechniquesGiven a two images T & I, 2D normalized

correlation function measures the similarity for each translation in an image patch

x y

x y

vyuxI

vyuxIyxTvuC

),(

),(),(),(

2

Correlation must be normalized to avoid contributions from local image intensities.

Page 12: Image Registration  Mapping of Evolution. Registration Goals Assume the correspondences are known Find such f() and g() such that the images are best

Correlation Theorem

• Fourier transform of the correlation of two images is the product of the Fourier transform of one image and the complex conjugate of the Fourier transform of the other.

Page 13: Image Registration  Mapping of Evolution. Registration Goals Assume the correspondences are known Find such f() and g() such that the images are best

Fourier Transform Based Methods

• Phase-Correlation• Cross power spectrum• Power cepstrum

All Fourier based methods are very efficient, only only work in cases of rigid transformation

Page 14: Image Registration  Mapping of Evolution. Registration Goals Assume the correspondences are known Find such f() and g() such that the images are best

Point Mapping Registration

• Control Points

• Point Mapping with Feedback

• Global Polynomial

Page 15: Image Registration  Mapping of Evolution. Registration Goals Assume the correspondences are known Find such f() and g() such that the images are best

Control Points

Intrinsic

Markers within

the Image

Extrinsic

Manually or Automatically selected

After the control points have been

determined, cross correlation, convex hull

edges and other common methods are used

to register the sets of control points

Page 16: Image Registration  Mapping of Evolution. Registration Goals Assume the correspondences are known Find such f() and g() such that the images are best

Point mapping with Feedback

• Clustering example: determine the optimal spatial transformation between images by an evaluation of all possible pairs of feature matches.

• Initialize a point in cluster space for each transformation

• Use the transformation that is closest to the best cluster

• Too many points, thus use a subset

Page 17: Image Registration  Mapping of Evolution. Registration Goals Assume the correspondences are known Find such f() and g() such that the images are best

Global Polynomial Transformation(1)

• Use a set of patched points to generate a single optimal transformation

• Bi-Variate transformation:

m

l

i

j

jllj

m

l

i

j

jllj

yxbv

yxau

0 0

1

0 0

1

(x,y) – reference image

(u,v) – working image

Page 18: Image Registration  Mapping of Evolution. Registration Goals Assume the correspondences are known Find such f() and g() such that the images are best

Global Polynomial Transformation(2)

• When is polynomial transformation bad?

• Splines approximate polynomial transformations(B-spline, TP-spline)

Page 19: Image Registration  Mapping of Evolution. Registration Goals Assume the correspondences are known Find such f() and g() such that the images are best

Characteristics of Registration Methods

• Feature Space

• Similarity Metrics

• Search Strategy

Page 20: Image Registration  Mapping of Evolution. Registration Goals Assume the correspondences are known Find such f() and g() such that the images are best

Feature Spaces

Page 21: Image Registration  Mapping of Evolution. Registration Goals Assume the correspondences are known Find such f() and g() such that the images are best

Similarity Metrics

Page 22: Image Registration  Mapping of Evolution. Registration Goals Assume the correspondences are known Find such f() and g() such that the images are best

Search Strategies

Page 23: Image Registration  Mapping of Evolution. Registration Goals Assume the correspondences are known Find such f() and g() such that the images are best

Robust Multi-Sensor Image Alignment

Irani & Anandan

Direct Method(vs. Feature Based)

Page 24: Image Registration  Mapping of Evolution. Registration Goals Assume the correspondences are known Find such f() and g() such that the images are best

Multi Sensor Images

EO IR

Original Image (Intensity Map)

Find features

Assume global statistical correlation

Loss of important information

Often violated

Page 25: Image Registration  Mapping of Evolution. Registration Goals Assume the correspondences are known Find such f() and g() such that the images are best

Multi Sensor Image Representation(1)

• Same Modality Camera Sensors enough correlated structure at all resolution levels

• Different Modality Camera Sensors primary correlation only in high resolution levels

Page 26: Image Registration  Mapping of Evolution. Registration Goals Assume the correspondences are known Find such f() and g() such that the images are best

Multi Sensor Image Representation(2)

Goal: Suppress non-common information & capture the common scene details

Solution: High pass energy images

Page 27: Image Registration  Mapping of Evolution. Registration Goals Assume the correspondences are known Find such f() and g() such that the images are best

Laplacian Energy Images

• Apply the Laplacian high pass filter to the original images

• Square the results NO contrast reversal

BUT

The Laplacian is directionally invariant

Page 28: Image Registration  Mapping of Evolution. Registration Goals Assume the correspondences are known Find such f() and g() such that the images are best

Directional Derivative Energy Images

• Filter with Gaussian • Apply directional

derivative filter to the original image in 4 directions

• Square the resultant images

Page 29: Image Registration  Mapping of Evolution. Registration Goals Assume the correspondences are known Find such f() and g() such that the images are best

Alignment Algorithm

• Do not assume global correlation, use only local correlation information

• Use Normalized Correlation as a similarity measure

• Thus, no assumptions about the original data

Page 30: Image Registration  Mapping of Evolution. Registration Goals Assume the correspondences are known Find such f() and g() such that the images are best

Behavior of Normalized Correlation with Energy Images

• NC=1

Two images are linearly related

• NC<1(high)

Two images are not linearly related, yet local fluctuations are low

• NC<1(low)≈0

Incorrect displacements

Page 31: Image Registration  Mapping of Evolution. Registration Goals Assume the correspondences are known Find such f() and g() such that the images are best

Global Alignment with Local Correlation(1)

a, b – original images

{ai,bi} – directional derivatives (i=1..4)

p=(p1…p6)T affine(u,v) – shift from one image to another

Si(x,y)(u,v) – correlation surface at a pixel(x,y)

),(),(),(),( vyuxNbyxavuS iiyx

i

Page 32: Image Registration  Mapping of Evolution. Registration Goals Assume the correspondences are known Find such f() and g() such that the images are best

Global Alignment with Local Correlation(2)

));,(),;,(()(.

),( yx i

yxi pyxvpyxuSpM

Goal: Find the parametric transformation p, which maximizes the sum of all normalized correlation values. global similarity M(p)

yx i

yxi pyxuS

,

),( ));,((

Page 33: Image Registration  Mapping of Evolution. Registration Goals Assume the correspondences are known Find such f() and g() such that the images are best

Solving for M(p)

Newton’s method is used to solve for M(p)

pMTpp

Tp pHpMpMpM

)())(()()( 000

)())(( 01

0* pMpH pMp

iyx iu

T

iyx ipp uSXuSpM,,,,

))(()()(

iyx S

TM XuHXpH

i,,))(()(

The quadratic approximation of M around p is obtained by combining the quadratic approximations of each of the local correlation surfaces S around local displacement.

Page 34: Image Registration  Mapping of Evolution. Registration Goals Assume the correspondences are known Find such f() and g() such that the images are best

Steps of the Algorithm

• Construct a Laplacian resolution pyramid

• Compute a local normalized-correlation surface around a given displacement

• Compute the parametric refinement

• Update p

• Start over(process terminates at the highest resolution level of the last image)

Page 35: Image Registration  Mapping of Evolution. Registration Goals Assume the correspondences are known Find such f() and g() such that the images are best

Outlier Rejection

Due to the different modalities of thesensors, the number of outliers may be very large

1. Accept pixels based on concavity of the correlation surface

2. Weigh the contribution of a pixel by det|H(u)|

Page 36: Image Registration  Mapping of Evolution. Registration Goals Assume the correspondences are known Find such f() and g() such that the images are best

Results

EO image

IR imageComposite before Alignment

IR image

Composite after Alignment

Page 37: Image Registration  Mapping of Evolution. Registration Goals Assume the correspondences are known Find such f() and g() such that the images are best

Acknowledgements

• I would like to thank Compaq for making awful computers

• Professor Belongie for reviewing the slides