tf.contrib.resampler.resampler
Stay organized with collections
Save and categorize content based on your preferences.
Resamples input data at user defined coordinates.
tf.contrib.resampler.resampler(
data, warp, name='resampler'
)
The resampler currently only supports bilinear interpolation of 2D data.
Args |
data
|
Tensor of shape [batch_size, data_height, data_width,
data_num_channels] containing 2D data that will be resampled.
|
warp
|
Tensor of minimum rank 2 containing the coordinates at which
resampling will be performed. Since only bilinear interpolation is
currently supported, the last dimension of the warp tensor must be 2,
representing the (x, y) coordinate where x is the index for width and y is
the index for height.
|
name
|
Optional name of the op.
|
Returns |
Tensor of resampled values from data . The output tensor shape is
determined by the shape of the warp tensor. For example, if data is of
shape [batch_size, data_height, data_width, data_num_channels] and warp of
shape [batch_size, dim_0, ... , dim_n, 2] the output will be of shape
[batch_size, dim_0, ... , dim_n, data_num_channels] .
|
Raises |
ImportError
|
if the wrapper generated during compilation is not present when
the function is called.
|
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.
Last updated 2020-10-01 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 2020-10-01 UTC."],[],[]]