25 boost::filesystem::path metaPath(*d.
metaName);
28 d.
metaData = YAML::LoadFile(metaPath.string());
30 catch(
const YAML::BadFile& e)
46 std::stringstream sstr;
47 sstr << std::setfill(
'0') << std::setw(8) << scanPosNo;
54 boost::filesystem::path positionPath(sstr.str());
55 boost::filesystem::path metaPath(*d.
metaName);
61 d.
metaData = YAML::LoadFile( (positionPath / metaPath).
string());
63 catch(YAML::BadFile& e)
85 boost::filesystem::path groupPath(scanPositionPath);
86 boost::filesystem::path scansPath(
"scans");
87 boost::filesystem::path dataPath(
"data");
88 boost::filesystem::path totalGroupPath = groupPath / scansPath / dataPath;
92 std::stringstream sstr;
93 sstr <<
"scan" << std::setfill(
'0') << std::setw(8) << scanNo;
97 boost::filesystem::path metaPath(sstr.str() +
".yaml");
101 d.
metaData = YAML::LoadFile((totalGroupPath / metaPath).
string());
103 catch(YAML::BadFile& e)
127 std::stringstream sstr;
128 sstr <<
"cam_" << camNo;
130 boost::filesystem::path groupPath(scanPositionPath);
131 boost::filesystem::path camPath(sstr.str());
132 d.
groupName = (groupPath / camPath).
string();
138 boost::filesystem::path metaPath(*d.
metaName);
144 d.
metaData = YAML::LoadFile( (groupPath / camPath / metaPath).
string());
146 catch(
const YAML::BadFile& e)
160 const size_t &scanPosNo,
const size_t &scanNo,
161 const size_t &scanCameraNo,
const size_t &scanImageNo)
const
169 const std::string &scanImagePath,
const size_t &scanImageNo)
const
173 boost::filesystem::path siPath(scanImagePath);
174 boost::filesystem::path dPath(
"data");
176 std::stringstream sstr;
177 sstr << std::setfill(
'0') << std::setw(8) << scanImageNo;
179 std::string imgName(sstr.str() + std::string(
".png"));
180 std::string yamlName(sstr.str() + std::string(
".yaml"));
182 boost::filesystem::path metaPath(yamlName);
191 d.
metaData = YAML::LoadFile((siPath / dPath / metaPath).
string());
193 catch(YAML::BadFile& e)