BilateralFilter

cvcuda.bilateral_filter(src: nvcv.Tensor, diameter: int, sigma_color: float, sigma_space: float, border: cvcuda.Border = cvcuda.Border.CONSTANT, stream: nvcv.cuda.Stream | None = None) nvcv.Tensor

Executes the Bilateral Filter operation on the given cuda stream.

See also

Refer to the CV-CUDA C API reference for the Bilateral Filter operator for more details and usage examples.

Parameters:
  • src (nvcv.Tensor) – Input tensor containing one or more images.

  • diameter (int) – Bilateral filter diameter.

  • sigma_color (float) – Gaussian exponent for color difference.

  • sigma_space (float) – Gaussian exponent for position difference.

  • border (cvcuda.Border, optional) – Border mode to be used when accessing elements outside input image.

  • stream (nvcv.cuda.Stream, optional) – CUDA Stream on which to perform the operation.

Returns:

The output tensor.

Return type:

nvcv.Tensor

Caution

Restrictions to several arguments may apply. Check the C API references of the CV-CUDA operator.

cvcuda.bilateral_filter(src: nvcv.ImageBatchVarShape, diameter: nvcv.Tensor, sigma_color: nvcv.Tensor, sigma_space: nvcv.Tensor, border: cvcuda.Border = cvcuda.Border.CONSTANT, stream: Optional[nvcv.cuda.Stream] = None) -> nvcv.ImageBatchVarShape

Executes the Bilateral Filter operation on the given cuda stream.

See also

Refer to the CV-CUDA C API reference for the Bilateral Filter operator for more details and usage examples.

Parameters:
  • src (nvcv.ImageBatchVarShape) – Input tensor containing one or more images.

  • diameter (nvcv.Tensor) – Bilateral filter diameters in each image.

  • sigma_color (nvcv.Tensor) – Gaussian exponents for color difference in each image.

  • sigma_space (nvcv.Tensor) – Gaussian exponents for position difference in each image.

  • border (cvcuda.Border, optional) – Border mode to be used when accessing elements outside input image.

  • stream (nvcv.cuda.Stream, optional) – CUDA Stream on which to perform the operation.

Returns:

The output image batch.

Return type:

nvcv.ImageBatchVarShape

Caution

Restrictions to several arguments may apply. Check the C API references of the CV-CUDA operator.

cvcuda.bilateral_filter_into(dst: nvcv.Tensor, src: nvcv.Tensor, diameter: int, sigma_color: float, sigma_space: float, border: cvcuda.Border = cvcuda.Border.CONSTANT, stream: nvcv.cuda.Stream | None = None)

Executes the Bilateral Filter operation on the given cuda stream.

See also

Refer to the CV-CUDA C API reference for the Bilateral Filter operator for more details and usage examples.

Parameters:
  • dst (nvcv.Tensor) – Output tensor to store the result of the operation.

  • src (nvcv.Tensor) – Input tensor containing one or more images.

  • diameter (int) – Bilateral filter diameter.

  • sigma_color (float) – Gaussian exponent for color difference.

  • sigma_space (float) – Gaussian exponent for position difference.

  • border (cvcuda.Border, optional) – Border mode to be used when accessing elements outside input image.

  • stream (nvcv.cuda.Stream, optional) – CUDA Stream on which to perform the operation.

Returns:

None

Caution

Restrictions to several arguments may apply. Check the C API references of the CV-CUDA operator.

cvcuda.bilateral_filter_into(dst: nvcv.ImageBatchVarShape, src: nvcv.ImageBatchVarShape, diameter: nvcv.Tensor, sigma_color: nvcv.Tensor, sigma_space: nvcv.Tensor, border: cvcuda.Border = cvcuda.Border.CONSTANT, stream: Optional[nvcv.cuda.Stream] = None)

Executes the Bilateral Filter operation on the given cuda stream.

See also

Refer to the CV-CUDA C API reference for the Bilateral Filter operator for more details and usage examples.

Parameters:
  • dst (nvcv.ImageBatchVarShape) – Output image batch containing the result of the operation.

  • src (nvcv.ImageBatchVarShape) – Input image batch containing one or more images.

  • diameter (nvcv.Tensor) – Bilateral filter diameters in each image.

  • sigma_color (nvcv.Tensor) – Gaussian exponents for color difference in each image.

  • sigma_space (nvcv.Tensor) – Gaussian exponents for position difference in each image.

  • border (cvcuda.Border, optional) – Border mode to be used when accessing elements outside input image.

  • stream (nvcv.cuda.Stream, optional) – CUDA Stream on which to perform the operation.

Returns:

None

Caution

Restrictions to several arguments may apply. Check the C API references of the CV-CUDA operator.