Академический Документы
Профессиональный Документы
Культура Документы
cmax
dcam
, b
max
= c
max
:
max
bmax
bmax
bmax
dcam
p(b)db = max
cmax
cmax
dcam
p(b)db (4)
3 Auto Exposure for multiple-slope
camera
When digital cameras are used, that feature a multiple-
slope transition curve, the dynamic range d
cam
of the
camera may be modied. The dynamic range d
cam
depends on the slopes of the camera. Considering a
camera with a single controlable kneepoint in the tran-
sition curve (two linear segments), the kneepoint can
be parameterized by a slope scaling factor s [1, [
und a height [0, 1].
The factor s is the ratio between the slope
a
of
the rst linear segment and the slope
b
of the second
one:
b
=
a
s
. Due to the technical realization of
the multiple-slope feature in CMOS sensors, the slope
of the transition curve can only be lowered at a knee
point. This leeds to the lower bound for s: s 1.
The height indicates the sensor output level
c
Level
at which the transition curve switches from one
slope to the other: c
Level
= c
max
.
Only the second part of equation (2) still holds in
the case of multiple-slope camera mode:
d
cam,slp
=
b
max
b
min
=
c
max
c
min
= d
cam,lin
(5)
We assume that the minimum input brightness
b
min,slp
falls into the rst linear segment of the tran-
sition curve: b
min,slp
=
c
min
a
(see equation (1)). The
maximum input brightness b
max,slp
cannot be calcu-
lated according to equation (1), as the camera is not
linear any more. b
max,slp
can be calculated as
b
max,slp
=
c
Level
a
+
c
max
c
Level
b
=
sc
max
+ (1 s)c
Level
a
(6)
The dynamic range of the multiple-slope camera
can now be given as a function of s and :
d
cam,slp
(s, ) =
b
max
b
min
=
s c
max
+ (1 s) c
Level
c
min
= [(1 )s +]
c
max
c
min
(7)
The minimum dynamic range range is reached
with a linear slope (s = 1).
According to equation (4), the most simple solu-
tion to maximize the recorded information is to op-
erate the camera with the maximum dynamic range
possible. This leeds to the maximation of the interval
width for the integration und thus to the maximation
the integral. Due to changes in quantization, this is not
the optimal AE for cameras operated in multiple-slope
mode.
The quantization b of the input brightness b
raises with lower slope for linear cameras. It is con-
stant across the whole dynamic range of the camera.
WSEAS Transactions on System and Control, Vol. 2, Issue 2, Feb. 2007 (ISSN: 1991-8763) 95
Using a sensor with n bit output, we get 2
n
quantiza-
tion levels, thus
b =
b
max
2
n
=
1
c
max
2
n
(8)
For a multiple-slope camera the quantization b
depends on the segment of the transition curve. The
quantization b
a
in the rst segment is equal to the
quantization of the linear camera: b
a
=
1
a
cmax
2
n
. The
quantization b
b
in the second segment shows a sim-
ilar behaviour:
b
b
=
1
b
c
max
2
n
=
s
a
c
max
2
n
= s b
a
(9)
The quantization step (and quantization noise at
the same time) raises with the ratio s of the slopes.
This effect has to be taken into account in equation
(4) for the optimum AE control. Let b
Level
=
a
c
max
be the brightess level, at which the recording switches
from the rst to the second slope segment for a spe-
cic camera setting. We can pose the optimum AE for
multiple-slope cameras as a modied constraint opti-
mization problem:
max
bmax,s,b
Level
b
Level
b
min
p(b)db +s
m
bmax
b
Level
p(b)db
= max
a,s,
b
Level
c
min
a
p(b)db +s
m
bmax
b
Level
p(b)db
(10)
with b
max
=
s(1 )c
max
+c
max
a
m [0, 1],
with the constraints
a
> 0 (11)
s > 1 (12)
>
c
min
c
max
(13)
1 (14)
The modied quantization in the second segment
is taken into account by the weighting factor m
[0, 1]. The constraint (13) forces the height of the
kneepoint to be greater than the noise level.
4 Generation of the HDH
The camera itself is used to generate the HDH. Taking
the histogram of a single image as the HDH restricts
the dynamic range of the histogram to the dynamic
range of the camera. We combine several images of
the same scene with different exposures in order to
extend the dynamic range of the HDH. This leeds to
a HDH with a dynamic range that covers the entire
dynamic range, the camera is able to record using all
different exposure settings. This is achieved by in-
cluding the minimum and maximum camera exposure
into the exposure series.
We consider the camera to be linear. This holds
true only for output values of the camera which are
neither dominated by noise (c < c
min
) nor by satura-
tion effects (c > c
max
> c
max
). The upper bound c
max
for the linear operation is lower then the saturation ca-
pacity c
max
because saturation effects are already ap-
parent before the maximum value c
max
is reached [1],
[2].
Dening the co-domain for equation (1) leeds to
c = b , c [c
min
, c
max
] (15)
We only want to combine the linear ranges of dif-
ferent exposures (c
min
< c < c
max
). This means that
we have to choose the subsequent exposures such that
the linear ranges touch or even overlap each other.
Starting from the maximum exposure T
0
we would
like to calculate the next exposure T
1
which exactly
touches the linear range:
b =
c
max
T
0
=
c
min
T
1
=
c
min
T
1
T
0
T
0
T
1
= T
0
c
min
c
max
(16)
As an example we consider a VGA-resolution
digital camera with rolling shutter. The exposure T
may be varied over a range of 1 to T
0
= 480 lines.
Thus the slope of the linear camera may be mod-
ied from
480
to
1
=
1
480
480
. The normalized
camera output values are supposed to be in the range
[0, 1] with added signal independent noise of 1%, re-
sulting in c
min
= 0.01. The saturation effects are
assumed to begin at 95%, thus c
max
= 0.95. Ac-
cording to equation (16) T
1
should be set to at least
T
1
=
480
0.01
0.95