img_flat_transforms_to_matrices: Flat transforms to matrices

Description Usage Arguments Details Value Raises

View source: R/image_ops_.R

Description

Converts projective transforms to affine matrices.

Usage

1

Arguments

transforms

Vector of length 8, or batches of transforms with shape '(N, 8)'.

name

The name for the op.

Details

Note that the output matrices map output coordinates to input coordinates. For the forward transformation matrix, call 'tf$linalg$inv' on the result.

Value

3D tensor of matrices with shape '(N, 3, 3)'. The output matrices map the *output coordinates* (in homogeneous coordinates) of each transform to the corresponding *input coordinates*.

Raises

ValueError: If 'transforms' have an invalid shape.


tfaddons documentation built on July 2, 2020, 2:12 a.m.