On the relation of order-statistics filters and template matching: optimal morphological pattern recognition. - Schonfeld, Dan (IEEE Trans. Image Process., 2000)