BrownModel.overwrite

giant.camera_models.brown_model:

BrownModel.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 from model to self.

Parameters:

model (CameraModel) – The model to overwrite self with

Raises:

ValueError – When model is not the same type as self