[][src]Function photon::noise::add_noise_rand

pub fn add_noise_rand(photon_image: PhotonImage) -> PhotonImage

Add randomized noise to an image. This function adds a Gaussian Noise Sample to each pixel through incrementing each channel by a randomized offset. This randomized offset is generated by creating a randomized thread pool. [WASM SUPPORT NOT AVAILABLE]: Randomized thread pools cannot be created with WASM using the code used currently, but a workaround is oncoming.

Arguments

Example

// For example:
use photon::noise;
photon::noise::add_noise_rand(img);