矩阵中,排序,取中值
参考链接:https://github.com/opencv/opencv/blob/f9b8ce1d25a5107cdd5b62d07da28580ccf18e88/modules/imgproc/src/smooth.cpp