Filter mask is a matrix of small size to be added or multiplied or any other mathmatical operation to be applied to the the image matrix according to the required output.
For example a filter of size 3X3 can be applied to an image of size 500X500 or any other size .
Note: filter size have to be always smaller size than the image size.