Back to Adaptive Vision Library Lite website

You are here: Start » Image Point Transforms » AddNoiseToImage


Header: AVL.h
Namespace: avl

Adds random noise to the image


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


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