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

Method GetMetaData

src/colmap/sensor/bitmap.cc:728–738  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

726}
727
728bool Bitmap::GetMetaData(const std::string_view& name,
729 const std::string_view& type,
730 void* value) const {
731 THROW_CHECK_NE(type, "string");
732 auto* meta_data = OIIOMetaData::Upcast(meta_data_.get());
733 OIIO::TypeDesc type_desc;
734 type_desc.fromstring(OIIOFromStdStringView(type));
735 THROW_CHECK_NE(type_desc, OIIO::TypeDesc::UNKNOWN);
736 return meta_data->image_spec.getattribute(
737 OIIOFromStdStringView(name), type_desc, value);
738}
739
740std::optional<std::string> Bitmap::GetMetaData(
741 const std::string_view& name) const {

Callers 1

TESTFunction · 0.80

Calls 2

OIIOFromStdStringViewFunction · 0.85
sizeMethod · 0.80

Tested by 1

TESTFunction · 0.64