MCPcopy Create free account
hub / github.com/colmap/colmap / Workspace

Method Workspace

src/colmap/mvs/workspace.cc:41–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39namespace mvs {
40
41Workspace::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
56std::string Workspace::GetFileName(const int image_idx) const {
57 const auto& image_name = model_.GetImageName(image_idx);

Callers

nothing calls this directly

Calls 3

StringToLowerFunction · 0.85
ReadMethod · 0.45
DownsizeMethod · 0.45

Tested by

no test coverage detected