PillowResize

cvcuda.pillowresize(src: nvcv.Tensor, shape: Shape, format: ImageFormat, interp: Interp = cvcuda.Interp.LINEAR, stream: nvcv.cuda.Stream | None = None) nvcv.Tensor

Executes the Pillow Resize operation on the given cuda stream.

See also

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

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

  • shape (tuple) – Shape of the output image.

  • format (nvcv.Format) – Format of the input and output images.

  • interp (cvcuda.Interp, optional) – Interpolation type used for transform.

  • 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.pillowresize(src: nvcv.ImageBatchVarShape, shape: Tuple[int], format: nvcv.Format, interp: Interp = cvcuda.Interp.LINEAR, stream: Optional[nvcv.cuda.Stream] = None) ->ImageBatchVarShape

Executes the Pillow Resize operation on the given cuda stream.

See also

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

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

  • sizes (Tuple[int]) – Shapes of output images.

  • interp (cvcuda.Interp, optional) – Interpolation type used for transform.

  • 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.pillowresize_into(dst: nvcv.Tensor, src: nvcv.Tensor, shape: Tuple[int], format: nvcv.Format, interp: Interp = cvcuda.Interp.LINEAR, stream: nvcv.cuda.Stream | None = None)

Executes the Pillow Resize operation on the given cuda stream.

See also

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

  • shape (tuple) – Shape of the output image.

  • format (nvcv.Format) – Format of the input and output images.

  • interp (cvcuda.Interp, optional) – Interpolation type used for transform.

  • 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.pillowresize(dst: nvcv.ImageBatchVarShape, src: nvcv.ImageBatchVarShape, shape: Tuple[int], format: nvcv.Format, interp: cvcuda.Interp = cvcuda.Interp.LINEAR, stream: Optional[nvcv.cuda.Stream] = None)

Executes the Pillow Resize operation on the given cuda stream.

See also

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

  • interp (cvcuda.Interp, optional) – Interpolation type used for transform.

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