1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//! Remote photoplethysmography (rPPG) core for the Elata SDK.
//!
//! This crate contains the Rust-side processing pipeline used to estimate
//! pulse-related metrics from RGB intensity samples captured over time.
//!
//! # Main entry points
//!
//! - [`RppgPipeline`] buffers timestamped samples and computes windowed metrics
//! - [`harmonic_probability_check`] provides harmonic validation helpers
//! - [`SubjectModel`] and [`ParticleFilter`] expose supporting estimation tools
//!
//! # Example
//!
//! ```rust
//! use elata_rppg::RppgPipeline;
//!
//! let mut pipeline = RppgPipeline::new(30.0, 8.0);
//!
//! for i in 0..300 {
//! let t_ms = i * 33;
//! pipeline.push_sample_rgb(t_ms, 0.52, 0.61, 0.47, 0.95);
//! }
//!
//! let metrics = pipeline.get_metrics();
//! let _ = metrics.bpm;
//! ```
//!
//! This crate is intended to be embedded by higher-level WASM, FFI, or native
//! application layers rather than used as an end-user camera capture API.
pub use ;
pub use RppgPipeline;
pub use SubjectModel;
pub use ParticleFilter;