Inpaint

cvcuda.inpaint(src: nvcv.Tensor, masks: Tensor, inpaintRadius: float, stream: nvcv.cuda.Stream | None = None) nvcv.Tensor

Executes the Inpaint operation on the given cuda stream.

See also

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

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

  • masks (nvcv.Tensor) – Mask tensor, 8-bit 1-channel images. Non-zero pixels indicate the area that needs to be inpainted.

  • inpaintRadius (float) – Radius of a circular neighborhood of each point inpainted that is considered by the algorithm.

  • 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.inpaint(src: nvcv.ImageBatchVarShape, masks:ImageBatchVarShape, inpaintRadius: float, stream: Optional[nvcv.cuda.Stream] = None) -> nvcv.ImageBatchVarShape

Executes the Inpaint operation on the given cuda stream.

See also

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

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

  • masks (nvcv.ImageBatchVarShape) – Mask image batch, 8-bit 1-channel images. Non-zero pixels indicate the area that needs to be inpainted.

  • inpaintRadius (float) – Radius of a circular neighborhood of each point inpainted that is considered by the algorithm.

  • 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.inpaint_into(dst: nvcv.Tensor, src: nvcv.Tensor, masks: Tensor, inpaintRadius: float, stream: nvcv.cuda.Stream | None = None)

Executes the Inpaint operation on the given cuda stream.

See also

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

  • masks (nvcv.Tensor) – Mask tensor, 8-bit 1-channel images. Non-zero pixels indicate the area that needs to be inpainted.

  • inpaintRadius (float) – Radius of a circular neighborhood of each point inpainted that is considered by the algorithm.

  • 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.inpaint_into(dst: nvcv.ImageBatchVarShape, src: nvcv.ImageBatchVarShape, masks:ImageBatchVarShape, inpaintRadius: float, stream: Optional[nvcv.cuda.Stream] = None)

Executes the Inpaint operation on the given cuda stream.

See also

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

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

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

  • masks (nvcv.ImageBatchVarShape) – Mask image batch, 8-bit 1-channel images. Non-zero pixels indicate the area that needs to be inpainted.

  • inpaintRadius (float) – Radius of a circular neighborhood of each point inpainted that is considered by the algorithm.

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