PadAndStack

cvcuda.padandstack(src: nvcv.ImageBatchVarShape, top: nvcv.Tensor, left: nvcv.Tensor, border: cvcuda.Border = <Border.CONSTANT: 0>, bvalue: float = 0, *, stream: Optional[nvcv.cuda.Stream] = None) nvcv.Tensor

Executes the Pad and Stack operation on the given cuda stream.

See also

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

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

  • top (nvcv.Tensor) – Top tensor to store amount of top padding per batch input image.

  • left (nvcv.Tensor) – Left tensor to store amount of left padding per batch input image.

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

  • bvalue (float) – Border value to be used for constant border mode.

  • 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.padandstack_into(dst: nvcv.Tensor, src: nvcv.ImageBatchVarShape, top: nvcv.Tensor, left: nvcv.Tensor, border: cvcuda.Border = <Border.CONSTANT: 0>, bvalue: float = 0, *, stream: Optional[nvcv.cuda.Stream] = None) nvcv.Tensor

Executes the Pad and Stack operation on the given cuda stream.

See also

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

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

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

  • top (nvcv.Tensor) – Top tensor to store amount of top padding per batch input image.

  • left (nvcv.Tensor) – Left tensor to store amount of left padding per batch input image.

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

  • bvalue (float) – Border value to be used for constant border mode.

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