Image median filter written in C++.