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 ./pycolmap/
On Windows, after installing COLMAP via VCPKG, run in powershell:
python -m pip install ./pycolmap/ ` --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
logging
Timer
homography_decomposition()
Rotation3d
Rigid3d
Sim3d
PosePriorCoordinateSystem
PosePrior
RANSACOptions
Point2D
ListPoint2D
CameraModelId
Camera
MapCameraIdToCamera
KeysView
ValuesView
ItemsView
Image
MapImageIdToImage
TrackElement
Track
Point3D
MapPoint3DIdToPoint3D
Correspondence
CorrespondenceGraph
Reconstruction
ReconstructionManager
TwoViewGeometryConfiguration
TwoViewGeometry
Database
DatabaseTransaction
DatabaseCache
AbsolutePoseEstimationOptions
AbsolutePoseRefinementOptions
absolute_pose_estimation()
pose_refinement()
ImageAlignmentError
align_reconstructions_via_reprojections()
align_reconstructions_via_proj_centers()
align_reconstructions_via_points()
align_reconstruction_to_locations()
compare_reconstructions()
LossFunctionType
BundleAdjustmentOptions
BundleAdjustmentConfig
BundleAdjuster
estimate_pose_covariance_from_ba_ceres_backend()
estimate_pose_covariance_from_ba()
BundleAdjustmentCovarianceEstimatorBase
BundleAdjustmentCovarianceEstimatorCeresBackend
BundleAdjustmentCovarianceEstimator
essential_matrix_estimation()
fundamental_matrix_estimation()
rig_absolute_pose_estimation()
homography_matrix_estimation()
TriangulationResidualType
EstimateTriangulationOptions
estimate_triangulation()
TwoViewGeometryOptions
estimate_calibrated_two_view_geometry()
estimate_two_view_geometry()
estimate_two_view_geometry_pose()
squared_sampson_error()
ImagePairStat
ObservationManager
IncrementalTriangulatorOptions
IncrementalTriangulator
ImageSelectionMethod
IncrementalMapperOptions
LocalBundleAdjustmentReport
IncrementalMapper
IncrementalPipelineOptions
IncrementalMapperCallback
IncrementalMapperStatus
IncrementalPipeline
Normalization
SiftExtractionOptions
Sift
CameraMode
ImageReaderOptions
CopyType
UndistortCameraOptions
import_images()
infer_camera_from_image()
undistort_images()
extract_features()
SiftMatchingOptions
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()
set_random_seed()
ostream
- Cost Functions