img_matrices_to_flat_transforms: Matrices to flat transforms

Description Usage Arguments Details Value Raises

View source: R/image_ops_.R

Description

Converts affine matrices to projective transforms.

Usage

1
img_matrices_to_flat_transforms(transform_matrices, name = NULL)

Arguments

transform_matrices

One or more affine transformation matrices, for the reverse transformation in homogeneous coordinates. Shape 'c(3, 3)' or 'c(N, 3, 3)'.

name

The name for the op.

Details

Note that we expect matrices that map output coordinates to input coordinates. To convert forward transformation matrices, call 'tf$linalg$inv' on the matrices and use the result here.

Value

2D tensor of flat transforms with shape '(N, 8)', which may be passed into 'transform' op.

Raises

ValueError: If 'transform_matrices' have an invalid shape.


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