Film Grain¶
Applies film grain effect to the initial image.
- int filmGrain(InputArray src, OutputArray dst, int grainValue, RNG& rng)¶
Parameters: - src – Grayscale or RGB image.
- dst – Destination image of the same size and the same type as src.
- grainValue – Degree of graininess. 8 is default value.
- rng – Random number generator. cv::theRNG() is default value.
Returns: Error code.
The algorithm.
- Create matrix with noise.
- Add noise to image.
Example.

