nvidia.dali.fn.water#

nvidia.dali.fn.water(__input, /, *, ampl_x=10.0, ampl_y=10.0, bytes_per_sample_hint=[0], fill_value=0.0, freq_x=0.049087, freq_y=0.049087, interp_type=DALIInterpType.INTERP_NN, mask=1, phase_x=0.0, phase_y=0.0, preserve=False, device=None, name=None)#

执行水波增强,使图像看起来像在水下。

支持的后端
  • ‘cpu’

  • ‘gpu’

参数:

__input (TensorList ('HWC')) – 操作符的输入。

关键字参数:
  • ampl_x (float, optional, default = 10.0) – x 方向波的振幅。

  • ampl_y (float, optional, default = 10.0) – y 方向波的振幅。

  • bytes_per_sample_hint (int or list of int, optional, default = [0]) –

    输出大小提示,以每样本字节数计。

    如果指定,操作符位于 GPU 或页锁定主机内存中的输出将预先分配,以适应此大小的样本批次。

  • fill_value (float, optional, default = 0.0) – 用于填充的颜色值。

  • freq_x (float, optional, default = 0.049087) – x 方向波的频率。

  • freq_y (float, optional, default = 0.049087) – y 方向波的频率。

  • interp_type (nvidia.dali.types.DALIInterpType, optional, default = DALIInterpType.INTERP_NN) – 使用的插值类型。

  • mask (int or TensorList of int, optional, default = 1) –

    确定是否将此增强应用于输入图像。

    以下是值

    • 0:不应用此变换。

    • 1:应用此变换。

  • phase_x (float, optional, default = 0.0) – x 方向波的相位。

  • phase_y (float, optional, default = 0.0) – y 方向波的相位。

  • preserve (bool, optional, default = False) – 即使操作符的输出未使用,也防止将其从图中移除。

另请参阅