Skip to main content

Module temporal_bandpass

Module temporal_bandpass 

Source
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§

BandpassIir
Band-pass as high_lp − low_lp (Wu-style IIR band).
LowpassAlpha
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 below f_lo / above f_hi are attenuated.