DocumentCode
1312614
Title
Running Max/Min Filters Using 1+o(1) Comparisons per Sample
Author
Yuan, Hao ; Atallah, Mikhail J.
Author_Institution
Dept. of Comput. Sci., City Univ. of Hong Kong, Kowloon, China
Volume
33
Issue
12
fYear
2011
Firstpage
2544
Lastpage
2548
Abstract
A running max (or min) filter asks for the maximum or (minimum) elements within a fixed-length sliding window. The previous best deterministic algorithm (developed by Gil and Kimmel, and refined by Coltuc) can compute the 1D max filter using 1.5+o(1) comparisons per sample in the worst case. The best-known algorithm for independent and identically distributed input uses 1.25+o(1) expected comparisons per sample (by Gil and Kimmel). In this work, we show that the number of comparisons can be reduced to 1+o(1) comparisons per sample in the worst case. As a consequence of the new max/min filters, the opening (or closing) filter can also be computed using 1+o(1) comparisons per sample in the worst case, where the previous best work requires 1.5+o(1) comparisons per sample (by Gil and Kimmel); and computing the max and min filters simultaneously can be done in 2+o(1) comparisons per sample in the worst case, where the previous best work (by Lemire) requires three comparisons per sample. Our improvements over the previous work are asymptotic, that is, the number of comparisons is reduced only when the window size is large.
Keywords
computational complexity; filtering theory; 1D max filter; closing filter; deterministic algorithm; fixed-length sliding window; maximum elements; minimum elements; opening filter; running max-min filters; worst case; Algorithm design and analysis; Complexity theory; Computational modeling; Equations; Software algorithms; Mathematical morphology; closing.; dilation; erosion; opening;
fLanguage
English
Journal_Title
Pattern Analysis and Machine Intelligence, IEEE Transactions on
Publisher
ieee
ISSN
0162-8828
Type
jour
DOI
10.1109/TPAMI.2011.183
Filename
6007140
Link To Document