Text this: Spatial filter and its application in three-dimensional single molecule localization microscopy