Hyperprior bayesian approach for inverse problems in imaging. - - PowerPoint PPT Presentation

hyperprior bayesian approach for inverse problems in
SMART_READER_LITE
LIVE PREVIEW

Hyperprior bayesian approach for inverse problems in imaging. - - PowerPoint PPT Presentation

Hyperprior bayesian approach for inverse problems in imaging. Application to single shot HDR. Julie Delon with Cecilia Aguerrebere, Andr es Almansa, Yann Gousseau and Pablo Mus e 1 / 32 Teaser : what is High Dynamic Range Imaging (HDR) ?


slide-1
SLIDE 1

Hyperprior bayesian approach for inverse problems in imaging.

Application to single shot HDR.

Julie Delon

with Cecilia Aguerrebere, Andr´ es Almansa, Yann Gousseau and Pablo Mus´ e

1 / 32

slide-2
SLIDE 2

Teaser : what is High Dynamic Range Imaging (HDR) ?

Capture a scene containing a large range of intensity levels...

2 / 32

slide-3
SLIDE 3

Teaser : what is High Dynamic Range Imaging (HDR) ?

... using a standard digital camera. Limited dynamic range of the camera ! loss of details in bright and/or dark areas.

2 / 32

slide-4
SLIDE 4

Teaser : what is High Dynamic Range Imaging (HDR) ?

... using a standard digital camera. Limited dynamic range of the camera ! loss of details in bright and/or dark areas.

2 / 32

slide-5
SLIDE 5

Teaser : what is High Dynamic Range Imaging (HDR) ?

... using a standard digital camera. Limited dynamic range of the camera ! loss of details in bright and/or dark areas.

2 / 32

slide-6
SLIDE 6

Teaser : what is High Dynamic Range Imaging (HDR) ?

... using a standard digital camera. Limited dynamic range of the camera ! loss of details in bright and/or dark areas.

2 / 32

slide-7
SLIDE 7

Teaser : what is High Dynamic Range Imaging (HDR) ?

... using a standard digital camera. Limited dynamic range of the camera ! loss of details in bright and/or dark areas.

2 / 32

slide-8
SLIDE 8

Teaser : what is High Dynamic Range Imaging (HDR) ?

Limited dynamic range of the camera ! loss of details in bright and/or dark areas.

2 / 32

slide-9
SLIDE 9

Teaser : what is High Dynamic Range Imaging (HDR) ?

Limited dynamic range of the camera ! loss of details in bright and/or dark areas.

2 / 32

slide-10
SLIDE 10

Motivation : High Dynamic Range Imaging (HDR)

Usual approach for HDR image generation : fusion of mutiple exposures. HDR generation Irradiance Map

(number of photons reaching each pixel per unit time)

3 / 32

slide-11
SLIDE 11

Challenges of HDR imaging in dynamic scenes

noise moving

  • bjects

camera motion

4 / 32

slide-12
SLIDE 12

Challenges of HDR imaging in dynamic scenes

ghosting effect camera + object motion

5 / 32

slide-13
SLIDE 13

Would it be possible to create a HDR image from a single shot ?

6 / 32

slide-14
SLIDE 14

Would it be possible to create a HDR image from a single shot ? First, let’s focus on a very generic inverse problem...

6 / 32

slide-15
SLIDE 15

A generic inverse problem

Original image

7 / 32

slide-16
SLIDE 16

A generic inverse problem

Noise

7 / 32

slide-17
SLIDE 17

A generic inverse problem

Missing pixels

7 / 32

slide-18
SLIDE 18

Inverse Problem

Degradation model

˜ u = Au + n u reference image A is a diagonal operator Additive noise n may depend on u:

Exemple RAW data (shot noise and readout noise) n(x) ∼ N(0, α(x)u(x) + β(x))

8 / 32

slide-19
SLIDE 19

Inverse Problem

Degradation model

˜ u = Au + n

Notation for patches

Zi = pi(˜ u) (degraded patch of size d = f ⇥ f centered at i) Ci = pi(u) (unknown reference patch) Ni = pi(n) (additive noise patch) Di restriction of A to pi(u)

Degradation model for a patch centered at pixel i

Zi = DiCi + Ni

8 / 32

slide-20
SLIDE 20

Patch degradation Model +

=

x

Observed patch

9 / 32

slide-21
SLIDE 21

Patch degradation Model +

=

x

Observed patch

Assumptions : D is known N ⇠ N(0, ΣN), eventually depends on C but Cov(N, C) = 0

9 / 32

slide-22
SLIDE 22

Patch degradation Model +

=

x

Patch we seek to estimate

Gaussian prior for patches

Observed patch

Assumptions : D is known N ⇠ N(0, ΣN), eventually depends on C but Cov(N, C) = 0 C ⇠ N(µ, Σ) with µ and Σ unknown

9 / 32

slide-23
SLIDE 23

How to set Gaussian prior parameters µ and Σ ?

1

Classical choice : MLE [NL-Bayes - Lebrun et al. 2013] Set of similar patches Z1, . . . , ZM, such that all the (unknown) Ci follow the same law N(µ, Σ). b µ = 1 M

M

X

i=1

Zi and b Σ = 1 M 1

M

X

i=1

[Zi b µ][Zi b µ]T

10 / 32

slide-24
SLIDE 24

How to set Gaussian prior parameters µ and Σ ?

1

Classical choice : MLE [NL-Bayes - Lebrun et al. 2013] Set of similar patches Z1, . . . , ZM, such that all the (unknown) Ci follow the same law N(µ, Σ). b µ = 1 M

M

X

i=1

Zi and b Σ = 1 M 1

M

X

i=1

[Zi b µ][Zi b µ]T

Not reliable when pixels are missing !

10 / 32

slide-25
SLIDE 25

How to set Gaussian prior parameters µ and Σ ?

1

Classical choice : MLE [NL-Bayes - Lebrun et al. 2013] Set of similar patches Z1, . . . , ZM, such that all the (unknown) Ci follow the same law N(µ, Σ). b µ = 1 M

M

X

i=1

Zi and b Σ = 1 M 1

M

X

i=1

[Zi b µ][Zi b µ]T

Not reliable when pixels are missing !

2

Gaussian Mixture Model prior on patches [EPLL - Zoran and Weiss 2011 ; PLE - Yu et al. 2012]

10 / 32

slide-26
SLIDE 26

How to set Gaussian prior parameters µ and Σ ?

MAP with an hyperprior on (µ, Σ) argmax

{Ci},µ,Σ

p({Ci}i, µ, Σ | {Zi}i) = argmax

{Ci},µ,Σ

p({Zi} | {Ci}, µ, Σ) . p({Ci} | µ, Σ) . p(µ, Σ). Rappel Zi | Ci, µi, Σi ⇠ N(DiCi, ΣNi) Ci | µi, Σi ⇠ N(µ, Σ) (µ, Σ) ? Inclusion of hyperprior information compensates for missing pixels.

11 / 32

slide-27
SLIDE 27

Hyperprior on (µ, Σ)

Conjugate prior for a multivariate normal distribution Normal prior on the mean (conditionnal on the covariance) µ | Σ ⇠ N(µ0, Σ/κ) / |Σ|− 1

2 exp

⇣ κ 2 (µ µ0)TΣ−1(µ µ0) ⌘ inverse Wishart prior on the covariance matrix Σ ⇠ IW(νΣ0, ν) / |Σ|− ν+d+1

2

exp ✓ 1 2trace[νΣ0Σ−1] ◆

12 / 32

slide-28
SLIDE 28

Hyperprior on (µ, Λ) with Λ = Σ1 (precision matrix)

Conjugate prior for a multivariate normal distribution Normal prior on the mean (conditionnal on the covariance) µ | Λ ⇠ N(µ0, Λ−1/κ) / |Λ|

1 2 exp

⇣ κ 2 (µ µ0)TΛ(µ µ0) ⌘ Wishart prior on the inverse covariance matrix Λ ⇠ W((νΣ0)−1, ν) / |Λ|

ν−d−1 2

exp ✓ 1 2trace[νΣ0Λ] ◆

13 / 32

slide-29
SLIDE 29

Minimization with respect to {Ci}i

{Zi} set of similar patches; µ, Λ fixed. argmax

{Ci}

p({Zi} | {Ci}) . p({Ci} | µ, Λ) . p(µ, Λ) = argmax

{Ci}

ΠM

i=1 (p(Zi | Ci) . p(Ci | µ, Λ))

= argmax

{Ci}

ΠM

i=1

⇣ g0,ΣNi (Zi DiCi) . gµ,Λ−1(Ci) ⌘ .

Solution given by Wiener estimator for each i separately

b Ci = Λ−1DT

i

| {z }

E(CiZ T

i )

(DiΛ−1DT

i + ΣNi

| {z }

E(ZiZ T

i )

)−1 | {z }

Wi

(Zi Diµ) + µ

14 / 32

slide-30
SLIDE 30

Minimization with respect to µ, Λ

{Ci}i fixed. argmax

µ,Λ

p({Zi} | {Ci}, µ, Λ) | {z }

HYP : independent of µ,Λ

. p({Ci} | µ, Λ) . p(µ, Λ) ' argmax

µ,Λ

p({Ci} | µ, Λ) . p(µ, Λ) = argmax

µ,Λ

ΠM

i=1 gµ,Λ−1(Ci) gµ0,Λ−1/κ(µ) wΛ0/ν,ν(Λ).

Explicit solution

( b µ = MC+κµ0

M+κ

b Λ−1 = νΣ0+κ(b

µ−µ0)(b µ−µ0)T +PM

i=1( b

Ci−b µ)( b Ci−b µ)T ν+M−d

15 / 32

slide-31
SLIDE 31

Loop in (µ, Λ)

In the previous formula, ˆ Ci, ˆ µ and ˆ Λ depend on each other. Replacing ˆ Ci by its expression in (µ, Λ) and reinjecting this in the formula of (ˆ µ, ˆ Λ), we get b µ = @κId +

M

X

j=1

WjDj 1 A

−1 0

@

M

X

j=1

WjZj + κµ0 1 A (ν + M d) b Λ−1 =

M

X

j=1

(Wj(Zj Djµ))(Wj(Zj Djµ))T + κ(µ µ0)(µ µ0)T + νΣ0 with Wj = Λ−1DT

j (DjΛ−1DT j + ΣNj)−1.

16 / 32

slide-32
SLIDE 32

Algorithm

Initialization : compute Oracle image Coracle For k = 1 : maxit For each Patch Z

1

Find patches similar to Z in Coracle

2

Compute µ0 and Σ0 from this set of similar patches in Coracle

3

Compute first b µ, b Σ with a small loop and then ˆ C.

Restore image from restored patches and update Coracle = restored image.

17 / 32

slide-33
SLIDE 33

Initialization

DCT

for isotropic patterns

+

(K-1) edges with different orientations

K predefined models :

From PLE [Yu et al., 2012]:

18 / 32

slide-34
SLIDE 34

Results

Synthetic data, 70% missing pixels.

19 / 32

slide-35
SLIDE 35

Results

Synthetic data, 70% missing pixels.

19 / 32

slide-36
SLIDE 36

Results

Synthetic data, 70% missing pixels, gaussian noise σ = 10.

19 / 32

slide-37
SLIDE 37

Results

Synthetic data, 70% missing pixels, gaussian noise σ = 10.

19 / 32

slide-38
SLIDE 38

Results

Zoom on Real data. Left to right : Input low-resolution image, HBE, PLE, bicubic.

19 / 32

slide-39
SLIDE 39

Now, how can we do HDR imaging from a single shot ?

20 / 32

slide-40
SLIDE 40

Spatially Varying pixel Exposures (SVE) [Nayar and Mitsunaga, 2000]

21 / 32

slide-41
SLIDE 41

1 image = N exposures

21 / 32

slide-42
SLIDE 42

SVE Single-image HDR

X No need for image alignment. X No need for motion detection. X No ghosting problems. X No large saturated regions to fill. ⇥ Resolution loss : unknown pixels to be restored (over and under exposed pixels). ⇥ Noise. ⇥ Need to modify the standard camera.

I Alternative without camera modification [Hirakawa and Simon, 2011]. 22 / 32

slide-43
SLIDE 43

SVE: Regular or Random?

Random pattern to avoid aliasing [ Sch¨

  • berl et al., 2012]

23 / 32

slide-44
SLIDE 44

Inverse Problem for HDR

Degradation model for a patch centered at pixel i

Zi = DiCi + Ni Di is a diagonal operator

I Dii = 0

⇒ over- or under-exposed pixel (ignored)

I Dii = 1

⇒ well-exposed pixel (kept)

Ci irradiance at pixel i (reference image) Noise model for RAW data (shot noise and readout noise) Ni ⇠ N(0, ΣNi) with diagonal covariance matrix ΣNi such that (ΣNi)k = αkCk + βk, with α and β known.

24 / 32

slide-45
SLIDE 45

Results HDR - Synthetic data

25 / 32

slide-46
SLIDE 46

Results HDR - Synthetic data

Ground-truth HPNLB PLEV Sch¨

  • berl

Nayar-Mitsun Input Differences to ground-truth PSNR: 33.1dB 29.7dB 30.4dB 29.4dB

26 / 32

slide-47
SLIDE 47

Results HDR - Synthetic data

Ground-truth HPNLB PLEV Sch¨

  • berl

Nayar-Mitsun Input Differences to ground-truth PSNR: 35.1dB 34.0dB 30.0dB 28.5dB

27 / 32

slide-48
SLIDE 48

Real data: experimental protocol

28 / 32

slide-49
SLIDE 49

Real data: experimental protocol

28 / 32

slide-50
SLIDE 50

Real data: experimental protocol

28 / 32

slide-51
SLIDE 51

Real data: experimental protocol

28 / 32

slide-52
SLIDE 52

Real data: experimental protocol

28 / 32

slide-53
SLIDE 53

Results HDR - Real data

29 / 32

slide-54
SLIDE 54

Results HDR - Real data

29 / 32

slide-55
SLIDE 55

Results HDR - Real data

29 / 32

slide-56
SLIDE 56

Results HDR - Real data

HPNLB PLEV Mask

30 / 32

slide-57
SLIDE 57

Results real data

31 / 32

slide-58
SLIDE 58

Results real data

31 / 32

slide-59
SLIDE 59

Results real data

31 / 32

slide-60
SLIDE 60

Results real data

HPNLB PLEV Mask

32 / 32