PinholeModel.overwrite¶
giant.camera_models.pinhole_model
:
- PinholeModel.overwrite(model)¶
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 (CameraModel) – The model to overwrite self with
- Raises:
ValueError – When
model
is not the same type asself