Title: Shadow removal algorithms
1Shadow removal algorithms
- Shadow removal seminar
- Pavel Knur
2Deriving intrinsic images from image sequences
3History
- intrinsic images by Barrow and Tenenbaum 1978
4Constraints
- Fixed viewpoint
- Works only for static objects
- Cast shadows
5Classic ill-posed problem
- Denote
- the input image
- the reflectance image
- the illumination image
- Number of Unknowns is twice the number of
equations.
6The problem
- Given a sequence of T images
- in which reflectance is constant over
- the time and only the illumination
- changes can we solve for a single
- reflectance image and T illumination
- images
- Still completely ill-posed at every pixel there
are T equations and T1 unknowns.
7Maximum-likelihood estimation
8Assumptions
- When derivative filters are applied to natural
images the filter outputs tend to be sparse.
9Laplacian distribution
- Can be well fit by laplacian distribution
10Claim 1
- Denote
- N filters
- Filter outputs
- Filtered reflectance image
- ML estimation of filtered reflectance image
- is given by
11Estimated reflectance function
- Recover ML estimation of r
-
- is reversed filter of
12ML estimation algorithm
13ML estimation algorithm cont.
14Claim 2
- What if does not have exactly a
Laplasian distribution - Let
- Then estimated filtered reflectance are within
with probability at least
15Claim 2 - proof
- If more than 50 of the samples of
- are within of some value then by definition
of median the median must be within of that
value.
16Example 1
- Einstein image is translated diagonally
- 4 pixels per frame
17Example 2
- 64 images with variable lighting from Yale Face
Database
18Illumination Normalization with Time-Dependent
Intrinsic Images for Video Surveillance
- Y.MatsushitaK.NishitoK.Ikeuchi
- Oct. 2004
19Illumination Normalization algorithm
- Preprocessing stage for robust video
surveillance. - Causes
- Illumination conditions
- Weather conditions
- Large buildings and trees
- Goal
- To normalize the input image sequence in terms
of incident lighting.
20Constraints
- Fixed viewpoint
- Works only for static objects
- Cast shadows
21Background images
Input images
- Remove moving objects from the input image
sequence
Off-line
Background images
22Estimation of Intrinsic Images
Input images
- Denote
- input image
- time-varying reflectance image
- time-varying illumination image
- reflectance image estimated by ML
- illumination image estimated by ML
- Filters
- Log domain
Off-line
Background images
Estimation of Intrinsic Images
23Estimation of Intrinsic Images cont.
Input images
-
- In Weisss original work
- The goal is to find estimation of and
Off-line
Background images
Estimation of Intrinsic Images
24Estimation of Intrinsic Images cont.
Input images
- Basic idea
- Estimate time-varying reflectance components by
canceling the scene texture from initial
illumination images - Define
Off-line
Background images
Estimation of Intrinsic Images
25Estimation of Intrinsic Images cont.
Input images
- Finally
- Where
- is reversed filter of
-
Off-line
Background images
Estimation of Intrinsic Images
26Shadow Removal
Input images
- Denote
- - background image
- - illuminance-invariant image
Off-line
Background images
Estimation of Intrinsic Images
27Illumination Eigenspace
Input images
- PCA Principle component analysis
- Basic components -
Off-line
Background images
Estimation of Intrinsic Images
Illumination Eigenspace
28Illumination Eigenspace cont.
Input images
- Average is
- P is MxN matrix where
- N number of pixels in illumination image
- M number of illumination images
- Covariance matrix Q of P is
Off-line
Background images
Estimation of Intrinsic Images
Illumination Eigenspace
29Direct Estimation of Illumination Images
Input images
- Pseudoillumination image
- Direct Estimation is
- Where
- F is a projection function onto the js
eigenvector - -
Off-line
Background images
Estimation of Intrinsic Images
Illumination Eigenspace
30Direct Estimation of Illumination Images
Input images
Off-line
Background images
Estimation of Intrinsic Images
Illumination Eigenspace
31Shadow interpolation
Input images
- probability density function
- cumulative probability function
- shadowed area
- lit area
- mean
- optimum threshold value
Off-line
Background images
Estimation of Intrinsic Images
Illumination Eigenspace
Shadow Interpolation
32The whole algorithm
Input images
Off-line
Background images
Estimation of Intrinsic Images
Illumination Eigenspace
Shadow Interpolation
Illumination Images
/
Normalization
33Example
34 35References
- 1 Y.WeissDeriving Intrinsic Images from Image
Sequences Proc. Ninth IEEE Intl Conf. Computer
Vision pp. 68-75 July 2001. - 2 Y.MatsushitaK.NishitoK.IkeuchiIllumination
Normalization with Time-Dependent Intrinsic
Images for Video SurveillanceOct. 2004.