Back to Adaptive Vision Library website

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

AddNoiseToImage


Adds random noise to the image

Syntax

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