Introduction - If you have any usage issues, please Google them yourself
The following program implements median filtering, Hori parameter is a Boolean variable, if it is true, so the level of median filtering, otherwise, do vertical median filtering.