Invariants to convolution. Motivation – template matching.

82
Invariants to convolution

Transcript of Invariants to convolution. Motivation – template matching.

Page 1: Invariants to convolution. Motivation – template matching.

Invariants to convolution

Page 2: Invariants to convolution. Motivation – template matching.

Motivation – template matching

Page 3: Invariants to convolution. Motivation – template matching.

Image degradation models

Space-variant

Space-invariant convolution

Page 4: Invariants to convolution. Motivation – template matching.

Two approaches

Traditional approach: Image restoration (blind deconvolution) and traditional features

Proposed approach: Invariants to convolution

Page 5: Invariants to convolution. Motivation – template matching.

Invariants to convolution

for any admissible h

Page 6: Invariants to convolution. Motivation – template matching.

The moments under convolution

Geometric/central

Complex

Page 7: Invariants to convolution. Motivation – template matching.

PSF is centrosymmetric (N = 2) and has a unit integral

Assumptions on the PSF

supp(h)

Page 8: Invariants to convolution. Motivation – template matching.

Common PSF’s are centrosymmetric

Page 9: Invariants to convolution. Motivation – template matching.

Invariants to centrosymmetric convolution

where (p + q) is odd

What is the intuitive meaning of the invariants?

“Measure of anti-symmetry”

Page 10: Invariants to convolution. Motivation – template matching.

Invariants to centrosymmetric convolution

Page 11: Invariants to convolution. Motivation – template matching.

Invariants to centrosymmetric convolution

Page 12: Invariants to convolution. Motivation – template matching.

Convolution invariants in FT domain

Page 13: Invariants to convolution. Motivation – template matching.

Convolution invariants in FT domain

Page 14: Invariants to convolution. Motivation – template matching.

Relationship between FT and moment invariants

where M(k,j) is the same as C(k,j) but with geometric moments

Page 15: Invariants to convolution. Motivation – template matching.

Template matching

sharp image

with the templates

the templates (close-up)

Page 16: Invariants to convolution. Motivation – template matching.

Template matching

a frame where

the templates were

located successfully

the templates (close-up)

Page 17: Invariants to convolution. Motivation – template matching.

Template matching performance

Page 18: Invariants to convolution. Motivation – template matching.

Valid region

Boundary effect in template matching

Page 19: Invariants to convolution. Motivation – template matching.

Invalid region

- invariance is

violated

Boundary effect in template matching

Page 20: Invariants to convolution. Motivation – template matching.

Boundary effect in template matching

zero-padding

Page 21: Invariants to convolution. Motivation – template matching.

• N-fold rotation symmetry, N > 2

• Axial symmetry

• Circular symmetry

• Gaussian PSF

• Motion blur PSF

Other types of the blurring PSF

The more we know about the PSF, the more invariants and the higher discriminability we get

Page 22: Invariants to convolution. Motivation – template matching.

Discrimination power

The null-space of the blur invariants = a set of all images having the same symmetry as the PSF.

One cannot distinguish among symmetric objects.

Page 23: Invariants to convolution. Motivation – template matching.

Recommendation for practice

It is important to learn as much as possible about the PSF and to use proper invariants for object recognition

Page 24: Invariants to convolution. Motivation – template matching.

Combined invariants

Convolution and rotation

For any N

Page 25: Invariants to convolution. Motivation – template matching.

Robustness of the invariants

Page 26: Invariants to convolution. Motivation – template matching.

Satellite image registration by combined invariants

Page 27: Invariants to convolution. Motivation – template matching.

Registration algorithm

• Independent corner detection in both images• Extraction of salient corner points• Calculating blur-rotation invariants of a circular neighborhood of each extracted corner• Matching corners by means of the invariants• Refining the positions of the matched control

points• Estimating the affine transform parameters by

a least-square fit• Resampling and transformation of the sensed

image

Page 28: Invariants to convolution. Motivation – template matching.

( v11, v21, v31, …

)

( v12, v22, v32, …

)

min distance(( v1k, v2k, v3k, … ) , ( v1m, v2m, v3m, … ))k,m

Control point detection

Page 29: Invariants to convolution. Motivation – template matching.

Control point matching

Page 30: Invariants to convolution. Motivation – template matching.

Registration result

Page 31: Invariants to convolution. Motivation – template matching.

Application in MBD

Page 32: Invariants to convolution. Motivation – template matching.

Combined blur-affine invariants

• Let I(μ00,…, μPQ) be an affine moment invariant. Then I(C(0,0),…,C(P,Q)), where C(p,q) are blur invariants, is a combined blur-affine invariant (CBAI).

Page 33: Invariants to convolution. Motivation – template matching.

Digit recognition by CBAI

CBAI AMI

Page 34: Invariants to convolution. Motivation – template matching.

Documented applications of convolution and combined invariants

• Character/digit/symbol recognition in the presence of vibration, linear motion or

out-of-focus blur

• Robust image registration (medical, satellite, ...)• Detection of image forgeries

Page 35: Invariants to convolution. Motivation – template matching.

Moment-based focus measure

• Odd-order moments blur invariants

• Even-order moments blur/focus measure

If M(g1) > M(g2) g2 is less blurred

(more focused)

Page 36: Invariants to convolution. Motivation – template matching.

Other focus measures

• Gray-level variance

• Energy of gradient

• Energy of Laplacian

• Energy of high-pass bands of WT

Page 37: Invariants to convolution. Motivation – template matching.

Desirable properties of a focus measure

• Agreement with a visual assessment

• Unimodality

• Robustness to noise

• Robustness to small image changes

Page 38: Invariants to convolution. Motivation – template matching.

Agreement with a visual assessment

Page 39: Invariants to convolution. Motivation – template matching.

Robustness to noise

Page 40: Invariants to convolution. Motivation – template matching.

Sunspots – atmospheric turbulence

Page 41: Invariants to convolution. Motivation – template matching.

Moments are generally worse than wavelets and other differential focus measures because they are too sensitive to local changes but they are very robust to noise.

Page 42: Invariants to convolution. Motivation – template matching.
Page 43: Invariants to convolution. Motivation – template matching.

Invariants to elastic deformations

Page 44: Invariants to convolution. Motivation – template matching.

How can we recognize objects on curved surfaces ...

Page 45: Invariants to convolution. Motivation – template matching.

Moment matching

• Find the best possible fit by minimizing the error and set

Page 46: Invariants to convolution. Motivation – template matching.

The bottle

Page 47: Invariants to convolution. Motivation – template matching.
Page 48: Invariants to convolution. Motivation – template matching.

Orthogonal moments

Motivation for using OG moments

• Stable calculation by recurrent relations

• Easier and stable image reconstruction

- set of orthogonal polynomials

Page 49: Invariants to convolution. Motivation – template matching.

Numerical stability

How to avoid numerical problems with high

dynamic range of geometric moments?

Page 50: Invariants to convolution. Motivation – template matching.

Standard powers

Page 51: Invariants to convolution. Motivation – template matching.

Orthogonal polynomials

Calculation using recurrent relations

Page 52: Invariants to convolution. Motivation – template matching.

Two kinds of orthogonality

• Moments (polynomials) orthogonal on a unit square

• Moments (polynomials) orthogonal on a unit disk

Page 53: Invariants to convolution. Motivation – template matching.

Moments orthogonal on a square

is a system of 1D orthogonal polynomials

Page 54: Invariants to convolution. Motivation – template matching.

Common 1D orthogonal polynomials

• Legendre <-1,1>

• Chebyshev <-1,1>

• Gegenbauer <-1,1>

• Jacobi <-1,1> or <0,1>

• (generalized) Laguerre <0,∞)

• Hermite (-∞,∞)

Page 55: Invariants to convolution. Motivation – template matching.

Legendre polynomials

Definition

Orthogonality

Page 56: Invariants to convolution. Motivation – template matching.

Legendre polynomials explicitly

Page 57: Invariants to convolution. Motivation – template matching.

Legendre polynomials in 1D

Page 58: Invariants to convolution. Motivation – template matching.

Legendre polynomials in 2D

Page 59: Invariants to convolution. Motivation – template matching.

Legendre polynomials

Recurrent relation

Page 60: Invariants to convolution. Motivation – template matching.

Legendre moments

Page 61: Invariants to convolution. Motivation – template matching.

Moments orthogonal on a disk

Radial part

Angular part

Page 62: Invariants to convolution. Motivation – template matching.

Moments orthogonal on a disk

• Zernike

• Pseudo-Zernike

• Orthogonal Fourier-Mellin

• Jacobi-Fourier

• Chebyshev-Fourier

• Radial harmonic Fourier

Page 63: Invariants to convolution. Motivation – template matching.

Zernike polynomialsDefinition

Orthogonality

Page 64: Invariants to convolution. Motivation – template matching.

Zernike polynomials – radial part in 1D

Page 65: Invariants to convolution. Motivation – template matching.

Zernike polynomials – radial part in 2D

Page 66: Invariants to convolution. Motivation – template matching.

Zernike polynomials

Page 67: Invariants to convolution. Motivation – template matching.

Zernike moments

Mapping of Cartesian coordinates x,y to polar coordinates r,φ:

• Whole image is mapped inside the unit disk

• Translation and scaling invariance

Page 68: Invariants to convolution. Motivation – template matching.

Zernike moments

Page 69: Invariants to convolution. Motivation – template matching.

Rotation property of Zernike moments

The magnitude is preserved, the phase is shifted by ℓθ.

Invariants are constructed by phase cancellation

Page 70: Invariants to convolution. Motivation – template matching.

Zernike rotation invariants

Phase cancellation by multiplication

Normalization to rotation

Page 71: Invariants to convolution. Motivation – template matching.

Image reconstruction

• Direct reconstruction from geometric moments

• Solution of a system of equations• Works for very small images only• For larger images the system is ill-conditioned

Page 72: Invariants to convolution. Motivation – template matching.

Image reconstruction by direct computation

12 x 12 13 x 13

Page 73: Invariants to convolution. Motivation – template matching.

Image reconstruction

• Reconstruction from geometric moments via FT

Page 74: Invariants to convolution. Motivation – template matching.

Image reconstruction via Fourier transform

Page 75: Invariants to convolution. Motivation – template matching.

Image reconstruction

• Image reconstruction from OG moments on

a square

• Image reconstruction from OG moments on

a disk (Zernike)

Page 76: Invariants to convolution. Motivation – template matching.

Image reconstruction from Legendre moments

Page 77: Invariants to convolution. Motivation – template matching.

Image reconstruction from Zernike moments

Better for polar raster

Page 78: Invariants to convolution. Motivation – template matching.

Image reconstruction from Zernike moments

Page 79: Invariants to convolution. Motivation – template matching.

Reconstruction of a noise-free image

Page 80: Invariants to convolution. Motivation – template matching.

Reconstruction of a noisy image

Page 81: Invariants to convolution. Motivation – template matching.

Reconstruction of a noisy image

Page 82: Invariants to convolution. Motivation – template matching.

Summary of OG moments• OG moments are used because of their favorable numerical properties, not because of theoretical contribution • OG moments should be never used outside the area

of orthogonality• OG moments should be always calculated by recurrent relations, not by expanding into powers• Moments OG on a square do not provide easy rotation invariance• Even if the reconstruction from OG moments is seemingly simple, moments are not a good tool for image compression