[MFMC]: Add median filter to independent filter x and y factor of gradient, in order to filter noise in gradient direction