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

Method CameraModelIsSpherical

src/colmap/sensor/models.h:2921–2934  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2919}
2920
2921bool CameraModelIsSpherical(const CameraModelId model_id) {
2922 switch (model_id) {
2923#define CAMERA_MODEL_CASE(CameraModel) \
2924 case CameraModel::model_id: \
2925 return std::is_base_of_v<BaseSphericalCameraModel<CameraModel>, \
2926 CameraModel>;
2927
2928 CAMERA_MODEL_SWITCH_CASES
2929
2930#undef CAMERA_MODEL_CASE
2931 }
2932
2933 return false;
2934}
2935
2936void CameraModelRescale(const CameraModelId model_id,
2937 const double scale_x,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected