ImageCleaner#

class protopipe.pipeline.ImageCleaner(config, cameras, mode='tail')[source]#

Bases: object

Class applying image cleaning. It can handle wavelet or tail-cuts-based methods.

Parameters
config: dict

Configuration file with sections corresponding to wave or tail

mode: str

Model corresponding to wave or tail

Methods Summary

clean_image(img, geom)

Clean image according to configuration

initialise_clean_opt(cameras)

Initialise cleaner according to the different camera type

Methods Documentation

clean_image(img, geom)[source]#

Clean image according to configuration

Parameters
img: array

Calibrated image

geom: `~ctapipe.XXX`

Camera geometry

Returns
new_img: np.array

Cleaned image

mask: np.array

Boolean array which corresponds to the cleaned pixels

initialise_clean_opt(cameras)[source]#

Initialise cleaner according to the different camera type