81 std::optional<std::size_t> frame_idx, uint32_t width,
96 std::optional<std::size_t> frame_idx = std::nullopt,
108 std::span<const real_t> values)
noexcept;
Floating point precision type definitions for Correlation.
High-performance 2D software renderer for distribution mini-charts.
Definition MiniPlotRenderer.hpp:64
static constexpr uint32_t K_DEFAULT_WIDTH
Default canvas width (px).
Definition MiniPlotRenderer.hpp:67
static PeakInfo findPeak(std::span< const real_t > bins, std::span< const real_t > values) noexcept
Finds the primary local maximum peak in a 1D curve.
Definition MiniPlotRenderer.cpp:213
static constexpr uint32_t K_DEFAULT_HEIGHT
Default canvas height (px).
Definition MiniPlotRenderer.hpp:69
static PlotImageBuffer render(const analysis::MetricCurveData &metric_data, std::optional< std::size_t > frame_idx, uint32_t width, uint32_t height)
Renders a 2D mini distribution plot into an RGBA pixel buffer with default configuration.
Definition MiniPlotRenderer.hpp:80
Definition Camera3D.hpp:14
double real_t
Definition Precision.hpp:18
Holds 1D curve data for a specific distribution across an entire trajectory.
Definition PerFrameDistributionStore.hpp:34
Configuration parameters for MiniPlot rendering.
Definition MiniPlotRenderer.hpp:50
bool y_log_scale
Logarithmic (log10) scale on Y.
Definition MiniPlotRenderer.hpp:55
std::optional< real_t > manual_x_min
Optional lower X limit.
Definition MiniPlotRenderer.hpp:51
std::optional< real_t > manual_y_min
Optional lower Y limit.
Definition MiniPlotRenderer.hpp:53
std::optional< real_t > manual_x_max
Optional upper X limit.
Definition MiniPlotRenderer.hpp:52
std::optional< real_t > manual_y_max
Optional upper Y limit.
Definition MiniPlotRenderer.hpp:54
Detected peak position on a 1D distribution profile.
Definition MiniPlotRenderer.hpp:41
real_t y
Amplitude of peak.
Definition MiniPlotRenderer.hpp:43
real_t x
X-axis coordinate of peak.
Definition MiniPlotRenderer.hpp:42
bool valid
True if a valid local maximum was found.
Definition MiniPlotRenderer.hpp:44
Raw RGBA pixel buffer generated by MiniPlotRenderer.
Definition MiniPlotRenderer.hpp:32
std::vector< RgbaPixel > pixels
Pixel array (size = width * height).
Definition MiniPlotRenderer.hpp:35
uint32_t width
Buffer width in pixels.
Definition MiniPlotRenderer.hpp:33
uint32_t height
Buffer height in pixels.
Definition MiniPlotRenderer.hpp:34
Standard 32-bit RGBA pixel representation.
Definition MiniPlotRenderer.hpp:22
uint8_t b
Blue channel (0-255).
Definition MiniPlotRenderer.hpp:25
uint8_t a
Alpha channel (0-255).
Definition MiniPlotRenderer.hpp:26
uint8_t g
Green channel (0-255).
Definition MiniPlotRenderer.hpp:24
uint8_t r
Red channel (0-255).
Definition MiniPlotRenderer.hpp:23