Back to Aurora Vision Library Lite website

You are here: Start » Image » Image Point Transforms » AddNoiseToImage

AddNoiseToImage


Header: AVL.h
Namespace: avl

Adds random noise to the image.

Syntax

void avl::AddNoiseToImage
(
	RandomState& ioState,
	const avl::Image& inImage,
	const float inMinValue,
	const float inMaxValue,
	const float inNoiseStrength,
	const bool inColorNoise,
	atl::Optional<int> inSeed,
	avl::Image& outImage
)

Parameters

Name Type Range Default Description
Input will be modified ioState RandomState& Object used to maintain state of the function.
Input value inImage const Image& Input image
Input value inMinValue const float 0.0f Minimum value of noise pixel, inclusive
Input value inMaxValue const float 256.0f Maximum value of noise pixel, exclusive
Input value inNoiseStrength const float 0.0 - 1.0 0.5f Noise strength
Input value inColorNoise const bool If 'True', noise will be generated separately for each channel
Input value inSeed Optional<int> NIL Random seed used to generate noise
Output value outImage Image& Output image