Morphological Erosions and Openings: Fast Algorithms Based on Anchors
Journal of Mathematical Imaging and Vision
Streaming maximum-minimum filter using no more than three comparisons per element
Nordic Journal of Computing
Hi-index | 35.68 |
We present a novel algorithm for calculating the running maximum or minimum value of a 1-D sequence over a sliding data window. The new algorithm stores a pruned ordered list of data elements that have the potential to become maxima or minima across the data window at some future time instant. This algorithm has a number of advantages over competing algorithms, including balanced computational requirements for a variety of signals and the potential for reduced processing and storage requirements for long data windows. We show through both analysis and simulation that for an L-element running window, the new algorithm uses approximately three comparisons and 2logL+1 memory locations per output sample on average for i.i.d. signals, independent of the signal distribution