CameraModel.overwrite¶
- CameraModel.overwrite(model)[source]¶
This method replaces self with the properties of
model
in place.This method is primarily used in the calibration classes to maintain the link between the internal and external camera models. Essentially, each instance variable in
self
is overwritten by the corresponding instance variable in other.This method operates by looping through the properties defined in
important_attributes
and copying the value frommodel
toself
.- Parameters
model (giant.camera_models.camera_model.CameraModel) – The model to overwrite self with
- Raises
ValueError – When
model
is not the same type asself