I'm looking for a FAST 2D cross-shaped median filter algorithm. The naive algorithm is to slide the cross over the image and find the median of the pixels in the cross by some sorting algorithm. The cross-shaped kernel could be '+' (horizontal and vertical cross) and 'x' (diagonal cross).
I am aware of available algorithms that uses histograms but they seem to work only for square shaped kernels. See this question and this question