Applies the given transform to each of the images.
tf.raw_ops.ImageProjectiveTransformV3(
images,
transforms,
output_shape,
fill_value,
interpolation,
fill_mode='CONSTANT',
name=None
)
If one row of transforms is [a0, a1, a2, b0, b1, b2, c0, c1], then it maps
the output point (x, y) to a transformed input point
(x', y') = ((a0 x + a1 y + a2) / k, (b0 x + b1 y + b2) / k), where
k = c0 x + c1 y + 1. If the transformed point lays outside of the input
image, the output pixel is set to fill_value.
images
Tensor. Must be one of the following types: uint8, int32, int64, half, bfloat16, float32, float64.
4-D with shape [batch, height, width, channels].
transforms
Tensor of type float32.
2-D Tensor, [batch, 8] or [1, 8] matrix, where each row corresponds to a 3 x 3
projective transformation matrix, with the last entry assumed to be 1. If there
is one row, the same transformation will be applied to all images.
output_shape
Tensor of type int32.
1-D Tensor [new_height, new_width].
fill_value
Tensor of type float32.
float, the value to be filled when fill_mode is constant".
interpolation
string. Interpolation method, "NEAREST" or "BILINEAR".
fill_mode
string. Defaults to "CONSTANT".
Fill mode, "REFLECT", "WRAP", "CONSTANT", or "NEAREST".
name
Tensor. Has the same type as images.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2024-04-26 UTC.