kornia.geometry.keypoints¶
Module with useful functionalities for 2D and 3D keypoints manipulation.
- class kornia.geometry.keypoints.Keypoints(keypoints, raise_if_not_floating_point=True)¶
2D Keypoints containing Nx2 or BxNx2 points.
- Parameters:
- pad(padding_size)¶
Pad a bounding keypoints.
- to_tensor(as_padded_sequence=False)¶
Cast
Keypoints
to a tensor.mode
controls which 2D keypoints format should be use to represent keypoints in the tensor.
- transform_keypoints(M, inplace=False)¶
Apply a transformation matrix to the 2D keypoints.
- transform_keypoints_(M)¶
Inplace version of
Keypoints.transform_keypoints()
- Return type:
- class kornia.geometry.keypoints.Keypoints3D(keypoints, raise_if_not_floating_point=True)¶
3D Keypoints containing Nx3 or BxNx3 points.
- Parameters:
- clone()¶
- Return type:
- classmethod from_tensor(keypoints)¶
- Return type:
- pad(padding_size)¶
Pad a bounding keypoints.
- Parameters:
padding_size (
Tensor
) – (B, 6)- Return type:
- property shape: Size¶
- to_tensor(as_padded_sequence=False)¶
Cast
Keypoints
to a tensor.mode
controls which 2D keypoints format should be use to represent keypoints in the tensor.
- transform_keypoints(M, inplace=False)¶
Apply a transformation matrix to the 2D keypoints.
- Parameters:
- Return type:
- Returns:
The transformed keypoints.
- transform_keypoints_(M)¶
Inplace version of
Keypoints.transform_keypoints()
- Return type: