Expand description
Temporal band-pass (difference of two 1st-order IIR low-pass filters).
Explicit fps, f_lo_hz, f_hi_hz (e.g. 0.7–4 Hz for resting HR band).
Zero heap: state is either stack (scalar series) or caller-supplied per-sample state.
Structs§
- Bandpass
Iir - Band-pass as high_lp − low_lp (Wu-style IIR band).
- Lowpass
Alpha - Coefficients for a first-order low-pass: y += α (x − y).
Functions§
- bandpass_
step - One sample step for a multi-pixel path. Caller holds
state_lo/state_hi. - design_
bandpass_ iir - Design IIR band-pass from sample rate and cut-offs.
- temporal_
bandpass_ planes - Band-pass every temporal series along frame axis for a packed buffer.
- temporal_
bandpass_ series - Filter a scalar series:
out[i] = lp_hi[i] − lp_lo[i]. DC and frequencies belowf_lo/ abovef_hiare attenuated.