nvidia.dali.experimental.dynamic.water#

nvidia.dali.experimental.dynamic.water(input, /, *, batch_size=None, device=None, ampl_x=None, ampl_y=None, fill_value=None, freq_x=None, freq_y=None, interp_type=None, mask=None, phase_x=None, phase_y=None)#

Performs a water augmentation, which makes the image appear to be underwater.

Supported backends
  • ‘cpu’

  • ‘gpu’

Parameters:

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

Keyword Arguments:
  • ampl_x (float, optional, default = 10.0) – Amplitude of the wave in the x direction.

  • ampl_y (float, optional, default = 10.0) – Amplitude of the wave in the y direction.

  • fill_value (float, optional, default = 0.0) – Color value that is used for padding.

  • freq_x (float, optional, default = 0.049087) – Frequency of the wave in the x direction.

  • freq_y (float, optional, default = 0.049087) – Frequence of the wave in the y direction.

  • interp_type (nvidia.dali.types.DALIInterpType, optional, default = DALIInterpType.INTERP_NN) – Type of interpolation used.

  • mask (int or Tensor/Batch of int, optional, default = 1) –

    Determines whether to apply this augmentation to the input image.

    Here are the values:

    • 0: Do not apply this transformation.

    • 1: Apply this transformation.

  • phase_x (float, optional, default = 0.0) – Phase of the wave in the x direction.

  • phase_y (float, optional, default = 0.0) – Phase of the wave in the y direction.