Application of A Cumulative Method For C
Application of A Cumulative Method For C
4, DECEMBER 2008 75
Faculty of Electrical Engineering and Informatics, Univ. of Pardubice, Studentská 95, 532 10 Pardubice, Czech Republic
Abstract. The paper deals with low-level car detection In the next part of the article, the original method for
methods in images. The car detection is an integral part of suppression of the edges produced by the standard edge
all intelligent car cruise systems. This article describes the detectors most often based on application of the cumulative
method for suppression of the edges produced by classical method is described in detail. At the input of the present
edge's operators, based on application of the cumulative method the vector of approximate cars coordinates is used
method. The designed method uses the non-stationary and at the output we get an image with only car's outlines
property of the picture background in time-realizations of depicted while the other edges are suppressed.
the image signal.
equivalent image segments in the next n frames with rele- slows down the computation speed. The speed
vant shifted objects. For this reasons the template of size improvement may be achieved by the search window Wi
Ti=(xi±λι, yi±λι) is stripped from the initial frame, where λi size reduction, which is however limited by the condition
is the smallest estimated object i neighborhood radius and (1) or by the template Ti size reduction, which restrains the
xi,yi are the inaccurate coordinates of the object center. position accuracy.
This template is searched in the next maximum k frames to
The significant speed improvement without the unde-
In+k. If the object Oi maximum shift from the initial point in
sirable effects connected with the size reduction of
the image plane could be restricted to ΔSmax, then the matrices Wi or Ti may be achieved by exchanging the
selective scanning window can be defined as: standard two-dimensional correlation by one of the popular
W i = (S i ± n ⋅ ΔS max ) . (1) SAD1 algorithm [10]:
The searching is then realized only in the window Wi, r i SAD (u , v ) = ∑∑ (I i ( x + u , y + v ) − T i ( x, y )) . (3)
x y
which increases the computation speed.
In Fig. 1 an example of the input frame In is presented Due to the SAD algorithm simplicity it is extremely
including the first object axis S1 (green). In the figure also fast and effective. It can be fairly implemented on most of
the template T1=(x1±λι, y1±λι) is depicted in red, which today’s processors. The main finesse of this algorithm is
will be searched in the search window W1 (yellow) in next a substitution of a number of multiplications by the same
max. k frames. number of additions requiring much shorter computation
time. The further advantage of the SAD algorithm over the
two-dimensional correlation is its insensitivity to the mean
value of the Wi and Ti matrices, which eliminates the neces-
sity of the mean value computation.
The result of (3) is again the matrix Ri(u, v) similarly
to the relation (2). The best template Ti position is realized
by the search for the global minimum in the matrix Ri(u, v)
and again before the searching process start the Gaussian
2D low pass filter is applied.
Fig. 1. The example input image with depicted center and the
search window Wi
r i corr 2 (u, v ) = ∑∑ (I i ( x + u, y + v )T i ( x, y )) . (2) In Fig. 2 we may compare results of the Ricorr2(u, v) matrix
x y with marked maximum and RiSAD(u, v) matrix with the
minimum for the In+3 frame after the initial frame in Fig. 1.
The result of the relation (2) is the matrix Ri(u, v) We may see that SAD algorithm achieves the same accu-
with calculated correlation coefficients between the search racy with more than six time shorter2 computation time.
window Wi segments and the template Ti from the initial
image (Fig. 2-left). The best template Ti position When the maximum realistic object shift speed is as-
localization is then realized by a search for the global sumed in the image plane between the frames, the search
maximum in the matrix Ri(u, v). It is convenient to apply window of the objects near the image edges can fall par-
the Gaussian 2D low pass filter before the searching
process starts up to reduce the possibility of sticking in
some local extreme. During the search for the positions of 1 SAD – Sum of Absolute Differences
the template Ti in k frames by (2) as much as
2 By the window size Wi = 151 x 101 pixels and the template size
k⋅(u-x)⋅(v-y)⋅x⋅y multiplications should be realized which Ti = 21 x 21 pixels
RADIOENGINEERING, VOL. 17, NO. 4, DECEMBER 2008 77
frames the entire optical flow is concentrated mainly to the this way a segment with the most number of edges is cho-
background pixels. With the growing speed difference sen. In this segment the gravity centre is calculated (Fig. 6
between the car and the background the correlation falls - 4th column) representing the newly specified vertical and
down and the method becomes effective. horizontal center of the car. If vertical and horizontal ob-
ject symmetry is assumed, then it is possible to tilt the
Before the cumulative method is applied the mean
object image over the centre and to add it up. After this the
value from each signal realization is removed (Fig. 5). In
car boundaries with maximum accuracy could be deter-
the next step the individual realization are added to the cu-
mined (Fig. 6 - 5th and 6th column).
mulative signal. Regarding to the fact that the signal is not
ideal the signal to noise ratio (SNR) enhancement decreases
with an increasing number of cumulated frames. That is
why the SNR parameter is evaluated in each step and if the
SNR enhancement is less than a defined limit α, the addi-
tion process is stopped. In the same way also special situa-
tions are handled for instant when the light conditions
change causes that the further addition does not substan-
tially increase the output signal quality. The SNR parameter
is represented by edge number acquired by edge operator
in the region of interest (in the vicinity of the middle
choice window Wi) against the number of edges in
a cumulative image S created from Jin images:
E [edge(Wi )]
SNRi = . (6)
E[edge(S )]
The result of this procedure is the cumulative image
S, with greatly highlighted car pixels. The resulting accu-
mulated image of the first object from Fig. 13 is shown in Fig. 6. The boundaries extraction from the summary image.
Fig. 6. In the figure the car body segments acquired by
previous process can be simply recognized. The other parts By this way the new corrected center and shape of the car
of the car like the chassis, the front window, etc. are only is obtained. The obtained outlines of the car represent only
minimally emphasized due to the variations in the lighten- those areas highlighted by the cumulative method. The
ing. The spacing between the highlighted parts and the boundary parts of the cars have in the real 3D scene more
background is minimally about one order. Also the sky variable lighting during the car motion due to the carriage
segment is considerably correlated and the optical flow curvature and that is why they are not highlighted by the
here is minimal. Using this fact the sky can be very well previous method as much as the inner parts. This fact is
suppressed by using the mask of sky obtained by the clus- corrected by multiplicative factor η (typically η = 1.2),
tering methods as described in [4]. Since the sky does not which magnifies the predicted boundary range (Fig. 6- red
contain abrupt variations of the intensity function it does box) that are the better representation of the real car
not cause over-segmentation of the image. outlines.
3. Conclusion References
Fig. 7 presents examples of detection of the other ob- [1] BETKE, M., HARITAGLU, E., DAVIS, L. Multiple vehicle
detection and tracking in hard real time. In IEEE Intelligent Vehicles
jects (the red outlines) together with the summary images
Symposium, pp. 351–356, 1996.
(the 3rd column) acquired by the above described tech-
niques. In the top line of the images in Fig. 7 the second [2] ZHAO, T., NEVATIA, R. Car detection in low resolution aerial
images. In IEEE Int. Conf. Computer Vision, p. 710-717, 2001.
objects from Fig. 1 is presented. In the bottom line the ob-
ject moving in a slightly right–hand curved road is pre- [3] YING, R., CHIN-SENG, C., YEONG, K. Motion detection with
sented. For the demonstration of the procedure contribution nonstationary background. Machine Vision and Applications,
Springer-Verlag, 2003
the images created with the Sobel dual direction edge op-
erator on the original and on the cumulative picture (the [4] DOBROVOLNY, M. On-road vehicle detection based on image
processing. Doctoral dissertation, University of Pardubice, 2008
2nd column) are displayed. The picture shows the great
difference between the number of edges in the car area and [5] CHRISTOPHE, P. B. Discrete wavelet analysis for fast optic flow
number of edges in the suppressed neighborhood of the car computation. Applied and Computational Harmonic Analysis, July
2001, vol. 11, no. 1, pp. 32-63.
(the 4th column).
[6] BRUHN, A., WEICKERT, J., SCHNORR, C. Lucas/Kanade Meets
In both cases the leading cross (green) is also de- Horn/Schunck: Combining local and global optic flow methods.
picted indicating the car centre. The position of the cross is International Journal of Computer Vision, 2005, vol. 61, no. 3, p.
successively corrected and the car contours are calculated 211–231.
using the above described procedures. By these procedures [7] CHATUVERDI, P. Real-time identification of driveable areas in
the car borders are correctly specified even in the case of semi-structured terrain. Proc. SPIE, vol. 4364, p. 302-312,
highly inaccurate input centre coordinate. Unmanned Ground Vehicle Technology III, 2001,
2001SPIE.4364..302C.
The further examples of the objects detections are [8] ANDREONE, L., ANTONELLO, P. C., BERTOZZI, M., BROGGI,
presented in Fig. 8. For clearness the whole input picture I1 A., FASCIOLI, A., RANZATO, D. Vehicle detection and
including the search window W1 is presented. The new localization in infra-red images. In The IEEE 5th International
centers of the objects are indicated by green lines and their Conference on Intelligent Transportation Systems, 3-6 September
2002, Singapore. pp. 141-146.
outlines by the red ones.
[9] CASTELMAN, K. Digital image processing. Prentice Hall,
September 2, 1995, ISBN: 0-132114-674
[10] FORSYTH, D., PONCE, J. Computer Vision: A Modern Approach.
Prentice Hall, August 24, 2002, ISBN: 0-130851-98-1.
About Authors...
Martin DOBROVOLNÝ was born in the Czech Republic
in December 1976. He received his M.Sc. (2003) and Ph.D
(2008) degrees from the Jan Perner Transport Faculty, Uni-
versity of Pardubice, Czech Republic. He is interested in
Fig. 8. The other objects detection examples. image and signal processing and the computer networks.
The method described in this article effectively filters the Pavel BEZOUŠEK was born in 1943. He received his
undesirable edges produced by edge operators in the back- M.Sc. degree from the CTU, Prague in 1966 and his Ph.D.
ground pixels area. The detection of the cars is robust even degree from the same university in 1980. He was with the
in the case of a very complex image. The efficiency of the Radio Research Inst. of Tesla Pardubice from 1966 till
described method increases with the increasing difference 1994, where he was engaged in microwave circuits and
of the objects speed against the non-stationary background. systems design. Since then he has been with the University
The positive advantage of the method is the possibility to of Pardubice, now at the Inst. of Electrical Engineering and
change the accuracy/speed ratio by scaling of the searching Informatics. Presently he is engaged in radar systems
window Wi and the searching template Ti. The computation design.
time was improved using the SAD algorithm whereas the
accuracy does not change substantially. Martin HÁJEK was born in the Czech Republic in Janu-
ary 1978. He received his M.Sc. degree from Jan Perner
Transport Faculty, University of Pardubice in 2003. Since
2003, he has been a Ph.D student at Jan Perner Transport
Acknowledgements Faculty, University of Pardubice. His research interests
The research described in the paper was financially include digital signal processing, applications of FMCW
supported by the Czech traffic department under grant radars and implementing various methods of signal proc-
No. CG743-037-520. essing into real hardware.