Top Banner
Basic Steps 1. Compute the x and y image derivatives 2. Classify each derivative as being caused by either shading or a reflectance change 3. Set derivatives with the wrong label to zero. 4. Recover the intrinsic images by finding the least-squares solution of the derivatives. riginal x derivative image Classify each derivative (White is reflectance)
24

Basic Steps 1.Compute the x and y image derivatives 2.Classify each derivative as being caused by either shading or a reflectance change 3.Set derivatives.

Mar 26, 2015

Download

Documents

Sierra Freeman
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Basic Steps 1.Compute the x and y image derivatives 2.Classify each derivative as being caused by either shading or a reflectance change 3.Set derivatives.

Basic Steps1. Compute the x and y image derivatives2. Classify each derivative as being caused by

either shading or a reflectance change3. Set derivatives with the wrong label to zero. 4. Recover the intrinsic images by finding the least-

squares solution of the derivatives.

Original x derivative image Classify each derivative(White is reflectance)

Page 2: Basic Steps 1.Compute the x and y image derivatives 2.Classify each derivative as being caused by either shading or a reflectance change 3.Set derivatives.

Learning the Classifiers• Combine multiple classifiers into a strong classifier using

AdaBoost (Freund and Schapire)• Choose weak classifiers greedily similar to (Tieu and Viola

2000)• Train on synthetic images• Assume the light direction is from the right

Shading Training Set Reflectance Change Training Set

Page 3: Basic Steps 1.Compute the x and y image derivatives 2.Classify each derivative as being caused by either shading or a reflectance change 3.Set derivatives.

Using Both Color and Gray-Scale Information

Results withoutconsidering gray-scale

Page 4: Basic Steps 1.Compute the x and y image derivatives 2.Classify each derivative as being caused by either shading or a reflectance change 3.Set derivatives.

Some Areas of the Image Are Locally Ambiguous

Input

Shading Reflectance

Is the change here better explained as

or ?

Page 5: Basic Steps 1.Compute the x and y image derivatives 2.Classify each derivative as being caused by either shading or a reflectance change 3.Set derivatives.

Propagating Information• Can disambiguate areas by propagating

information from reliable areas of the image into ambiguous areas of the image

Page 6: Basic Steps 1.Compute the x and y image derivatives 2.Classify each derivative as being caused by either shading or a reflectance change 3.Set derivatives.

• Consider relationship between neighboring derivatives

• Use Generalized Belief Propagation to infer labels

Propagating Information

Page 7: Basic Steps 1.Compute the x and y image derivatives 2.Classify each derivative as being caused by either shading or a reflectance change 3.Set derivatives.

Setting Compatibilities

• Set compatibilities according to image contours– All derivatives along a

contour should have the same label

• Derivatives along an image contour strongly influence each other 0.5 1.0

1

1),( jxx

i

β=

Page 8: Basic Steps 1.Compute the x and y image derivatives 2.Classify each derivative as being caused by either shading or a reflectance change 3.Set derivatives.

Improvements Using Propagation

Input Image Reflectance ImageWith Propagation

Reflectance ImageWithout Propagation

Page 9: Basic Steps 1.Compute the x and y image derivatives 2.Classify each derivative as being caused by either shading or a reflectance change 3.Set derivatives.
Page 10: Basic Steps 1.Compute the x and y image derivatives 2.Classify each derivative as being caused by either shading or a reflectance change 3.Set derivatives.

(More Results)

Input Image Shading Image Reflectance Image

Page 11: Basic Steps 1.Compute the x and y image derivatives 2.Classify each derivative as being caused by either shading or a reflectance change 3.Set derivatives.
Page 12: Basic Steps 1.Compute the x and y image derivatives 2.Classify each derivative as being caused by either shading or a reflectance change 3.Set derivatives.
Page 13: Basic Steps 1.Compute the x and y image derivatives 2.Classify each derivative as being caused by either shading or a reflectance change 3.Set derivatives.

Summary

13

Belief propagation is a feasible way to do inference in some Markov Random Fields. We showed applications of this approach to a number of low-level vision problems, including super-resolution, motion, and shading/reflectance discrimination.

next talk: presentations/bengaluruDeblur.ppt or keynote:presentations/motioninvVenice.key

Page 14: Basic Steps 1.Compute the x and y image derivatives 2.Classify each derivative as being caused by either shading or a reflectance change 3.Set derivatives.

14

Inference in Markov Random Fields

Gibbs sampling, simulated annealingIterated conditional modes (ICM)Belief propagation

Application examples:super-resolutionmotion analysisshading/reflectance separation

Graph cutsVariational methods

Page 15: Basic Steps 1.Compute the x and y image derivatives 2.Classify each derivative as being caused by either shading or a reflectance change 3.Set derivatives.

15

Gibbs Sampling and Simulated Annealing

• Gibbs sampling: – A way to generate random samples from a (potentially very

complicated) probability distribution.– Fix all dimensions except one. Draw from the resulting 1-d

conditional distribution. Repeat for all dimensions, and repeat many times

• Simulated annealing:– A schedule for modifying the probability distribution so that, at

“zero temperature”, you draw samples only from the MAP solution.

Reference: Geman and Geman, IEEE PAMI 1984.

Page 16: Basic Steps 1.Compute the x and y image derivatives 2.Classify each derivative as being caused by either shading or a reflectance change 3.Set derivatives.

16

Sampling from a 1-d function

1. Discretize the density function

2. Compute distribution function from density function

)(kf

)(kF

)(xf

)(kf

3. Sampling

draw ~ U(0,1);

for k = 1 to n

if

break;

;

)(kF

kxx 0

Page 17: Basic Steps 1.Compute the x and y image derivatives 2.Classify each derivative as being caused by either shading or a reflectance change 3.Set derivatives.

17

Gibbs Sampling

x1

x2

),,,|(~ )()(3

)(21

)1(1

tK

ttt xxxxx

),,,|(~ )()(3

)1(12

)1(2

tK

ttt xxxxπx

),,|(~ )1(1

)1(1

)1(

tK

tK

tK xxxx

Slide by Ce Liu

Page 18: Basic Steps 1.Compute the x and y image derivatives 2.Classify each derivative as being caused by either shading or a reflectance change 3.Set derivatives.

18

Gibbs sampling and simulated annealing

Simulated annealing as you gradually lower the “temperature” of the probability distribution ultimately giving zero probability to all but the MAP estimate.

What’s good about it: finds global MAP solution.

What’s bad about it: takes forever. Gibbs sampling is in the inner loop…

Page 19: Basic Steps 1.Compute the x and y image derivatives 2.Classify each derivative as being caused by either shading or a reflectance change 3.Set derivatives.

19

Gibbs sampling and simulated annealing

So you can find the mean value (MMSE estimate) of a variable by doing Gibbs sampling and averaging over the values that come out of your sampler.

You can find the MAP value of a variable by doing Gibbs sampling and gradually lowering the temperature parameter to zero.

Page 20: Basic Steps 1.Compute the x and y image derivatives 2.Classify each derivative as being caused by either shading or a reflectance change 3.Set derivatives.

20

Inference in Markov Random Fields

Gibbs sampling, simulated annealingIterated conditional modes (ICM)Belief propagation

Application examples:super-resolutionmotion analysisshading/reflectance separation

Graph cutsVariational methods

Page 21: Basic Steps 1.Compute the x and y image derivatives 2.Classify each derivative as being caused by either shading or a reflectance change 3.Set derivatives.

21

Iterated conditional modes

• For each node:– Condition on all the neighbors– Find the mode– Repeat.

• Compare with Gibbs sampling…

• Very small region over which it’s a local maximum

Described in: Winkler, 1995. Introduced by Besag in 1986.

Page 22: Basic Steps 1.Compute the x and y image derivatives 2.Classify each derivative as being caused by either shading or a reflectance change 3.Set derivatives.

22

Winkler, 1995

Page 23: Basic Steps 1.Compute the x and y image derivatives 2.Classify each derivative as being caused by either shading or a reflectance change 3.Set derivatives.

23

Region marginal probabilities

)()(),( ),(

)()( )(

\)(\)(

)(

ijNkj

kj

jiNki

kijijiij

iNki

kiiii

xMxMxxkxxb

xMxkxb

i

ji

Page 24: Basic Steps 1.Compute the x and y image derivatives 2.Classify each derivative as being caused by either shading or a reflectance change 3.Set derivatives.

24

Belief propagation equationsBelief propagation equations come from the

marginalization constraints.

jii

jii =

ijNk

jkjji

xi

ji xMxxxM

j \)(ij )(),( )(