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