Imaging (image)#
ctapipe.image contains all algorithms that operate on Cherenkov camera images.
A Cherenkov image is defined as two pieces of data:
a
numpyarray of pixel values (which can either be 1D, or 2D if time samples are included)a description of the Camera geometry (pixel positions, etc), usually a
ctapipe.instrument.CameraGeometryobject
This module contains the following sub-modules, but the most important functions of each are imported into the ctapipe.image namespace
Reference/API#
ctapipe.image Package#
Functions#
  | 
Compute Hillas parameters for a given shower image.  | 
  | 
Return longitudinal and transverse coordinates for x and y for a given set of hillas parameters  | 
  | 
Function to extract timing parameters from a cleaned image.  | 
  | 
Calculating the leakage-values for a given image.  | 
  | 
Calculate concentraion values.  | 
  | 
compute intensity statistics of an image  | 
  | 
Search a given pixel mask for connected clusters.  | 
  | 
Return number of small, medium and large islands  | 
  | 
Compute image morphology parameters  | 
  | 
Find the biggest island and filter it from the image.  | 
  | 
Find the brightest island and filter it from the image.  | 
  | 
Clean an image by selection pixels that pass a two-threshold tail-cuts procedure.  | 
  | 
Clean an image by removing pixels below a fraction of the mean charge in the   | 
  | 
Add one row of neighbors to the true values of a pixel mask and return the new mask.  | 
  | 
Clean an image by selecting pixels that pass a three-threshold tail-cuts procedure.  | 
  | 
Clean an image in 5 Steps:  | 
  | 
Clean an image by selection pixels that pass the fact cleaning procedure.  | 
  | 
Identify all pixels from selection that have less than N neighbors that arrived within a given timeframe.  | 
  | 
Time constrained cleaning by MAGIC  | 
  | 
Calculate negative log likelihood for telescope.  | 
  | 
Calculate likelihood of prediction given the measured signal, full numerical integration from [DNR09].  | 
  | 
Safe implementation of the poissonian likelihood implementation, adaptively switches between the full solution and the gaussian approx depending on the prediction.  | 
  | 
Calculation of the mean of twice the negative log likelihood for a give expectation value of pixel intensity in the gaussian approximation.  | 
  | 
Calculation of the mean of twice the negative log likelihood for a give expectation value of pixel intensity using the full numerical integration.  | 
  | 
Simple chi-squared statistic from Le Bohec et al 2008  | 
  | 
Fast and reliable analytical circle fitting method.  | 
  | 
Calculate the weighted mean squared error for a circle.  | 
  | 
Calculate the ratio of the photons inside a given ring with coordinates (center_fov_lon, center_fov_lat), radius and width.  | 
  | 
Estimate how complete a muon ring is by binning the light distribution along the ring and applying a threshold to the bin content.  | 
  | 
Estimate the angular containment of a muon ring inside the camera's field of view.  | 
  | 
Obtain the average waveform built from the neighbors of each pixel  | 
  | 
Subtracts the waveform baseline, estimated as the mean waveform value in the interval [baseline_start:baseline_end]  | 
Obtain the correction for the integration window specified.  | 
Classes#
  | 
Component to tune simulated background to overserved NSB values.  | 
  | 
Takes DL1/Image data and cleans and parametrizes the images into DL1/parameters.  | 
  | 
Abstract class for all configurable Image Cleaning algorithms.  | 
  | 
Clean images using the standard picture/boundary technique.  | 
  | 
Clean images based on lstchains image cleaning technique described in [LST23].  | 
  | 
Fit muon ring images with a theoretical model to estimate optical efficiency.  | 
  | 
Different ring fit algorithms for muon rings  | 
  | 
Takes cleaned images and extracts muon rings.  | 
  | 
|
  | 
Extractor that sums the entire waveform.  | 
  | 
Extractor that sums within a fixed window defined by the user.  | 
  | 
Extractor which sums in a window about the peak from the global average waveform.  | 
  | 
Extractor which sums in a window about the peak in each pixel's waveform.  | 
  | 
Sliding window extractor that maximizes the signal in window_width consecutive slices.  | 
  | 
Extractor which sums in a window about the peak defined by the waveforms in neighboring pixels.  | 
  | 
Extractor that first subtracts the baseline before summing in a window about the peak defined by the waveforms in neighboring pixels.  | 
  | 
Extractor based on [R51f2a41efcc4-1] which integrates the waveform a second time using a time-gradient linear fit.  | 
  | 
Calculate the variance over samples in each waveform.  | 
  | 
Base component for data volume reducers.  | 
  | 
Perform no data volume reduction  | 
  | 
Reduce the time integrated shower image in 3 Steps:  | 
  | 
An abstract base class for algorithms treating invalid pixel data in images  | 
  |