Mask Operations for Spatial Domain Enhancement