Converts affine matrices to tf.contrib.image
projective transforms.
tf.contrib.image.matrices_to_flat_transforms(
transform_matrices
)
Note that we expect matrices that map output coordinates to input coordinates.
To convert forward transformation matrices, call tf.linalg.inv
on the
matrices and use the result here.
Args |
transform_matrices
|
One or more affine transformation matrices, for the
reverse transformation in homogeneous coordinates. Shape (3, 3) or
(N, 3, 3) .
|
Raises |
ValueError
|
If transform_matrices have an invalid shape.
|