Skip to main content

ensemble_respiration

Function ensemble_respiration 

Source
pub fn ensemble_respiration(
    motion: Option<RrEstimate>,
    rppg_harmonic: Option<RrEstimate>,
    min_confidence: f32,
) -> Result<RrEstimate, CvError>
Expand description

Combine optional motion and rPPG-harmonic RR estimates.

  • At least one Some required; both preferred.
  • min_confidence — fail closed if fused confidence is below this (e.g. 0.15).