nabu.io.detector_distortion
source module nabu.io.detector_distortion
Classes
-
DetectorDistortionBase — This is the basis class. A simple identity transformation which has the only merit to show how it works.Reimplement this function to have more parameters for other transformations
-
DetectorDistortionMapsXZ — This class implements the distortion correction from the knowledge of two arrays, map_x and map_z. Pixel (i,j) of the corrected image is obtained by interpolating the raw data at position ( map_z(i,j), map_x(i,j) ).
source class DetectorDistortionBase(detector_full_shape_vh=(0, 0))
This is the basis class. A simple identity transformation which has the only merit to show how it works.Reimplement this function to have more parameters for other transformations
Methods
-
transform — performs the transformation
-
set_sub_region_transformation — must return a source sub_region. It sets internally an object (a practical implementation would be a sparse matrice) which can be reused in further applications of "transform" method for transforming the source sub_region data into the target sub_region
source method DetectorDistortionBase.transform(source_data, do_full=False)
performs the transformation
source method DetectorDistortionBase.get_adapted_subregion(sub_region_xz)
source method DetectorDistortionBase.set_sub_region_transformation(target_sub_region=None)
must return a source sub_region. It sets internally an object (a practical implementation would be a sparse matrice) which can be reused in further applications of "transform" method for transforming the source sub_region data into the target sub_region
source method DetectorDistortionBase.set_full_transformation()
source method DetectorDistortionBase.get_actual_shapes_source_target()
source class DetectorDistortionMapsXZ(map_x, map_z)
Bases : DetectorDistortionBase
This class implements the distortion correction from the knowledge of two arrays, map_x and map_z. Pixel (i,j) of the corrected image is obtained by interpolating the raw data at position ( map_z(i,j), map_x(i,j) ).
Parameters
-
map_x : float 2D array
-
map_z : float 2D array