Remove bright small dots from the analysis?

To remove bright small dots from the analysis one could:

  • Morphological opening in the image
  • Running median filter in the plot