A filter that allows only certain values. All values that don't conform to the mask are discarded.
In an image, a mask is used to remove transparent pixels.