pub struct DenoiserOptions {
pub channel_mode: ChannelMode,
pub mode: DenoisingMode,
pub algorithm: Algorithm,
pub prefilter: Option<PrefilterMode>,
pub motion_compensation: MotionCompensationMode,
pub nlm: Option<NlmTuning>,
}Expand description
User-facing denoiser configuration. Build with DenoiserOptions::builder().
Fields§
§channel_mode: ChannelModeWhich channels of the frame to denoise.
mode: DenoisingModeSpatial-only or temporal denoising.
algorithm: AlgorithmAlgorithm variant. Nlmeans is the fast default. NlmeansHq
adapts weighting to the noise level, measured automatically per
frame unless HqParams::sigma_override pins a fixed value. Its
default strength multiplier is also different, and adapts to
the temporal radius and the plane being denoised, see
[crate::nlmeans::hq_default_strength].
prefilter: Option<PrefilterMode>Reference clip source for NLM weight computation. None (the
default) uses no prefilter for either algorithm. Set
PrefilterMode::NlmSpatial explicitly to opt into the NLM
spatial pilot.
motion_compensation: MotionCompensationModeMotion-compensation mode for temporal denoising. None
disables MC; Mvtools warps temporal neighbours into spatial
alignment with the centre frame before NLM weighting. Only
takes effect when mode is Temporal { .. }.
nlm: Option<NlmTuning>Override NLM tuning (search/patch radius, strength, self-weight).
None uses the defaults baked into [NlmParams].
Implementations§
Source§impl DenoiserOptions
impl DenoiserOptions
Sourcepub fn builder() -> DenoiserOptionsBuilder
pub fn builder() -> DenoiserOptionsBuilder
Create an instance of DenoiserOptions using the builder syntax
Trait Implementations§
Source§impl Clone for DenoiserOptions
impl Clone for DenoiserOptions
Source§fn clone(&self) -> DenoiserOptions
fn clone(&self) -> DenoiserOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more