tf.contrib.image.flat_transforms_to_matrices
Converts tf.contrib.image projective transforms to affine matrices.
tf.contrib.image.flat_transforms_to_matrices(
transforms
)
Note that the output matrices map output coordinates to input coordinates. For the forward transformation matrix, call tf.linalg.inv on the result.
| Args | |
|---|---|
transforms | Vector of length 8, or batches of transforms with shape (N, 8). |
| Returns | |
|---|---|
3D tensor of matrices with shape (N, 3, 3). The output matrices map the output coordinates (in homogeneous coordinates) of each transform to the corresponding input coordinates. |
| Raises | |
|---|---|
ValueError | If transforms have an invalid shape. |
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/contrib/image/flat_transforms_to_matrices