Calibration.estimate_temperature_dependent_alignment¶
giant.calibration.calibration_class
:
- Calibration.estimate_temperature_dependent_alignment()[source]¶
This method estimates a temperature dependent (not static) alignment between a base frame and the camera frame over multiple images.
This method uses the
alignment_base_frame_func
to retrieve the rotation from the inertial frame to the base frame the alignment is to be done with respect to for each image time. Then, the rotation from the inertial frame to the camera frame is retrieved for each image from theImage.rotation_inertial_to_camera
attribute for each image (which is updated by a call toestimate_attitude()
). These frame definitions are then provided to thetemperature_dependent_alignment_estimator()
to estimate the temperature dependent alignment. The estimated alignment is returned and can be queried for a specific temeprature usingevaluate_temperature_dependent_alignment()
. It is also stored in thetemperature_dependent_alignment
attribute.Note that to do alignment, the base frame and the camera frame should generally be fixed with respect to one another (with the exception of small variations with temperature). This means that you can’t do alignment with respect to something like the inertial frame in general, unless your camera is magically fixed with respect to the inertial frame.
Generally, this method should be called after you have estimated the attitude for each image, because the estimated image pointing is used to estimate the alignment. As such, only images where there are successfully matched stars are used in the estimation.
Note
This method will attempt to account for misalignment estimated along with the camera model when performing the estimation; however, this is not recommended. Instead, once you have performed your camera model calibration, you should consider resetting the camera model misalignment to 0 and then calling
estimate_attitude()
before a call to this function.- Returns:
The temeprature dependent alignment as linear (in temperature) euler angle equations in radians to go from the base frame to the camera frame
- Return type: