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

Function MaybeThrowDeprecatedPosePriorError

src/colmap/scene/database_sqlite.cc:471–480  ·  view source on GitHub ↗

TODO(jsch): Change is_deprecated_image_prior default to false after next version release (3.14 or 4.0) and remove the parameter in (3.15 or 4.1).

Source from the content-addressed store, hash-verified

469// TODO(jsch): Change is_deprecated_image_prior default to false after next
470// version release (3.14 or 4.0) and remove the parameter in (3.15 or 4.1).
471void MaybeThrowDeprecatedPosePriorError(bool is_deprecated_image_prior) {
472 if (is_deprecated_image_prior) {
473 throw std::runtime_error(
474 "PosePrior API has changed: pose priors are now associated with "
475 "frames, not images. Please update your code to use frames "
476 "instead of image IDs. Data is automatically migrated upon opening a "
477 "database. Update your API usage accordingly and add pose priors to "
478 "frame data.");
479 }
480}
481
482class SqliteDatabase : public Database {
483 public:

Callers 2

ExistsPosePriorMethod · 0.85
ReadPosePriorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected