GammaContrast

cvcuda.gamma_contrast(src: nvcv.ImageBatchVarShape, gamma: nvcv.Tensor, *, stream: nvcv.cuda.Stream | None = None) nvcv.ImageBatchVarShape

Executes the Gamma Contrast operation on the given cuda stream.

See also

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

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

  • gamma (nvcv.Tensor) – 1D Tensor with the the gamma value for each image / image channel.

  • 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.gamma_contrast_into(dst: nvcv.ImageBatchVarShape, src: nvcv.ImageBatchVarShape, gamma: nvcv.Tensor, *, stream: nvcv.cuda.Stream | None = None) nvcv.ImageBatchVarShape

Executes the Gamma Contrast operation on the given cuda stream.

See also

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

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

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

  • gamma (nvcv.Tensor) – 1D Tensor with the the gamma value for each image / image channel.

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