img_interpolate_bilinear: Interpolate bilinear

img_interpolate_bilinearR Documentation

Interpolate bilinear

Description

Similar to Matlab's interp2 function.

Usage

img_interpolate_bilinear(grid, query_points, indexing = "ij", name = NULL)

Arguments

grid

a 4-D float Tensor of shape [batch, height, width, channels].

query_points

a 3-D float Tensor of N points with shape [batch, N, 2].

indexing

whether the query points are specified as row and column (ij), or Cartesian coordinates (xy).

name

a name for the operation (optional).

Details

Finds values for query points on a grid using bilinear interpolation.

Value

values: a 3-D 'Tensor' with shape '[batch, N, channels]'

Raises

ValueError: if the indexing mode is invalid, or if the shape of the inputs invalid.


henry090/tfaddons documentation built on April 7, 2022, 11:27 p.m.