I have a large quantity of old digital images of low energy electron diffraction (LEED) patterns that I must process to identify and locate small, sometimes elongated gaussian-like blobs of a few pixels in width within a noisy and artifact-riddled background.

I'm currently reading up on Laplacian of Gaussian blob detection 1, 2, 3 and have started to implement the "roll-your-own" script in the first link; there are python packages like OpenCV and Scikit-image that have standard libraries for this as well and I believe they both have Laplacian of Gaussian blob detection, but I like to do it first myself to better understand what's going on.

Why are you asking this here in Astronomy SE?

Good question! Because this looks at least superficially a lot like what astronomers need to do when searching for objects in deep space imaging applications, and there may be some standard implementations in AstroPy or even lecture notes for Digital Imaging in Astronomy 101 courses.

In parallel with my brute force efforts, how might I compliment this work with existing astronomical imaging techniques to compare notes? It would be great if it turned out that some existing script or package searching for distant elliptical galaxies or weak gravitational lensing could be applied directly to these kinds of images!

Example image (some data has smaller pixels, but I need to process these low pixel count images as well):

enter image description here

The kinds of "spots" I'm looking for:

enter image description here

First try with Python implementation of Laplacian of Gaussian blob detection, haven't yet looked at generalizing to non-circular shapes, just ran the script in the link with a few small modifications.

enter image description here

  • 2
    $\begingroup$ If the artifacts are the same in all the images, and the spots you are trying to find are not, you could start by stacking all the images and taking the median at each pixel. Then you substract this from each image in order to remove some of the structures you don't want $\endgroup$ – usernumber Jan 9 at 8:45
  • $\begingroup$ @usernumber Thanks, that's a good idea! Unfortunately they are not. :-( $\endgroup$ – uhoh Jan 9 at 9:08
  • $\begingroup$ Have you worked with ImageJ? imagej.nih.gov/ij It has some tools to do blob detection and similar stuff, developed at least partly with astronomers in mind. $\endgroup$ – Carl Witthoft Jan 9 at 19:14
  • $\begingroup$ @CarlWitthoft I've used it to make GIFs but haven't explored it otherwise. I'll try that today and see what happens. Ultimately I'm looking for a Python solution so I can integrate it into a workflow and also so I can get under the hood and modify and optimize it, but this could be a helpful stepping-stone. $\endgroup$ – uhoh Jan 9 at 20:00
  • 1
    $\begingroup$ The software that's most used for detecting things in astronomical images is SExtractor or the Python library SEP which implements the same core algorithms. $\endgroup$ – astrosnapper Jan 10 at 19:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.