Skip to content

rotate camera configuration along 2 selected row, col point pairs in frame #293

@hcwinsemius

Description

@hcwinsemius

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions