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

Method SetJpegQuality

src/colmap/sensor/bitmap.cc:703–707  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

701}
702
703void Bitmap::SetJpegQuality(int quality) {
704 THROW_CHECK_GT(quality, 0);
705 THROW_CHECK_LE(quality, 100);
706 SetMetaData("Compression", "jpeg:" + std::to_string(quality));
707}
708
709void Bitmap::SetMetaData(const std::string_view& name,
710 const std::string_view& type,

Callers 1

TESTFunction · 0.80

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.64