cta-observatory / ctapipe

Low-level data processing pipeline software for CTAO or similar arrays of Imaging Atmospheric Cherenkov Telescopes
https://ctapipe.readthedocs.org
BSD 3-Clause "New" or "Revised" License
64 stars 268 forks source link

Minor change to tailcuts cleaning to improve the detection of signal pixels #2326

Open clara-escanuela opened 1 year ago

clara-escanuela commented 1 year ago

The tailcut cleaner could be modified in order to add pixels above the (low) boundary threshold if they continuously connect to a pixel above the (high) picture threshold, rather than only the first neighbour. This would require a very small change in the code. It should be equivalent to the hysteresis thresholding implemented in scikit-image (https://scikit-image.org/docs/dev/api/skimage.filters.html#skimage.filters.apply_hysteresis_threshold, reference https://ieeexplore.ieee.org/document/4767851) .

image image image

maxnoe commented 1 year ago

That's a nice idea but I'd say not a small change to tailcuts.

THat rather seems like it's own cleaning method as an adaption of the normal tailcuts.

I'd be in favor of adding it though (or as an option to the existing tailcuts)

clara-escanuela commented 1 year ago

I thought it could be added either as an option in tailcuts or a new cleaning method (although it is very similar to tailcuts)