CPPxDIC
C++ Digital Image Correlation library for fingertip 3D reconstruction
Loading...
Searching...
No Matches
single_dic_workflow.h File Reference

Single-camera 2D DIC step-D pipeline (no stereo, no 3D). More...

#include "singledic/singledic_config.h"
#include <opencv2/opencv.hpp>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

struct  singledic::FrameResult
 One tracked frame's reduced-grid DIC result (Lagrangian, pixels). More...
 
struct  singledic::SingleDicResult
 Full single-trial output: one reference + N tracked frames. More...
 
class  singledic::SingleDicWorkflow
 Drives the single-camera 2D-DIC step-D pipeline for one trial. More...
 

Namespaces

namespace  singledic
 

Detailed Description

Single-camera 2D DIC step-D pipeline (no stereo, no 3D).

This is the C++ analogue of Viktoriia's single-camera "sliding analysis" step D. Reference MATLAB files (read-only, under Tools/MultiDIC/lib_script/sliding_analysis/viktoriia_script_analysis/):

  • process_single_trial_ncorr.m — top-level single-trial driver this class mirrors (read video, saturate, ROI/seed, optional matching, single tracking pass).
  • draw_ref_roi_single_trial.m — ROI on the reference (here: load-or-full).
  • draw_ref_seed_single.m — seed on the reference (here: load-or-center).
  • ncorr_matching2ref_single.m — optional matching-to-reference-trial pass.

Contrast with the stereo step D (Tools/MultiDIC/main_script/stepD_2DDIC.m and the C++ cppxdic::StepDWorkflow): that runs matching-between-cameras + two tracking passes (cam1, cam2) feeding stepE/stepF 3D reconstruction. The single-camera flow keeps only ONE tracking pass and stops there.

Reuse: this class deliberately leans on the existing CPPxDIC building blocks (cppxdic::ImageProcessor, cppxdic::ROIManager, Utils) and drives the DIC engine through CppNCorr's in-memory ncorr::NcorrSession, so it needs no temp PNG round-trip and no stereo-specific code.

Definition in file single_dic_workflow.h.