JointBilateralFilter

cvcuda.joint_bilateral_filter(src: nvcv.Tensor, srcColor: 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 Joint Bilateral Filter operation on the given cuda stream.

See also

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

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

  • srcColor (nvcv.Tensor) – Input tensor for color distance.

  • 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 for input tensor.

  • 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.joint_bilateral_filter(src: nvcv.ImageBatchVarShape, srcColor:ImageBatchVarShape,*, diameter: int, sigma_color: float, sigma_space: float, border: cvcuda.Border = cvcuda.Border.CONSTANT, stream: Optional[nvcv.cuda.Stream] = None) -> nvcv.ImageBatchVarShape

Executes the Joint Bilateral operation on the given cuda stream.

See also

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

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

  • srcColor (nvcv.ImageBatchVarShape) – Input images for color distance.

  • diameter (nvcv.Tensor) – Bilateral filter diameter per image.

  • sigma_color (nvcv.Tensor) – Gaussian exponent for color difference per image.

  • sigma_space (nvcv.Tensor) – Gaussian exponent for position difference per image.

  • border (cvcuda.Border, optional) – Border mode for input tensor.

  • 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.joint_bilateral_filter_into(dst: nvcv.Tensor, src: nvcv.Tensor, srcColor: Tensor, diameter: int, sigma_color: float, sigma_space: float, border: cvcuda.Border = cvcuda.Border.CONSTANT, stream: nvcv.cuda.Stream | None = None)

Executes the Joint Bilateral Filter operation on the given cuda stream.

See also

Refer to the CV-CUDA C API reference for the Joint 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.

  • srcColor (nvcv.Tensor) – Input tensor for color distance.

  • 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 for input tensor.

  • 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.joint_bilateral_filter_into(dst: nvcv.ImageBatchVarShape, src: nvcv.ImageBatchVarShape, srcColor:ImageBatchVarShape,*, diameter: int, sigma_color: float, sigma_space: float, border: border (cvcuda.Border, optional): Border mode for input tensor. = <cvcuda.Border.CONSTANT >, stream: Optional[nvcv.cuda.Stream] = None)

Executes the Joint Bilateral operation on the given cuda stream.

See also

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

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

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

  • diameter (nvcv.Tensor) – Bilateral filter diameter per image.

  • sigma_color (nvcv.Tensor) – Gaussian exponent for color difference per image.

  • sigma_space (nvcv.Tensor) – Gaussian exponent for position difference per image.

  • border (cvcuda.Border, optional) – Border mode for input tensor.

  • 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.