pub struct HqParams {
pub auto_strength: bool,
pub noise_floor: bool,
pub sigma_override: Option<f32>,
pub temporal_confidence: bool,
pub thsad_scale: f32,
pub sigma_scale: f32,
}Expand description
Parameters for the quality-focused nlmeans-hq variant. The noise
level drives both the effective strength and the distance floor,
so weighting adapts to how noisy the source actually is.
Fields§
§auto_strength: boolInterpret strength as a multiplier on the noise level. The
effective FFmpeg-style strength becomes
strength × sigma_eff × 255. Default: true.
noise_floor: boolSubtract the expected noise floor from patch distances before weighting, so matches are not penalised for the noise they carry. Default: true.
sigma_override: Option<f32>Fixed noise standard deviation in [0, 1] units, overriding
automatic per-frame estimation. None (the default) measures
noise from each pushed frame and smooths it over time. Some
applies one fixed value to every frame instead. The CLI takes
this in 8-bit units via --hq-sigma and divides by 255.
temporal_confidence: boolWeight temporal neighbours by how well they block-match the
centre frame, so occlusion or content change collapses their
contribution instead of blurring it in. Only takes effect when
temporal_radius > 0. Default: true.
thsad_scale: f32Multiplier on the per-pixel mismatch threshold that decides how much excess SAD a block tolerates before its confidence starts dropping. Higher values tolerate larger mismatches. Default: 1.0.
sigma_scale: f32Multiplier applied to each channel’s automatically measured
sigma before it folds into the running estimate. 1.0 keeps
the measurement as-is. Has no effect when sigma_override is
set, since the estimation path never runs in that case.
Default: 1.0. The CLI takes this as --hq-sigma-scale.