darsia.AffineCorrection#
- class AffineCorrection(coordinatesystem_src, coordinatesystem_dst, pts_src, pts_dst, fit_options={})[source]#
Bases:
TransformationCorrectionAffine correction (translation, scaling, rotation).
Set up the affine correction.
- Parameters:
- coordinatesystem_src
darsia.CoordinateSystem Coordinate system of
pts_src.- coordinatesystem_dst
darsia.CoordinateSystem Coordinate system of
pts_dst.- pts_src
CoordinateArray,VoxelArrayorVoxelCenterArray Source points.
- pts_dst
CoordinateArray,VoxelArrayorVoxelCenterArray Target points.
- fit_options
dict,optional "isometry"(bool) – whether the transformation is an isometry; if so it operates in Coordinate space.
- coordinatesystem_src
Methods
correct_array(array_src)Correction routine of array data.
correct_metadata([metadata])Correction routine on metadata level.
load(path)Load the correction from npz file.
save(path)Save the correction to npz file.
Attributes
Coordinate system corresponding to the input.
Coordinate system corresponding to the output/target.
Dimension of the underlying Euclidean spaces.
transformationTransformation to apply as correction.
- coordinatesystem_dst#
Coordinate system corresponding to the output/target.
- coordinatesystem_src#
Coordinate system corresponding to the input.
- dim#
Dimension of the underlying Euclidean spaces.