Function arrayfire::transform_coords [] [src]

pub fn transform_coords(tf: &Array, d0: f32, d1: f32) -> Array

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.

Parameters

  • tf is the transformation matrix
  • d0 is the first input dimension
  • d1 is the second input dimension

Return Values

Transformed coordinates