60
E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

  • Upload
    others

  • View
    35

  • Download
    0

Embed Size (px)

Citation preview

Page 1: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

E1 216 COMPUTER VISIONLECTURE 04 : APPLICATIONS OF RADIOMETRY

Venu Madhav GovinduDepartment of Electrical EngineeringIndian Institute of Science, Bengaluru

Page 2: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

Image Formation

Last class we looked at the radiometry of image formationIn this lecture we shall look at applications of radiometric principles

Page 3: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

Applications

We shall look at

• Photometric Stereo : 3D Shape using multiple light sources

• Helmholtz Stereopsis : 3D Shape using Helmholtz reciprocity

Page 4: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

Applications : Photometric Stereo

• Assume a Lambertian model

• Fix camera and object position

• Vary illumination using point source

• Developed by Woodham

B(P ) = ρ(P )N(P ).V 1

I(x, y) = kB(x, y)

= kρ(x, y)N(x, y).V 1

= g(x, y).V 1

Page 5: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

Applications : Photometric Stereo

V =

V 1

T

V 2T

...

V nT

i(x, y) = {I1(x, y), · · · , In(x, y)}T

i(x, y) = Vg(x, y)

Page 6: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

Applications : Photometric Stereo

• Take care of shadows

• Albedo can be measured since ||N || = 1

• N(x, y) = 1||g(x,y)||g(x, y)

• Offers a check for correctness

Page 7: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

Applications : Photometric Stereo

Height map recovered by careful integration of normal field

Page 8: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

Applications : Helmholtz Stereopsis

Helmholtz Reciprocity

• Maxwell’s electromagnetic equations are time-reversal invariant

• “If I can see you, you can see me”

• Implies that we can interchange source and receiver

• Increasingly being exploited in vision and graphics

Page 9: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

Applications : Helmholtz Stereopsis

• Approach solves for the shape of an object

• Developed by Zickler et al

• Paper : “Helmholtz Stereopsis: Exploiting Reciprocity forSurface Reconstruction”

• Exploits principle of Helmholtz reciprocity

• Advantage : Greatly relaxes the conventional assumptions onsurfaces

• Drawback : Needs very careful calibration

Page 10: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

Applications : Helmholtz Stereopsis

• “Stereopsis” implies solving for depth (shape)

• Conventional stereo algorithms uses image feature “matching”

• Conventional stereo will be addressed later in course

• Helmholtz Stereopsis also solves for object shape

• Method works under wider range of assumptions thanconventional stereo

Page 11: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

Applications : Helmholtz Stereopsis

• Swap source (light) and receiver (camera)

• Independent of BRDF

• Advantage : Need not compute the BRDF of any point

• Drawback : Need sophisticated system and accurate calibration

Page 12: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

Applications : Helmholtz Stereopsis

Reciprocal Image Pairs

• ol and or denotes positions of camera and source

• p and n denote point and associated surface normal

• Direction vectors v̂l and v̂r

Page 13: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

Applications : Helmholtz Stereopsis

Unit directional vectors

v̂l =ol − p

||ol − p||

v̂r =or − p

||or − p||

Page 14: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

Applications : Helmholtz Stereopsis

Image irradiance at p

il = fr(v̂r, v̂l)n̂.v̂r

||or − p||2

ir = fr(v̂l, v̂r)n̂.v̂l

||ol − p||2

• n̂.v̂ denotes the angle between source and normal

• 1||o−p||2 denotes 1

r2 fall-off of light

• fr denotes the BRDF at point p

Page 15: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

Applications : Helmholtz Stereopsis

Image irradiance at p

il = fr(v̂r, v̂l)n̂.v̂r

||or − p||2

ir = fr(v̂l, v̂r)n̂.v̂l

||ol − p||2

Page 16: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

Applications : Helmholtz Stereopsis

Helmholtz Reciprocity says that

fr(v̂l, v̂r) = fr(v̂r, v̂l)

Page 17: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

Applications : Helmholtz Stereopsis

Eliminate BRDF term

il = fr(v̂r, v̂l)n̂.v̂r

||or − p||2

ir = fr(v̂l, v̂r)n̂.v̂l

||ol − p||2

(il

vl

||ol − p||2− ir

vr

||or − p||2

).n̂ = 0

Page 18: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

Applications : Helmholtz Stereopsis

Solving for depth and normal

We have the relationship(il

vl

||ol − p||2− ir

vr

||or − p||2

).n̂ = 0

• Given depth (d) of the point p we know ol and or

• Can compute p, v̂l and v̂r

Can write above relationship as function of depth d and n

w(d).n̂ = 0

Page 19: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

Applications : Helmholtz Stereopsis

Solving for depth and normal

• We dont know both depth d and normal n

• Let’s take Np reciprocal measurements

• We have pairs of positions

(olj ,orj), j = 1, · · · , Np• Np constraints can be stacked into matrix

W (d) ∈ RNp×3

W (d)n̂ = 0

Page 20: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

Applications : Helmholtz Stereopsis

Solving for depth and normal

• Hypothesise depth value d?

• Ideally W (d?)n̂ = 0

• Ideally W is of rank 2

• n should lie entirely in null-space of W

• Need to deal with noisy measurements

• Use singular value decomposition (SVD) to solve this

Page 21: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

Linear Estimation

• Linear models are

• simple• powerful• easy to interpret

• Spectral representation (eigen decomposition)

• Many efficient solvers available

• Exploit sparsity for large-scale systems

Page 22: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

Am,n =

a1,1 a1,2 · · · a1,na2,1 a2,2 · · · a2,n

......

. . ....

am,1 am,2 · · · am,n

Row Space

Am,n =

a1,1 a1,2 · · · a1,na2,1 a2,2 · · · a2,n

......

. . ....

am,1 am,2 · · · am,n

Column Space

Vector Space Representations

• Ax = λx (column space, image/range space)

• ATx = λx (row space)

• SVD: Unified spectral representation

Page 23: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

Singular Value Decomposition

• Powerful result used extensively in many areas

• Generalises spectral theorem to non-square matrices

• Provides a good interpretation of matrix properties

• Very useful approach to solving linear problems in vision

• Will repeatedly encounter the SVD in many approaches

• Stable algorithms exists, eg. matlab svd()

Page 24: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

Singular Value Decomposition

For an m× n matrix A, there exists a factorisation

A = UΣV ?

• U and V are unitary of size m×m and n× n resp.

• V ? denotes the Hermitian of V

• Unitary matrices are such that UU? = U?U = I

• SVD is a generalisation of “eigendecomposition”

• U and V denote the eigenvectors of AA? and A?A

• Σ is a diagonal matrix containing the singular values of A

• Decomposition such that singular values are ordered

Σ = diag(σ1, σ2, · · · , σk), σ1 ≥ σ2 ≥ · · · ≥ σk

Page 25: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

Low Rank Approximation

A = UΣV T

=∑i

σiuivTi

Eckart-Young-Mirsky Theorem

• Say we want Ak s. t. rank(Ak) = k < rank(A)

• How do we pick Ak ?

• Ak closest to A

• Minimise ||A−Ak||F• Solution: Ak =

∑ki=1 σiuiv

Ti

• Very commonly used approach

• Each uivTi is rank-1

• Like peeling an onion

• A = σ1u1vT1 + (σ2u2v

T2 + (σ3u3v

T3 + · · · ))

Page 26: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

Low Rank Approximation

A = UΣV T

=∑i

σiuivTi

Eckart-Young-Mirsky Theorem

• Say we want Ak s. t. rank(Ak) = k < rank(A)

• How do we pick Ak ?

• Ak closest to A

• Minimise ||A−Ak||F• Solution: Ak =

∑ki=1 σiuiv

Ti

• Very commonly used approach

• Each uivTi is rank-1

• Like peeling an onion

• A = σ1u1vT1 + (σ2u2v

T2 + (σ3u3v

T3 + · · · ))

Page 27: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

Low Rank Approximation

A = UΣV T

=∑i

σiuivTi

Eckart-Young-Mirsky Theorem

• Say we want Ak s. t. rank(Ak) = k < rank(A)

• How do we pick Ak ?

• Ak closest to A

• Minimise ||A−Ak||F• Solution: Ak =

∑ki=1 σiuiv

Ti

• Very commonly used approach

• Each uivTi is rank-1

• Like peeling an onion

• A = σ1u1vT1 + (σ2u2v

T2 + (σ3u3v

T3 + · · · ))

Page 28: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

Low Rank Approximation

A = UΣV T

=∑i

σiuivTi

Eckart-Young-Mirsky Theorem

• Say we want Ak s. t. rank(Ak) = k < rank(A)

• How do we pick Ak ?

• Ak closest to A

• Minimise ||A−Ak||F• Solution: Ak =

∑ki=1 σiuiv

Ti

• Very commonly used approach

• Each uivTi is rank-1

• Like peeling an onion

• A = σ1u1vT1 + (σ2u2v

T2 + (σ3u3v

T3 + · · · ))

Page 29: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

Low Rank Approximation

A = UΣV T

=∑i

σiuivTi

Eckart-Young-Mirsky Theorem

• Say we want Ak s. t. rank(Ak) = k < rank(A)

• How do we pick Ak ?

• Ak closest to A

• Minimise ||A−Ak||F• Solution: Ak =

∑ki=1 σiuiv

Ti

• Very commonly used approach

• Each uivTi is rank-1

• Like peeling an onion

• A = σ1u1vT1 + (σ2u2v

T2 + (σ3u3v

T3 + · · · ))

Page 30: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

Low Rank Approximation

A = UΣV T

=∑i

σiuivTi

Eckart-Young-Mirsky Theorem

• Say we want Ak s. t. rank(Ak) = k < rank(A)

• How do we pick Ak ?

• Ak closest to A

• Minimise ||A−Ak||F• Solution: Ak =

∑ki=1 σiuiv

Ti

• Very commonly used approach

• Each uivTi is rank-1

• Like peeling an onion

• A = σ1u1vT1 + (σ2u2v

T2 + (σ3u3v

T3 + · · · ))

Page 31: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

Algebraic Line Fitting

• yi = mxi + c

• Cost to minimise :∑i(yi −mxi − c)2

• Familiar slope-intercept form

• Lacks geometric invariance

• Can be highly unstable

Page 32: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

• Error measured perp. to fitted line

• Error is geometrically invariant to choice of co-ordinates

• Cost to minimise :∑

i(yi−mxi−c)21+m2

• Easier to consider form : ayi + bxi + c = 0

Page 33: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

Cost :∑i(ayi + bxi + c)2 ⇒

∑i {(yi, xi, 1).(a, b, c)}2

Consider form :y1 x1 1y2 x2 1

· · ·yN xN 1

M

pabc

= 0

• Problem equivalent to Mp = 0

• Boils down to minp ||Mp||2

• Determine null-space using SVD

• Solution is rotationally invariant

Page 34: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

Least Squares Formulations

Ax = b

Ordinary Least Squares

Ax = b + ∆b

arg min x ||Ax− b||2

• Assume error only in rhs b

• x = (ATA)−1AT b

• Familiar pseudo-inverse form

• Biased, low variance

Total Least Squares

(A + ∆A)x = b + ∆b

⇒ [A| − b]

[x1

]= 0

• Error in both lhs and rhs

• Solve using the ‘homogenous’form

• Solution provided by SVD

• Unbiased, high variance

Page 35: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

Applications : Helmholtz Stereopsis

Solve using SVD

• We know that rank(W ) ≥ 2 due to noise

• For point p and depth d : matrix W p(d)

• W has singular values σ1, σ2, σ3

• Measure used for depth, maximise rp(d) = σ2

σ3

• Given depth d?,n̂ is the smallest right singular vector of W (d?)

• We are ignoring some practical details here

Page 36: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

Condition number of a matrix

Vector Norm

• Consider vector norm ||x||• Triangle inequality: ||x + y|| ≤ ||x||+ ||y||• What do these norms mean ?

• `2• `1• `∞• `p(0 < p < 1)

Page 37: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

Condition number of a matrix

Matrix Norm

• Induce a matrix norm for A

• ||A|| = maxx 6=0Axx

• Is ||A + B|| < ||A||+ ||B|| ?

• For some matrix norms ||AB|| < ||A||||B||

Page 38: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

Condition number of a matrix

Condition number

• Condition number κ(A) measures “sensitivity”

• How do quantities change when we perturb measurements ?

• Consider A−1 and Ax = b

• Finite-precision computations

• Unstable solutions for large κ(A)

• κ(A) for singular matrices is ∞• For `2 norm κ(A) = σmax(A)

σmin(A)

• Lesson: Algebraic rank is not sufficient for stable computation

Page 39: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

Applications : Helmholtz Stereopsis

Apparatus for acquiring multiple reciprocal pairs

Page 40: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

Applications : Helmholtz Stereopsis

Page 41: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

Applications : Helmholtz Stereopsis

Page 42: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

Applications : Helmholtz Stereopsis

Page 43: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

Applications : Helmholtz Stereopsis

Page 44: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

Applications : Helmholtz Stereopsis

Page 45: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

Applications : Helmholtz Stereopsis

Page 46: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

Applications : Helmholtz Stereopsis

Page 47: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

Applications : Helmholtz Stereopsis

Page 48: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

Specular Surfaces

• Traditional methods have treated specularities as a problem

• Specularities are much harder to model correctly

• Model a surface as specular + diffuse component

• New methods try to separate out specular and diffuse component

• We shall not study specularities in this course

Page 49: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

Specular Surfaces

Can manipulate specular and diffuse components independently

Page 50: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

Radiometry

• General radiometry is very complex

• Many simplifying assumptions can be made

• Radiometric ideas applied to both

• shape reconstruction• recognition

• Classical approach to shape is shape from shading

• Other recent approaches combine depth and photometricmeasurements

Page 51: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

Applications : Photometric Stereo

Height map recovered by careful integration of normal field

Page 52: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

Applications : Photometric Stereo

• Height map recovered by careful integration of normal field

• Assumes orthographic projection

Page 53: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

Camera Model : Orthographic Projection

Orthographic Projection Model

• Projects object points onto plane along direction of optical axis

• Also known as parallel projection

• Drastic approximation x = X!

• Useful as linear methods are applicable

Page 54: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

3D Reconstruction from Normals

Two approaches

• Discrete integration

• Global solution

Page 55: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

Discrete Integration

Reconstruct Z(x, y) ∈ R3 given gradient field

K(p) : R2 → R2

p = (x, y)

K(p) = grad(Z(x, y))

= (p(x, y), q(x, y)) =

(∂Z

∂x,∂Z

∂y

)

Solve using integration

Integrate

• locally ?

• globally ?

Page 56: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

Map normals to gradient field : (p, q)

curl :∂p

∂y− ∂q

∂x

div :∂p

∂x+∂q

∂y

General solution

minZ

∫ ∫ ((Zx − p)2 + (Zy − q)2

)dxdy

Page 57: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

• Start integration from origin

• Which path should we choose ?

• Under noise, path are not consistent

• Local integration leads to problems

Page 58: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

• Consistent paths

• All loops should integrate tozero

• Vector field is integrable

Requirement

For continuous partial derivativesIf

∂Kx

∂y=∂Ky

∂x

then Z satisfies integrability

Equivalent to∂2Z

∂x∂y=

∂2Z

∂y∂x

Page 59: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

∂2Z

∂x∂y=

∂2Z

∂y∂x Z = F−1(−j uF(p) + vF(q)

u2 + v2

)Integrability

• Noisy gradients do not satisfy requirement

• Solution: Project gradients onto “integrable” basis

• Frankot-Chellappa algorithm (1988)

• We will not study the proof

• Modern interpretations use other compact bases (wavelets)

Page 60: E1 216 COMPUTER VISION · E1 216 COMPUTER VISION LECTURE 04 : APPLICATIONS OF RADIOMETRY Venu Madhav Govindu Department of Electrical Engineering Indian Institute of Science, Bengaluru

Low-level Image Features

Next few classes : after finishing radiometry

• We shall consider the extraction of low-level image features

• Features - “interesting points”, edges, lines, contours, texture

• Background needed : noise, filtering, smoothing, pyramids

• Required background : Chapter 4 Linear Filters of Forsythand Ponce (Second Edition)

• You should read this chapter as it will not be covered in class

• Sec 4.8 Notes is suggested but not required reading