| 15 | namespace sibr { |
| 16 | |
| 17 | std::vector<std::string> CropScaleImageUtility::getPathToImgs(const std::string & inputFileName) |
| 18 | { |
| 19 | std::ifstream inputFile(inputFileName); |
| 20 | std::string line; |
| 21 | std::vector<std::string> pathToImgs; |
| 22 | while (getline(inputFile, line)) { |
| 23 | std::stringstream ss(line); |
| 24 | std::string path; |
| 25 | unsigned width, height; |
| 26 | ss >> path >> width >> height; |
| 27 | pathToImgs.push_back(path); |
| 28 | } |
| 29 | inputFile.close(); |
| 30 | return pathToImgs; |
| 31 | } |
| 32 | |
| 33 | void CropScaleImageUtility::logExecution(const sibr::Vector2i & originalResolution, unsigned nrImages, long long elapsedTime, bool wasTransformed, const char* log_file_name) |
| 34 | { |