CPPxDIC
C++ Digital Image Correlation library for fingertip 3D reconstruction
Loading...
Searching...
No Matches
trial_selection.h File Reference
#include <cctype>
#include <cstdlib>
#include <fstream>
#include <sstream>
#include <stdexcept>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

struct  cppxdic::SubjectTrial
 A single (subject, trial) row, e.g. More...
 

Namespaces

namespace  cppxdic
 DataSerializer - Abstract base class for format-agnostic DIC data I/O.
 

Functions

std::string cppxdic::trim (const std::string &s)
 Trim leading/trailing whitespace (spaces, tabs, CR, LF).
 
std::vector< int > cppxdic::parseTrialList (const std::string &spec)
 Parse a comma/space-separated list of integer trial IDs.
 
std::vector< int > cppxdic::readTrialsFile (const std::string &path)
 Read a trials file: one trial ID per line.
 
std::vector< SubjectTrial > cppxdic::readSubjectTrialCsv (const std::string &path)
 Read subject_trial.csv (header "subject,trial") into rows, skipping the header line and any blank/comment lines.
 
int cppxdic::slurmArrayTaskId ()
 Resolve SLURM_ARRAY_TASK_ID from the environment.