nvidia.dali.experimental.dynamic.coord_flip#

nvidia.dali.experimental.dynamic.coord_flip(input, /, *, batch_size=None, device=None, center_x=None, center_y=None, center_z=None, flip_x=None, flip_y=None, flip_z=None, layout=None)#

Transforms vectors or points by flipping (reflecting) their coordinates with respect to a given center.

Supported backends
  • ‘cpu’

  • ‘gpu’

Parameters:

input (Tensor/Batch) – Input to the operator.

Keyword Arguments:
  • center_x (float or Tensor/Batch of float, optional, default = 0.5) – Flip center in the horizontal axis.

  • center_y (float or Tensor/Batch of float, optional, default = 0.5) – Flip center in the vertical axis.

  • center_z (float or Tensor/Batch of float, optional, default = 0.5) – Flip center in the depthwise axis.

  • flip_x (int or Tensor/Batch of int, optional, default = 1) – Flip the horizontal (x) coordinate.

  • flip_y (int or Tensor/Batch of int, optional, default = 0) – Flip the vertical (y) coordinate.

  • flip_z (int or Tensor/Batch of int, optional, default = 0) – Flip the depthwise (z) coordinate.

  • layout (layout str, optional, default = ‘’) –

    Determines the order of coordinates in the input.

    The string should consist of the following characters:

    • ”x” (horizontal coordinate),

    • ”y” (vertical coordinate),

    • ”z” (depthwise coordinate),

    Note

    If left empty, depending on the number of dimensions, the “x”, “xy”, or “xyz” values are assumed.