Local density filter effectively removes noise created by, e.g., isolated localizations. The method works by calculating the number of neighbors at a given radius (in 2D or 3D) for every localization event. Localization event is discarded if the number of neighbors is below a user-specified threshold.