xdem.coreg.AffineCoreg#
- class xdem.coreg.AffineCoreg(meta=None, matrix=None)[source]#
Generic affine coregistration class.
Builds additional common affine methods on top of the generic Coreg class. Made to be subclassed.
Methods
__init__([meta, matrix])Instantiate a generic Coreg method.
apply(dem[, transform, crs, resample])Apply the estimated transform to a DEM.
apply_pts(coords)Apply the estimated transform to a set of 3D points.
centroid()Get the centroid of the coregistration, if defined.
copy()Return an identical copy of the class.
error(reference_dem, dem_to_be_aligned[, ...])Calculate the error of a coregistration approach.
fit(reference_dem, dem_to_be_aligned[, ...])Estimate the coregistration transform on the given DEMs.
fit_pts(reference_dem, dem_to_be_aligned[, ...])Estimate the coregistration transform between a DEM and a reference point elevation data.
from_matrix(matrix)Instantiate a generic Coreg class from a transformation matrix.
from_translation([x_off, y_off, z_off])Instantiate a generic Coreg class from a X/Y/Z translation.
residuals(reference_dem, dem_to_be_aligned)Calculate the residual offsets (the difference) between two DEMs after applying the transformation.
to_matrix()Convert the transform to a 4x4 transformation matrix.
Attributes
is_affineCheck if the transform be explained by a 3D affine transform.