23
Approaches for Retinex and Approaches for Retinex and Their Relations Their Relations Yu Du Yu Du March 14, 2002 March 14, 2002

Approaches for Retinex and Their Relations Yu Du March 14, 2002

Embed Size (px)

Citation preview

Page 1: Approaches for Retinex and Their Relations Yu Du March 14, 2002

Approaches for Retinex and Their Approaches for Retinex and Their RelationsRelations

Yu DuYu Du

March 14, 2002March 14, 2002

Page 2: Approaches for Retinex and Their Relations Yu Du March 14, 2002

2

Presentation OutlinePresentation Outline

Introductions to retinexIntroductions to retinex

Approaches for retinexApproaches for retinex

The variational frameworkThe variational framework

Relation of these approachesRelation of these approaches

ConclusionsConclusions

Page 3: Approaches for Retinex and Their Relations Yu Du March 14, 2002

3

What Is RetinexWhat Is Retinex

Lightness and retinex theoryLightness and retinex theoryE. H. Land 1971E. H. Land 1971

Visual system of humanVisual system of humanRetinaRetina: the sensory membrane lining the eye that receives the : the sensory membrane lining the eye that receives the

image formed by the lens (Webster)image formed by the lens (Webster)

Reflectance and illuminationReflectance and illumination

Edges and independent color senstionEdges and independent color senstion

Page 4: Approaches for Retinex and Their Relations Yu Du March 14, 2002

4

Model of retinex (1)Model of retinex (1)

),(),(),( yxLyxRyxS

The given imageThe given image

The reflectance partThe reflectance part

The illumination partThe illumination part

Page 5: Approaches for Retinex and Their Relations Yu Du March 14, 2002

5

Model of retinex (2)Model of retinex (2)

),(),(),( yxlyxryxs

Input ImageInput Image LogLog

Estimate the Estimate the

IlluminationIllumination

ExpExp++S s

r̂ R̂

Page 6: Approaches for Retinex and Their Relations Yu Du March 14, 2002

6

Three Types of Previous ApproachesThree Types of Previous Approaches

Random walk algorithmsRandom walk algorithmsE. H. Land (1971)E. H. Land (1971)

Homomorphic filteringHomomorphic filteringE. H. Land (1986), D. J. Jobson (1997)E. H. Land (1986), D. J. Jobson (1997)

Solving Poisson equationSolving Poisson equationB. K. P. Horn (1974)B. K. P. Horn (1974)

Page 7: Approaches for Retinex and Their Relations Yu Du March 14, 2002

7

Random Walk Algorithms (1)Random Walk Algorithms (1)

First retinex algorithmFirst retinex algorithm

A series of random pathsA series of random pathsStarting pixel Starting pixel

Randomly select a neighbor pixel as next pixel on pathRandomly select a neighbor pixel as next pixel on path

Accumulator and counterAccumulator and counter

1x

))(log())(log()()( 1xfxfxAxA iii 1)()( ii xNxN

Page 8: Approaches for Retinex and Their Relations Yu Du March 14, 2002

8

Random Walk Algorithms (2)Random Walk Algorithms (2)

Adequate number of random pathsAdequate number of random pathsCover the whole imageCover the whole image

Small varianceSmall variance

Length of pathsLength of paths>200 for 10x10 image (D. H. Brainard)>200 for 10x10 image (D. H. Brainard)

Page 9: Approaches for Retinex and Their Relations Yu Du March 14, 2002

9

Special Smoothness of Random WalkSpecial Smoothness of Random Walk

The value in the accumulatorThe value in the accumulator

The illumination partThe illumination part

pixel passed

thatpaths

))(log())(log()(

x

ixfxfxA

NNxfxfxG

xGxl

)()()(

))(log()(

1

Page 10: Approaches for Retinex and Their Relations Yu Du March 14, 2002

10

Homomorphic FilteringHomomorphic Filtering

Assume illumination part to be smoothAssume illumination part to be smooth

Apply low pass filterApply low pass filter

LD

vuDc

LH evuH

)1)((),(20

2 ),(

Page 11: Approaches for Retinex and Their Relations Yu Du March 14, 2002

11

Poisson Equation Solution (1)Poisson Equation Solution (1)

Derivative of illumination part close to zeroDerivative of illumination part close to zero

Reflectance part to be piece-wise constantReflectance part to be piece-wise constant

Get the illumination partGet the illumination partTake the derivative of the imageTake the derivative of the image

Clip out the high derivative peaksClip out the high derivative peaks

Page 12: Approaches for Retinex and Their Relations Yu Du March 14, 2002

12

Poisson Equation Solution (2)Poisson Equation Solution (2)

Solve Poisson equationSolve Poisson equation

Iterative methodIterative method

Apply low-pass filter (invert Laplacian operator)Apply low-pass filter (invert Laplacian operator)

other wise0

)(Tss

s

)(ˆ sl

Page 13: Approaches for Retinex and Their Relations Yu Du March 14, 2002

13

Comments on Above ApproachesComments on Above Approaches

Random walk algorithmRandom walk algorithm

Too slowToo slow

Homomorphic filteringHomomorphic filtering

Low-pass filtering first or Low-pass filtering first or loglog first? first?

More work needed to be done on Poisson equation More work needed to be done on Poisson equation

solvingsolving

Page 14: Approaches for Retinex and Their Relations Yu Du March 14, 2002

14

Variational FrameworkVariational Framework

Presented by R. Kimmel etc.Presented by R. Kimmel etc.

From assumptions to penalty functionFrom assumptions to penalty function

From penalty function to algorithmFrom penalty function to algorithm

Page 15: Approaches for Retinex and Their Relations Yu Du March 14, 2002

15

Assumptions On Illumination ImageAssumptions On Illumination Image

Spatial smoothness of illuminationSpatial smoothness of illumination

Reflectance is not pure whiteReflectance is not pure white

Illumination close to intensity imageIllumination close to intensity image

Spatial smoothness of reflectanceSpatial smoothness of reflectance

Continues smoothly beyond boundariesContinues smoothly beyond boundaries

Page 16: Approaches for Retinex and Their Relations Yu Du March 14, 2002

16

Penalty Function and RestrictionsPenalty Function and Restrictions

Goal to minimize:Goal to minimize:

Subject to:Subject to:

And onAnd on

dxdyslslllF ))()()(222

sl

0, nl

Page 17: Approaches for Retinex and Their Relations Yu Du March 14, 2002

17

Solve the Penalty Function (1)Solve the Penalty Function (1)

Euler-Lagrange equationsEuler-Lagrange equations

And And

)()(0)(

slslll

lF

sl

Page 18: Approaches for Retinex and Their Relations Yu Du March 14, 2002

18

Solve the Penalty Function (2)Solve the Penalty Function (2)

Projected normalized steepest descent (PNSD)Projected normalized steepest descent (PNSD)

Iteratively to get Iteratively to get illumination partillumination part

},min{ 1 sGll NSDjj

))(( 11 sllG jj

))1((22

2

GG

GNSD

Page 19: Approaches for Retinex and Their Relations Yu Du March 14, 2002

19

Multi-resolutionMulti-resolution

Make PNSD algorithm converges fasterMake PNSD algorithm converges faster

Illumination part is smoothIllumination part is smooth

Coarse resolution image firstCoarse resolution image first

Upscale coarse illumination as initial of finer resolution Upscale coarse illumination as initial of finer resolution

layerlayer

Not multi-scale techniqueNot multi-scale technique

Page 20: Approaches for Retinex and Their Relations Yu Du March 14, 2002

20

Relationship of Different Approaches (1)Relationship of Different Approaches (1)

Random walk and Homomorphic filteringRandom walk and Homomorphic filtering

R. Kimmel’s words on Homomorphic filteringR. Kimmel’s words on Homomorphic filtering

and remove constraint and remove constraint

0sl

Page 21: Approaches for Retinex and Their Relations Yu Du March 14, 2002

21

Relationship of Different Approaches (2)Relationship of Different Approaches (2)

Apply appropriate scaling on images, Apply appropriate scaling on images,

Homomorphic filtering satisfies constrainHomomorphic filtering satisfies constrain

and and

Poisson equation approach:Poisson equation approach:

sl 0

)(),( syx

Page 22: Approaches for Retinex and Their Relations Yu Du March 14, 2002

22

ConclusionsConclusions

Retinex is trying to simulate human vision processRetinex is trying to simulate human vision process

Different approaches are from same assumptionsDifferent approaches are from same assumptions

Implementation details are important for resultsImplementation details are important for results

Page 23: Approaches for Retinex and Their Relations Yu Du March 14, 2002

Thank YouThank You

March 14, 2002March 14, 2002