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
Rotation3d
Rigid3d
Sim3d
PosePriorCoordinateSystem
PosePrior
pose_from_homography_matrix()
homography_decomposition()
essential_matrix_from_pose()
RANSACOptions
Point2D
ListPoint2D
CameraModelId
Camera
MapCameraIdToCamera
KeysView
ValuesView
ItemsView
Image
MapImageIdToImage
TrackElement
Track
Point3D
MapPoint3DIdToPoint3D
Correspondence
CorrespondenceGraph
Reconstruction
ReconstructionManager
TwoViewGeometryConfiguration
TwoViewGeometry
Database
DatabaseTransaction
DatabaseCache
SyntheticDatasetMatchConfig
SyntheticDatasetOptions
synthesize_dataset()
AbsolutePoseEstimationOptions
AbsolutePoseRefinementOptions
estimate_absolute_pose()
refine_absolute_pose()
estimate_and_refine_absolute_pose()
absolute_pose_estimation()
ImageAlignmentError
align_reconstructions_via_reprojections()
align_reconstructions_via_proj_centers()
align_reconstructions_via_points()
align_reconstruction_to_locations()
compare_reconstructions()
BundleAdjustmentConfig
LossFunctionType
BundleAdjustmentOptions
PosePriorBundleAdjustmentOptions
BundleAdjuster
create_default_bundle_adjuster()
create_pose_prior_bundle_adjuster()
BACovarianceOptionsParams
ExperimentalPoseParam
BACovarianceOptions
BACovariance
estimate_ba_covariance()
estimate_essential_matrix()
essential_matrix_estimation()
estimate_fundamental_matrix()
fundamental_matrix_estimation()
estimate_and_refine_generalized_absolute_pose()
rig_absolute_pose_estimation()
estimate_homography_matrix()
homography_matrix_estimation()
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()
ImagePairStat
ObservationManager
IncrementalTriangulatorOptions
IncrementalTriangulator
ImageSelectionMethod
IncrementalMapperOptions
LocalBundleAdjustmentReport
IncrementalMapper
IncrementalPipelineOptions
IncrementalMapperCallback
IncrementalMapperStatus
IncrementalPipeline
Normalization
SiftExtractionOptions
Sift
SiftMatchingOptions
CameraMode
ImageReaderOptions
CopyType
UndistortCameraOptions
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()
set_random_seed()
ostream
- Cost Functions