Transform input coordinates. More...

Functions

AFAPI array transformCoordinates (const array &tf, const float d0, const float d1)
 C++ Interface for transforming coordinates. More...
 
AFAPI af_err af_transform_coordinates (af_array *out, const af_array tf, const float d0, const float d1)
 C Interface for transforming an image C++ Interface for transforming coordinates. More...
 

Detailed Description

Transform input coordinates.

The transform function uses a perspective transform matrix to transform input coordinates (given as two dimensions) into a coordinates matrix.

The output is a 4x2 matrix, indicating the coordinates of the 4 bidimensional transformed points.


Function Documentation

◆ af_transform_coordinates()

AFAPI af_err af_transform_coordinates ( af_array out,
const af_array  tf,
const float  d0,
const float  d1 
)

C Interface for transforming an image C++ Interface for transforming coordinates.

Parameters
[out]outthe transformed coordinates
[in]tfis transformation matrix
[in]d0is the first input dimension
[in]d1is the second input dimension

◆ transformCoordinates()

AFAPI array af::transformCoordinates ( const array tf,
const float  d0,
const float  d1 
)

C++ Interface for transforming coordinates.

Parameters
[in]tfis transformation matrix
[in]d0is the first input dimension
[in]d1is the second input dimension
Returns
the transformed coordinates