1 #ifndef __SCANIOUTILS_HPP__ 2 #define __SCANIOUTILS_HPP__ 11 #include <boost/filesystem.hpp> 12 #include <Eigen/Dense> 30 std::string
getSensorType(
const boost::filesystem::path& dir);
38 const boost::filesystem::path& root,
39 const ScanImage& image,
40 const size_t& positionNumber,
41 const size_t& cameraNumber,
42 const size_t& imageNumber);
45 const boost::filesystem::path& root,
46 const ScanImage& image,
47 const std::string positionDirectory,
48 const size_t& cameraNumber,
49 const size_t& imageNumber);
52 const boost::filesystem::path& root,
53 const ScanImage& image,
54 const std::string positionDirectory,
55 const std::string cameraDirectory,
56 const size_t& imageNr);
59 const boost::filesystem::path& root,
61 const std::string& positionDirectory,
62 const size_t& cameraNumber,
63 const size_t& imageNumber);
66 const boost::filesystem::path& root,
68 const size_t& positionNumber,
69 const size_t& cameraNumber,
70 const size_t& imageNumber);
73 const boost::filesystem::path& root,
75 const std::string& positionDirectory,
76 const std::string& cameraDirectory,
77 const size_t& imageNumber);
80 vector<ScanImagePtr>& images,
81 boost::filesystem::path dataPath);
88 const boost::filesystem::path& root,
89 const ScanCamera& image,
90 const std::string positionDirectory,
91 const std::string cameraDirectory);
94 const boost::filesystem::path& root,
95 const ScanCamera& image,
96 const size_t& positionNumber,
97 const size_t& cameraNumber);
100 const boost::filesystem::path& root,
101 const ScanCamera& image,
102 const std::string& positionDirectory,
103 const size_t& cameraNumber);
106 const boost::filesystem::path& root,
108 const std::string& positionDirectory,
109 const std::string& cameraDirectory);
112 const boost::filesystem::path& root,
114 const std::string& positionDirectory,
115 const size_t& cameraNumber);
118 const boost::filesystem::path& root,
120 const size_t& positionNumber,
121 const size_t& cameraNumber);
137 const boost::filesystem::path& root,
139 const std::string positionName,
140 const std::string scanDirectoryName,
141 const std::string scanName);
144 const boost::filesystem::path& root,
146 const std::string positionDirectory,
147 const std::string scanDirectory,
148 const size_t& scanNumber);
151 const boost::filesystem::path& root,
153 const size_t& positionNumber,
154 const size_t& scanNumber);
157 const boost::filesystem::path& root,
159 const std::string& positionDirectory,
160 const std::string& scanDirectory,
161 const std::string& scanName);
164 const boost::filesystem::path& root,
166 const std::string& positionDirectory,
167 const std::string& scanDirectory,
168 const size_t& scanNumber);
171 const boost::filesystem::path& root,
173 const size_t& positionNumber,
174 const size_t& scanNumber);
191 const boost::filesystem::path& root,
192 const ScanPosition& scanPos,
193 const std::string positionDirectory);
196 const boost::filesystem::path& root,
197 const ScanPosition& scanPos,
198 const size_t& positionNumber);
201 const boost::filesystem::path& root,
202 ScanPosition& scanPos,
203 const std::string& positionDirectory);
206 const boost::filesystem::path& root,
207 ScanPosition& scanPos,
208 const size_t& positionNumber);
222 const boost::filesystem::path& root,
223 const ScanProject& scanProj);
226 const boost::filesystem::path& root,
227 ScanProject& scanProj);
void saveScanPosition(const boost::filesystem::path &root, const ScanPosition &scanPos, const std::string positionDirectory)
SCAN_POSITION.
void saveScanCamera(const boost::filesystem::path &root, const ScanCamera &image, const std::string positionDirectory, const std::string cameraDirectory)
SCANCAMERA.
void saveScanImage(const boost::filesystem::path &root, const ScanImage &image, const size_t &positionNumber, const size_t &cameraNumber, const size_t &imageNumber)
SCANIMAGE.
void saveScan(const boost::filesystem::path &root, const Scan &scan, const std::string positionName, const std::string scanDirectoryName, const std::string scanName)
SCAN.
bool loadScanPosition(const boost::filesystem::path &root, ScanPosition &scanPos, const std::string &positionDirectory)
I/O support for PLY files.
void loadScanImages(vector< ScanImagePtr > &images, boost::filesystem::path dataPath)
bool loadScanCamera(const boost::filesystem::path &root, ScanCamera &image, const std::string &positionDirectory, const std::string &cameraDirectory)
std::string getSensorType(const boost::filesystem::path &dir)
Gets the sensor type for a given directory. Return an empty string if the directory does not contain ...
bool loadScanImage(const boost::filesystem::path &root, ScanImage &image, const std::string &positionDirectory, const size_t &cameraNumber, const size_t &imageNumber)
bool loadScanProject(const boost::filesystem::path &root, ScanProject &scanProj)
bool loadScan(const boost::filesystem::path &root, Scan &scan, const std::string &positionDirectory, const std::string &scanDirectory, const std::string &scanName)
void saveScanProject(const boost::filesystem::path &root, const ScanProject &scanProj)
SCAN_PROJECT.