Abstract
The current best bound on the number of comparison operations needed to compute the running maximum or minimum over a p-element sliding data window is approximately three comparisons per output sample. This bound is probabilistic for some algorithms and is derived for their complexities on the average for independent, identically distributed (i.i.d.) input signals. The worst-case complexities of these algorithms are O(p). The worst-case complexity C/sub r/=3 -4/p comparisons per output sample for 1D signals is achieved in the Gil-Werman algorithm (1993). In this correspondence we propose a modification of the Gil-Werman algorithm with the same worst-case complexity but with a lower average complexity. A theoretical analysis shows that using the proposed modification the complexities of sliding max or min 1D and 2D filters over i.i.d. signals are reduced to C/sub 1/=2.5-3.5/p+1/p/sup 2/ and C/sub 2/=5-7/p+2/p/sup 2/ comparisons per output sample on the average, respectively. Simulations confirm the theoretical results. Moreover, experiments show that even for highly correlated data, namely, for real images the behavior of the algorithm remains the same as for i.i.d. signals.
Published Version
Talk to us
Join us for a 30 min session where you can share your feedback and ask us any queries you have