PyCOLMAP
PyCOLMAP exposes to Python most capabilities of COLMAP.
Installation
Pre-built wheels for Linux, macOS, and Windows can be installed using pip:
pip install pycolmap
The wheels are automatically built and pushed to PyPI at each release. They are currently not built with CUDA support, which requires building from source. To build PyCOLMAP from source, follow these steps:
Install COLMAP from source following Installation.
Build PyCOLMAP:
On Linux and macOS:
python -m pip install .
On Windows, after installing COLMAP via VCPKG, run in powershell:
python -m pip install . ` --cmake.define.CMAKE_TOOLCHAIN_FILE="$VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake" ` --cmake.define.VCPKG_TARGET_TRIPLET="x64-windows"
Some features, such as cost functions, require that PyCeres is installed in the same manner as PyCOLMAP, so either from PyPI or from source.
API
- pycolmap
Device
SensorType
sensor_t
data_t
logging
Timer
Rotation3d
AlignedBox3d
Rigid3d
get_covariance_for_inverse()
get_covariance_for_composed_rigid3d()
get_covariance_for_relative_rigid3d()
average_quaternions()
interpolate_camera_poses()
Sim3d
PosePriorCoordinateSystem
PosePrior
GPSTransfromEllipsoid
GPSTransform
pose_from_homography_matrix()
homography_decomposition()
essential_matrix_from_pose()
triangulate_point()
calculate_triangulation_angle()
TriangulatePoint()
CalculateTriangulationAngle()
RANSACOptions
Bitmap
Rig
RigMap
KeysView
ValuesView
ItemsView
Point2D
Point2DList
CameraModelId
Camera
CameraMap
Frame
FrameMap
Image
ImageMap
TrackElement
Track
Point3D
Point3DMap
Correspondence
CorrespondenceGraph
Reconstruction
ReconstructionManager
TwoViewGeometryConfiguration
TwoViewGeometry
Database
DatabaseTransaction
RigConfigCamera
RigConfig
read_rig_config()
apply_rig_config()
DatabaseCache
SyntheticDatasetMatchConfig
SyntheticDatasetOptions
synthesize_dataset()
UndistortCameraOptions
undistort_camera()
undistort_image()
AbsolutePoseEstimationOptions
AbsolutePoseRefinementOptions
estimate_absolute_pose()
refine_absolute_pose()
estimate_and_refine_absolute_pose()
absolute_pose_estimation()
estimate_relative_pose()
refine_relative_pose()
estimate_affine2d()
estimate_affine2d_robust()
ImageAlignmentError
align_reconstructions_via_reprojections()
align_reconstructions_via_proj_centers()
align_reconstructions_via_points()
align_reconstruction_to_locations()
compare_reconstructions()
BundleAdjustmentGauge
BundleAdjustmentConfig
LossFunctionType
BundleAdjustmentOptions
PosePriorBundleAdjustmentOptions
BundleAdjuster
create_default_bundle_adjuster()
create_pose_prior_bundle_adjuster()
BACovarianceOptionsParams
ExperimentalPoseParam
BACovarianceOptions
BACovariance
estimate_ba_covariance_from_problem()
estimate_ba_covariance()
estimate_essential_matrix()
essential_matrix_estimation()
estimate_fundamental_matrix()
fundamental_matrix_estimation()
estimate_generalized_absolute_pose()
refine_generalized_absolute_pose()
estimate_and_refine_generalized_absolute_pose()
rig_absolute_pose_estimation()
estimate_generalized_relative_pose()
estimate_homography_matrix()
homography_matrix_estimation()
estimate_rigid3d()
estimate_rigid3d_robust()
estimate_sim3d()
estimate_sim3d_robust()
TriangulationResidualType
EstimateTriangulationOptions
estimate_triangulation()
TwoViewGeometryOptions
estimate_calibrated_two_view_geometry()
estimate_two_view_geometry()
estimate_two_view_geometry_pose()
compute_squared_sampson_error()
squared_sampson_error()
FeatureKeypoint
FeatureKeypoints
FeatureMatch
FeatureMatches
Normalization
SiftExtractionOptions
Sift
SiftMatchingOptions
ImageScore
VisualIndex
ImagePairStat
ObservationManager
IncrementalTriangulatorOptions
IncrementalTriangulator
ImageSelectionMethod
IncrementalMapperOptions
LocalBundleAdjustmentReport
IncrementalMapper
IncrementalPipelineOptions
IncrementalMapperCallback
IncrementalMapperStatus
IncrementalPipeline
CameraMode
ImageReaderOptions
CopyType
import_images()
infer_camera_from_image()
undistort_images()
extract_features()
ExhaustiveMatchingOptions
SpatialMatchingOptions
VocabTreeMatchingOptions
SequentialMatchingOptions
ImagePairsMatchingOptions
match_exhaustive()
match_spatial()
match_vocabtree()
match_sequential()
verify_matches()
PairGenerator
ExhaustivePairGenerator
VocabTreePairGenerator
SequentialPairGenerator
SpatialPairGenerator
ImportedPairGenerator
triangulate_points()
incremental_mapping()
bundle_adjustment()
PatchMatchOptions
patch_match_stereo()
StereoFusionOptions
stereo_fusion()
PoissonMeshingOptions
DelaunayMeshingOptions
poisson_meshing()
sparse_delaunay_meshing()
dense_delaunay_meshing()
set_random_seed()
ostream
- Cost Functions