Laplacian

cvcuda.laplacian(src: nvcv.Tensor, ksize: int, scale: float, stream: nvcv.cuda.Stream | None = None) nvcv.Tensor

Executes the Laplacian operation on the given cuda stream.

See also

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

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

  • ksize (int) – Aperture size used to compute the second-derivative filters, it can be 1 or 3.

  • scale (float) – Scale factor for the Laplacian values (use 1 for no scale).

  • 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.laplacian(src: nvcv.ImageBatchVarShape, ksize: nvcv.Tensor, scale: nvcv.Tensor, stream: Optional[nvcv.cuda.Stream] = None) -> nvcv.ImageBatchVarShape

Executes the Laplacian operation on the given cuda stream.

See also

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

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

  • ksize (nvcv.Tensor) – Aperture size used to compute the second-derivative filters, it can be 1 or 3 for each image.

  • scale (nvcv.Tensor) – Scale factor for the Laplacian values (use 1 for no scale) for each 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.laplacian_into(dst: nvcv.Tensor, src: nvcv.Tensor, ksize: int, scale: float, stream: nvcv.cuda.Stream | None = None)

Executes the Laplacian operation on the given cuda stream.

See also

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

  • ksize (int) – Aperture size used to compute the second-derivative filters, it can be 1 or 3.

  • scale (float) – Scale factor for the Laplacian values (use 1 for no scale).

  • 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.laplacian_into(dst: nvcv.ImageBatchVarShape, src: nvcv.ImageBatchVarShape, ksize: nvcv.Tensor, scale: nvcv.Tensor, stream: Optional[nvcv.cuda.Stream] = None)

Executes the Laplacian operation on the given cuda stream.

See also

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

  • ksize (nvcv.Tensor) – Aperture size used to compute the second-derivative filters, it can be 1 or 3 for each image.

  • scale (nvcv.Tensor) – Scale factor for the Laplacian values (use 1 for no scale) for each 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.