| 39 | namespace mvs { |
| 40 | |
| 41 | Workspace::Workspace(const Options& options) : options_(options) { |
| 42 | StringToLower(&options_.input_type); |
| 43 | model_.Read(options_.workspace_path, options_.workspace_format); |
| 44 | if (options_.max_image_size > 0) { |
| 45 | for (auto& image : model_.images) { |
| 46 | image.Downsize(options_.max_image_size, options_.max_image_size); |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | depth_map_path_ = |
| 51 | options_.workspace_path / options_.stereo_folder / "depth_maps"; |
| 52 | normal_map_path_ = |
| 53 | options_.workspace_path / options_.stereo_folder / "normal_maps"; |
| 54 | } |
| 55 | |
| 56 | std::string Workspace::GetFileName(const int image_idx) const { |
| 57 | const auto& image_name = model_.GetImageName(image_idx); |
nothing calls this directly
no test coverage detected