tf.raw_ops.ImageProjectiveTransformV3
Stay organized with collections
Save and categorize content based on your preferences.
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.
Args |
images
|
A Tensor . Must be one of the following types: uint8 , int32 , int64 , half , float32 , float64 .
4-D with shape [batch, height, width, channels] .
|
transforms
|
A 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
|
A Tensor of type int32 .
1-D Tensor [new_height, new_width].
|
fill_value
|
A Tensor of type float32 .
float, the value to be filled when fill_mode is constant".
|
interpolation
|
A string . Interpolation method, "NEAREST" or "BILINEAR".
|
fill_mode
|
An optional string . Defaults to "CONSTANT" .
Fill mode, "REFLECT", "WRAP", "CONSTANT", or "NEAREST".
|
name
|
A name for the operation (optional).
|
Returns |
A 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 2023-03-27 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-03-27 UTC."],[],[]]