













Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The concepts of lighting and histogram equalization in image processing. It covers various methods for normalizing images, computing histograms, and applying histogram equalization. The document also discusses the representation of light and its impact on image processing.
Typology: Study notes
1 / 21
This page cannot be seen from the preview
Don't miss anything!














Image Normalization
Global Histogram Equalization. Make two images have same histogram. Or, pick a standard histogram, and make adjust each image to have that histogram. Apply monotonic transform to intensities. Additive and multiplicative normalization. Subtract mean intensity, divide by total magnitude of result. Local Normalized cross-correlation: Normalize windows and thencompare with SSD. Normalize intensity and first derivatives -> direction of gradient. Normalize filter outputs: eg., Gabor Jets.
How do we represent light? (2)
Environment map: l (θ,φ)
Sky
`
Lambertian + Point Source
Surface normal
Light θθθθ
l ˆ ˆ issurface normal
is
isradiance
max( 0 , ( ˆ)
isintensityoflight
isdirectionoflight
n
albedo
i
i l n
l
l l l l
Lambertian, point sources, no shadows. (Shashua, Moses)
Basis
P=(x,y) means P = x(1,0)+y(0,1) Similarly:
= +
cos( 2 ) sin( 2 )
( ) cos( ) sin( )
21 22
11 12 θ θ
θ θ θ
a a
f a a
Note, I’m showing non-standard basis, these are from basis using complex functions.
Example
cos(θ ) cosθ sin θ
, , such that :
1 2
1 2
c a a
c a a
∀ ∃
Orthonormal Basis
||(1,0)||=||(0,1)||= (1,0).(0,1)= Similarly we use normal basis elements eg:
While, eg:
=
π θ θ θ θ
θ 2 0 cos( ) cos^2 cos( )
cos( ) d
=
π θ θ θ
2 0 cos sin d 0
2D Example
Convolution
f ( x ) = g ∗ h = g ( x − x 0 ) h ( x 0 ) dx 0
Convolution Theorem
f g T F * G
− 1 ⊗ =
Examples
(cos. 2 cos 2. 1 cos 3 )?
cos?
cos cos 2?
cos cos?
⊗ =
⊗ =
⊗ =
f
f
θ θ θ
θ
θ θ
θ θ
Shadows
(^00 1 2 )
1
(^00 1 2 )
1
2
Lighting to Reflectance: Intuition
Harmonic Transform of Kernel
k ( ) θ max(cos θ , 0) (^) n 0 k hn n 0
= = (^)
2 1 (^ 2)!^ (2^ 1)
1 3 ( 1) 2, even 2 ( 1)!( 1)! 0 2, od
2
2
d
2
0
n n n
n n (^) n n n
k
n
n
n
π
π
π
= (^)
=
≥
=
0. 0.
0. 0.037 (^) 0.014 0. 0
0.
1
1.
0 1 2 3 4 5 6 7 8
Amplitudes of Kernel
A n
Energy of Lambertian Kernel in low order harmonics
Accumulated Energy
37.
87. 99.2 99.81 99.93 99.
0
20
40
60
80
100
120
0 1 2 4 6 8
Reflectance Functions Near
Low-dimensional Linear Subspace
0
( )
n nm nm nm n m n
r k l K L h = =−
= ∗ = (^)
= =−
≈
2
0
( ) n
n
m n
Knm Lnm hnm
Forming Harmonic Images b (^) nm (p)= rnm (X,Y,Z)
λ λZ λX λY
2 (Z -X -Y )^2 2 2 (X -Y )^2 2 λXY λXZ λYZ
Compare this to 3D Subspace
λZ λX λY
Accuracy of Approximation of Images
Find Pose
Compare
Harmonic Images