ctapipe is not stable yet, so expect large and rapid changes to structure and functionality as we explore various design choices before the 1.0 release.

dilate#

ctapipe.image.cleaning.dilate(geom, mask)[source]#

Add one row of neighbors to the True values of a pixel mask and return the new mask. This can be used to include extra rows of pixels in a mask that was pre-computed, e.g. via tailcuts_clean.

Parameters:
geom: `~ctapipe.instrument.CameraGeometry`

Camera geometry information

mask: ndarray

input mask (array of booleans) to be dilated