pub fn respiration_from_rppg_harmonic(
rppg_trace: &[f32],
fps: f32,
min_snr: Option<f32>,
) -> Result<RrEstimate, CvError>Expand description
Estimate respiratory rate from an rPPG (or raw green/pulse) trace by peaking in the respiratory band only.
rppg_trace— pulse proxy (POS/CHROM/green), one sample per frame.fps— sample rate.min_snr— SNR gate;None→RR_MIN_SNR_DEFAULT.