InvalidPixelHandler¶
-
class
ctapipe.image.
InvalidPixelHandler
(**kwargs: Any)[source]¶ Bases:
ctapipe.core.component.TelescopeComponent
An abtract base class for algorithms treating invalid pixel data in images
Methods Summary
__call__
(tel_id, image, peak_time, pixel_mask)Handle invalid (broken, high noise, …) pixels.
Methods Documentation
-
abstract
__call__
(tel_id, image, peak_time, pixel_mask) → Tuple[numpy.ndarray, numpy.ndarray][source]¶ Handle invalid (broken, high noise, …) pixels.
E.g. replace by average over neighbors, see
NeighborAverage
).- Parameters
- tel_idint
telescope id
- imagenp.ndarray
Array of pixel image values
- peak_timenp.ndarray
Array of pixel peak_time values
- pixel_masknp.ndarray
Boolean mask of the pixels to be interpolated
- Returns
- imagenp.ndarray
Image with interpolated values
- peak_timenp.ndarray
peak_time with interpolated values
-
abstract