Realm

oa::image::noise_like

Generate deterministic Philox noise matching input’s shape and layout. The same (seed, distribution, amplitude) triple always produces the same noise tensor. The result carries input’s layout and format so it can be mixed back into the image or an augmentation chain. Errors Returns an error when amplitude is negative or non-finite, or noise generation/allocation fails.

FnRust public API

Function Documentation

pub fn noise_like( input: &Image, distribution: NoiseDistribution, amplitude: f32, seed: u64 ) -> Result<Image>
Generate deterministic Philox noise matching input’s shape and layout. The same (seed, distribution, amplitude) triple always produces the same noise tensor. The result carries input’s layout and format so it can be mixed back into the image or an augmentation chain. Errors Returns an error when amplitude is negative or non-finite, or noise generation/allocation fails.