27#ifndef SINGLEDIC_SINGLE_DIC_WORKFLOW_H
28#define SINGLEDIC_SINGLE_DIC_WORKFLOW_H
32#include <opencv2/opencv.hpp>
42 std::vector<double>
u;
43 std::vector<double>
v;
81 bool importFrames(std::vector<cv::Mat>& frames)
const;
85 std::vector<cv::Mat> saturate(
const std::vector<cv::Mat>& frames)
const;
88 std::vector<cv::Mat> maybeFilter(
const std::vector<cv::Mat>& frames,
89 const cv::Mat& roi_mask)
const;
92 cv::Mat loadOrCreateRoi(
const cv::Mat& reference)
const;
95 std::vector<int> loadOrCreateSeed(
const cv::Mat& roi_mask)
const;
100 bool track(
const std::vector<cv::Mat>& frames,
const cv::Mat& roi_mask,
Drives the single-camera 2D-DIC step-D pipeline for one trial.
SingleDicResult run()
Run the full pipeline: import, saturate, (filter), ROI/seed, (optional matching), single tracking pas...
Wraps a CPPxDIC Config and adds a single-camera sub-path scheme.
Single-camera (2D, no-stereo) configuration adapter for CPPxDIC.
One tracked frame's reduced-grid DIC result (Lagrangian, pixels).
int grid_height
Displacement grid height (reduced).
bool valid
True if the frame correlated successfully.
std::vector< double > corrcoef
Correlation coefficient, row-major.
int grid_width
Displacement grid width (reduced).
std::vector< double > u
U displacement (px), row-major, NaN outside ROI.
std::vector< double > v
V displacement (px), row-major.
Full single-trial output: one reference + N tracked frames.
std::vector< int > seed_pw
Seed point [x, y] in pixels.
std::string message
Human-readable status.
cv::Size image_size
Reference frame pixel size.
int subset_spacing
Spacing used (grid factor = spacing+1).
cv::Mat roi_mask
ROI used (CV_8U, non-zero = inside).
std::vector< FrameResult > frames
Per-frame DIC results (index 0 = ref vs frame 1...).