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)[source]#
2D Keypoints containing Nx2 or BxNx2 points.
- Parameters:
- property data#
- property shape#
- to_tensor(as_padded_sequence=False)[source]#
Cast
Keypoints
to a tensor.mode
controls which 2D keypoints format should be use to represent keypoints in the tensor.
- transform_keypoints_(M)[source]#
Inplace version of
Keypoints.transform_keypoints()
- Return type:
- class kornia.geometry.keypoints.Keypoints3D(keypoints, raise_if_not_floating_point=True)[source]#
3D Keypoints containing Nx3 or BxNx3 points.
- Parameters:
- pad(padding_size)[source]#
Pad a bounding keypoints.
- Parameters:
padding_size (
Tensor
) – (B, 6)- Return type:
- property shape: Size#
- to_tensor(as_padded_sequence=False)[source]#
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)[source]#
Apply a transformation matrix to the 2D keypoints.
- Parameters:
- Return type:
- Returns:
The transformed keypoints.
- transform_keypoints_(M)[source]#
Inplace version of
Keypoints.transform_keypoints()
- Return type: