26#include <opencv2/opencv.hpp>
107 int frameEnd,
int frameJump, std::vector<std::string>& out_frames);
126bool run(
const Config& config,
const std::vector<int>& trials = {});
cv::Mat extractViewFromFrame(const cv::Mat &frame, MaskHalf half)
Extract a single mirror view (full frame) from a decoded camera frame.
ViewPair resolveViewPair(int stereopair, const std::vector< int > &cam_order)
Resolve the two views that form a given mirrored stereopair.
bool importRawViewMirrored(const Config &config, int trial, const ViewInfo &view, int frameStart, int frameEnd, int frameJump, std::vector< std::string > &out_frames)
Decode a physical-camera video and write per-view masked frames to disk.
MaskHalf
Half-width mask region used to extract a single mirror view from a frame.
bool run(const Config &config, const std::vector< int > &trials={})
Run the mirrored-camera 2D DIC pipeline.
Logical view = (physical camera id, which half of that camera's frame).
int view_nbr
1..8 logical view index (MATLAB view_nbr)
int cam_nbr
physical camera id (from cam_order), used to find the video file
A mirrored stereopair: the two logical views to correlate against each other.
int stereopair
1-based stereopair index
ViewInfo view2
second view of the pair
ViewInfo view1
first view of the pair