GaussianNoise
- cvcuda.gaussiannoise(src: nvcv.Tensor, mu: nvcv.Tensor, sigma: nvcv.Tensor, per_channel: bool, seed: int, stream: nvcv.cuda.Stream | None = None) nvcv.Tensor
Executes the GaussianNoise operation on the given cuda stream.
See also
Refer to the CV-CUDA C API reference for the GaussianNoise operator for more details and usage examples.
- Parameters:
src (nvcv.Tensor) – Input image batch containing one or more images.
mu (nvcv.Tensor) – An array of size batch that gives the mu value of each image.
sigma (nvcv.Tensor) – An array of size batch that gives the sigma value of each image.
per_channel (bool) – Whether to add the same noise for all channels.
seed (int) – Seed for random numbers.
stream (nvcv.cuda.Stream, optional) – CUDA Stream on which to perform the operation.
- Returns:
The output image batch.
- Return type:
nvcv.Tensor
Caution
Restrictions to several arguments may apply. Check the C API references of the CV-CUDA operator.
cvcuda.gaussiannoise(src: nvcv.ImageBatchVarShape, mu: nvcv.Tensor, sigma: nvcv.Tensor, per_channel: bool, seed: int, stream: Optional[nvcv.cuda.Stream] = None) -> nvcv.ImageBatchVarShape
Executes the GaussianNoise operation on the given cuda stream.
See also
Refer to the CV-CUDA C API reference for the GaussianNoise operator for more details and usage examples.
- Parameters:
src (ImageBatchVarShape) – Input image batch containing one or more images.
mu (nvcv.Tensor) – An array of size batch that gives the mu value of each image.
sigma (nvcv.Tensor) – An array of size batch that gives the sigma value of each image.
per_channel (bool) – Whether to add the same noise for all channels.
seed (int) – Seed for random numbers.
stream (nvcv.cuda.Stream, optional) – CUDA Stream on which to perform the operation.
- Returns:
The output image batch.
- Return type:
cvcuda.ImageBatchVarShape
Caution
Restrictions to several arguments may apply. Check the C API references of the CV-CUDA operator.
- cvcuda.gaussiannoise_into(dst: nvcv.Tensor, src: nvcv.Tensor, mu: nvcv.Tensor, sigma: nvcv.Tensor, per_channel: bool, seed: int, stream: nvcv.cuda.Stream | None = None)
Executes the GaussianNoise operation on the given cuda stream.
See also
Refer to the CV-CUDA C API reference for the GaussianNoise operator for more details and usage examples.
- Parameters:
dst (nvcv.Tensor) – Output image batch containing the result of the operation.
src (nvcv.Tensor) – Input image batch containing one or more images.
mu (nvcv.Tensor) – An array of size batch that gives the mu value of each image.
sigma (nvcv.Tensor) – An array of size batch that gives the sigma value of each image.
per_channel (bool) – Whether to add the same noise for all channels.
seed (int) – Seed for random numbers.
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.gaussiannoise_into(dst: nvcv.ImageBatchVarShape, src: nvcv.ImageBatchVarShape, mu: nvcv.Tensor, sigma: nvcv.Tensor, per_channel: bool, seed: int, stream: Optional[nvcv.cuda.Stream] = None)
Executes the GaussianNoise operation on the given cuda stream.
See also
Refer to the CV-CUDA C API reference for the GaussianNoise operator for more details and usage examples.
- Parameters:
dst (ImageBatchVarShape) – Output image batch containing the result of the operation.
src (ImageBatchVarShape) – Input image batch containing one or more images.
mu (nvcv.Tensor) – An array of size batch that gives the mu value of each image.
sigma (nvcv.Tensor) – An array of size batch that gives the sigma value of each image.
per_channel (bool) – Whether to add the same noise for all channels.
seed (int) – Seed for random numbers.
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.