SmartSpectra C++ SDK
Measure human vitals from video with SmartSpectra C++ SDK.
Loading...
Searching...
No Matches
presage::smartspectra::gui::OpenCvTracePlotter Class Reference

Public Member Functions

 OpenCvTracePlotter (int x, int y, int width, int height, int max_points=300)
void UpdateTraceWithSampleRange (const google::protobuf::RepeatedPtrField< physiology::Measurement > &new_values)
void UpdateTraceWithSample (const physiology::Measurement &new_value)
absl::Status Render (cv::Mat &image, const cv::Scalar &color=cv::Scalar(0, 255, 0))

Member Function Documentation

◆ UpdateTraceWithSample()

void presage::smartspectra::gui::OpenCvTracePlotter::UpdateTraceWithSample ( const physiology::Measurement & new_value)

Update the trace with a single sample, assuming the new sample follows existing samples in time

Parameters
new_valuethe new sample

◆ UpdateTraceWithSampleRange()

void presage::smartspectra::gui::OpenCvTracePlotter::UpdateTraceWithSampleRange ( const google::protobuf::RepeatedPtrField< physiology::Measurement > & new_values)

Update the trace with a range of samples. The range may have overlap with existing values, but must end at or after the last range that was added this way.

Parameters
new_valuesthe sample range with updated values.

The documentation for this class was generated from the following files: