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

Method Downsize

src/colmap/mvs/image.cc:88–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88void Image::Downsize(const size_t max_width, const size_t max_height) {
89 if (width_ <= max_width && height_ <= max_height) {
90 return;
91 }
92 const float factor_x = static_cast<float>(max_width) / width_;
93 const float factor_y = static_cast<float>(max_height) / height_;
94 Rescale(std::min(factor_x, factor_y));
95}
96
97void ComputeRelativePose(const float R1[9],
98 const float T1[3],

Callers 6

WorkspaceMethod · 0.45
LoadMethod · 0.45
workspace.ccFile · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45

Calls

no outgoing calls

Tested by 3

TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36