OwenModel.overwrite¶
giant.camera_models.owen_model:
- OwenModel.overwrite(model)¶
This method replaces self with the properties of
modelin 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
selfis overwritten by the corresponding instance variable in other.This method operates by looping through the properties defined in
important_attributesand copying the value frommodeltoself.- Parameters:
model (CameraModel) – The model to overwrite self with
- Raises:
ValueError – When
modelis not the same type asself