This is needed to correct camera configurations of accidentally slightly rotated cameras that are likely still in the same location.
Function signature should be something like
class CameraConfig
...
def rotate(points1, points2):
"""Rotate camera configuration on the basis of two point pairs defining the rotation on the objective."""
# undistort the selected points
# define rotation and translation on the camera objective, using the undistorted points
# ...this results in a transformation matrix
# translate the rotation and translation vector (part of the CameraConfig properties) to new rotation and translation vector, using the corrected points
# also apply the transformation matrix on all row, column of self.gcps["src"]. This ensures that the user may see existing control points and check if the transformation seems good!
return new_camera_config
This is needed to correct camera configurations of accidentally slightly rotated cameras that are likely still in the same location.
Function signature should be something like