On the relation of order-statistics filters and template matching: optimal morphological pattern recognition | IEEE Journals & Magazine | IEEE Xplore