Transform
beignet.rotations.apply_transform
apply_transform(input, transform)
Return affine transformed position.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input
|
Tensor
|
Position, must have shape |
required |
transform
|
Tensor
|
Affine transformation matrix, must have shape
|
required |
Returns:
| Type | Description |
|---|---|
Tensor
|
Affine transformed position of shape |
Source code in src/beignet/rotations/_apply_transform.py
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 | |
beignet.rotations.invert_transform
invert_transform(transform)
Calculates the inverse of an affine transformation matrix.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
transform
|
Tensor
|
The affine transformation matrix to be inverted. |
required |
Returns:
| Type | Description |
|---|---|
Tensor
|
The inverse of the given affine transformation matrix. |
Source code in src/beignet/rotations/_invert_transform.py
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | |