Mike's Median filter ported to this library