Introduction - If you have any usage issues, please Google them yourself
Function realized median filter with irregular mask by using Visual Studio, and OpenCV library.
User can define mask by special matrix with unrestricted size N x M, which includes 0 and 1 values. Only 1 values determine which element of neighborhood of point will be used to calculate median.