Repository Analysis

colmap/colmap

COLMAP - Structure-from-Motion and Multi-View Stereo

12.4 Low AI signal View on GitHub
12.4
Adjusted Score
12.4
Raw Score
100%
Time Factor
2026-05-29
Last Push
11,808
Stars
C++
Language
136,414
Lines of Code
570
Files
1390
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 10MEDIUM 19LOW 1361

Pattern Findings

1390 matches across 10 categories. Click a row to expand file-level details.

Hyper-Verbose Identifiers612 hits · 811 pts
SeverityFileLineSnippet
LOWbenchmark/reconstruction/evaluation/utils_test.py69 def test_picks_smallest_per_category(self):
LOWbenchmark/reconstruction/evaluation/utils_test.py81 def test_preserves_input_order(self):
LOWbenchmark/reconstruction/evaluation/utils_test.py92 def test_num_scenes_larger_than_category_size(self):
LOWbenchmark/reconstruction/evaluation/utils_test.py157 def test_auto_detect_no_devices(self, monkeypatch):
LOWbenchmark/reconstruction/evaluation/utils_test.py166 def test_simple_uniform_errors(self):
LOWbenchmark/reconstruction/evaluation/utils_test.py186 def test_all_errors_above_threshold(self):
LOWbenchmark/reconstruction/evaluation/utils_test.py192 def test_all_errors_below_threshold(self):
LOWbenchmark/reconstruction/evaluation/utils_test.py230 def test_all_errors_above_threshold(self):
LOWbenchmark/reconstruction/evaluation/utils_test.py236 def test_all_errors_below_threshold(self):
LOWbenchmark/reconstruction/evaluation/utils_test.py388 def test_skips_special_entries(self):
LOWbenchmark/reconstruction/evaluation/utils_test.py500def create_test_reconstruction():
LOWbenchmark/reconstruction/evaluation/utils_test.py510 def test_identical_reconstruction(self):
LOWbenchmark/reconstruction/evaluation/utils_test.py522 def test_transformed_reconstruction(self):
LOWbenchmark/reconstruction/evaluation/utils_test.py545 def test_identical_reconstruction(self):
LOWbenchmark/reconstruction/evaluation/utils_test.py561 def test_transformed_reconstruction(self):
LOWbenchmark/reconstruction/evaluation/utils_test.py585 def test_different_reconstructions(self):
LOWbenchmark/reconstruction/evaluation/covisibility.py141def _compute_frustums_for_all_images(
LOWbenchmark/reconstruction/evaluation/covisibility.py163def _is_pair_covisible_by_tracks(
LOWbenchmark/reconstruction/evaluation/covisibility.py176def _is_pair_covisible_by_frustum(
LOWbenchmark/reconstruction/evaluation/geometry_test.py68 def test_perpendicular_vectors(self):
LOW…nchmark/reconstruction/evaluation/covisibility_test.py88 def test_single_image_with_points(self):
LOW…nchmark/reconstruction/evaluation/covisibility_test.py109 def test_insufficient_points_returns_default(self):
LOW…nchmark/reconstruction/evaluation/covisibility_test.py124 def test_per_image_ranges_differ(self):
LOW…nchmark/reconstruction/evaluation/covisibility_test.py156 def test_identity_camera_shape(self):
LOW…nchmark/reconstruction/evaluation/covisibility_test.py177 def test_vertices_depth_range(self):
LOW…nchmark/reconstruction/evaluation/covisibility_test.py231 def test_covisible_side_by_side(self):
LOW…nchmark/reconstruction/evaluation/covisibility_test.py235 def test_not_covisible_opposite_directions(self):
LOW…nchmark/reconstruction/evaluation/covisibility_test.py242 def test_rejected_by_viewing_angle(self):
LOW…nchmark/reconstruction/evaluation/covisibility_test.py251 def test_covisible_converging_cameras(self):
LOW…nchmark/reconstruction/evaluation/covisibility_test.py266 def test_not_covisible_far_apart_narrow_fov(self):
LOW…nchmark/reconstruction/evaluation/covisibility_test.py271 def test_not_covisible_depth_out_of_range(self):
LOW…nchmark/reconstruction/evaluation/covisibility_test.py295 def test_covisible_identical_cameras(self):
LOWbenchmark/reconstruction/evaluation/utils.py268def filter_smallest_scenes_per_category(
LOWpython/ci/test_regression_eth3d.py33def check_small_errors_or_exit(
LOWpython/examples/custom_bundle_adjustment.py98def iterative_global_refinement(
LOWpython/examples/custom_bundle_adjustment.py257def iterative_local_refinement(
LOW…n/examples/convert_legacy_rotation_averaging_format.py130def get_image_names_from_relative_poses(
LOW…n/examples/convert_legacy_rotation_averaging_format.py153def create_database_from_relative_poses(
LOWpython/examples/custom_incremental_pipeline.py35def has_unknown_sensor_from_rig(
LOWpython/examples/custom_incremental_pipeline.py52def iterative_global_refinement(
LOWpython/examples/custom_incremental_pipeline.py70def initialize_reconstruction(
LOWpython/examples/example.py16def incremental_mapping_with_pbar(
LOWpython/examples/custom_incremental_pipeline_test.py10def expect_equal_reconstructions(
LOWpython/examples/custom_incremental_pipeline_test.py115def test_multi_reconstruction(tmp_path: Path) -> None:
LOWpython/examples/panorama_sfm.py262def render_perspective_images(
LOWsrc/pycolmap/dataclass_test.py9def test_ransac_options_summary():
LOWsrc/pycolmap/dataclass_test.py16def test_ransac_options_summary_write_type():
LOWsrc/pycolmap/dataclass_test.py30def test_ransac_options_todict():
LOWsrc/pycolmap/dataclass_test.py38def test_ransac_options_todict_recursive():
LOWsrc/pycolmap/dataclass_test.py45def test_ransac_options_mergedict():
LOWsrc/pycolmap/dataclass_test.py60def test_ransac_options_deepcopy():
LOWsrc/pycolmap/dataclass_test.py76def test_ransac_options_pickle_roundtrip():
LOWsrc/pycolmap/dataclass_test.py86def test_ransac_options_dict_constructor():
LOWsrc/pycolmap/dataclass_test.py92def test_ransac_options_kwargs_constructor():
LOWsrc/pycolmap/dataclass_test.py101def test_incremental_pipeline_options_todict_recursive():
LOWsrc/pycolmap/dataclass_test.py108def test_incremental_pipeline_options_mergedict():
LOWsrc/pycolmap/dataclass_test.py114def test_incremental_pipeline_options_summary():
LOWsrc/pycolmap/dataclass_test.py121def test_incremental_pipeline_options_pickle():
LOWsrc/pycolmap/main_test.py9def test_ceres_version_is_str():
LOWsrc/pycolmap/main_test.py18def test_colmap_version_is_str():
552 more matches not shown…
Over-Commented Block726 hits · 725 pts
SeverityFileLineSnippet
LOWCMakeLists.txt1# Copyright (c), ETH Zurich and UNC Chapel Hill.
LOWCMakeLists.txt21# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
LOWbenchmark/reconstruction/download.py1# Copyright (c), ETH Zurich and UNC Chapel Hill.
LOWbenchmark/reconstruction/evaluate.py1# Copyright (c), ETH Zurich and UNC Chapel Hill.
LOWbenchmark/reconstruction/compare.py1# Copyright (c), ETH Zurich and UNC Chapel Hill.
LOWbenchmark/reconstruction/evaluation/utils_test.py1# Copyright (c), ETH Zurich and UNC Chapel Hill.
LOWbenchmark/reconstruction/evaluation/covisibility.py1# Copyright (c), ETH Zurich and UNC Chapel Hill.
LOWbenchmark/reconstruction/evaluation/geometry_test.py1# Copyright (c), ETH Zurich and UNC Chapel Hill.
LOWbenchmark/reconstruction/evaluation/eth3d.py1# Copyright (c), ETH Zurich and UNC Chapel Hill.
LOW…nchmark/reconstruction/evaluation/covisibility_test.py1# Copyright (c), ETH Zurich and UNC Chapel Hill.
LOWbenchmark/reconstruction/evaluation/imc.py1# Copyright (c), ETH Zurich and UNC Chapel Hill.
LOWbenchmark/reconstruction/evaluation/blended_mvs.py1# Copyright (c), ETH Zurich and UNC Chapel Hill.
LOWbenchmark/reconstruction/evaluation/utils.py1# Copyright (c), ETH Zurich and UNC Chapel Hill.
LOWbenchmark/reconstruction/evaluation/geometry.py1# Copyright (c), ETH Zurich and UNC Chapel Hill.
LOWdocker/run-gui.sh1#!/bin/bash
LOWpython/README.md201# Optional parameters:
LOWpython/util/flickr_downloader.py1# Copyright (c), ETH Zurich and UNC Chapel Hill.
LOWpython/examples/visualize_model.py1# Copyright (c), ETH Zurich and UNC Chapel Hill.
LOWscripts/shell/profile_binary.sh1#!/bin/bash
LOWscripts/shell/profile_binary.sh21# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
LOWscripts/shell/build_mac_app.sh1# Copyright (c), ETH Zurich and UNC Chapel Hill.
LOWscripts/shell/restore_git_submodules.sh1# Copyright (c), ETH Zurich and UNC Chapel Hill.
LOWscripts/shell/generate_coverage_report.sh1#!/bin/bash
LOWscripts/shell/generate_coverage_report.sh21# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
LOWscripts/shell/images_to_video.sh1# Copyright (c), ETH Zurich and UNC Chapel Hill.
LOWscripts/shell/images_to_video.sh21# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
LOWdoc/conf.py1# COLMAP documentation build configuration file, created by
LOWdoc/conf.py81# The language for content autogenerated by Sphinx. Refer to documentation
LOWdoc/conf.py101
LOWdoc/conf.py121
LOWdoc/conf.py141# The name of an image file (relative to this directory) to place at the top
LOWdoc/conf.py161# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
LOWdoc/conf.py181
LOWdoc/conf.py201
LOWsrc/colmap/CMakeLists.txt1# Copyright (c), ETH Zurich and UNC Chapel Hill.
LOWsrc/colmap/ui/reconstruction_stats_widget.h1// Copyright (c), ETH Zurich and UNC Chapel Hill.
LOWsrc/colmap/ui/reconstruction_stats_widget.h21// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
LOWsrc/colmap/ui/point_viewer_widget.h1// Copyright (c), ETH Zurich and UNC Chapel Hill.
LOWsrc/colmap/ui/point_viewer_widget.h21// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
LOWsrc/colmap/ui/CMakeLists.txt1# Copyright (c), ETH Zurich and UNC Chapel Hill.
LOWsrc/colmap/ui/movie_grabber_widget.h1// Copyright (c), ETH Zurich and UNC Chapel Hill.
LOWsrc/colmap/ui/movie_grabber_widget.h21// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
LOWsrc/colmap/ui/point_painter.h1// Copyright (c), ETH Zurich and UNC Chapel Hill.
LOWsrc/colmap/ui/point_painter.h21// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
LOWsrc/colmap/ui/thread_control_widget.h1// Copyright (c), ETH Zurich and UNC Chapel Hill.
LOWsrc/colmap/ui/thread_control_widget.h21// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
LOWsrc/colmap/ui/options_widget.h1// Copyright (c), ETH Zurich and UNC Chapel Hill.
LOWsrc/colmap/ui/options_widget.h21// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
LOWsrc/colmap/ui/automatic_reconstruction_widget.h1// Copyright (c), ETH Zurich and UNC Chapel Hill.
LOWsrc/colmap/ui/automatic_reconstruction_widget.h21// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
LOWsrc/colmap/ui/line_painter.h1// Copyright (c), ETH Zurich and UNC Chapel Hill.
LOWsrc/colmap/ui/line_painter.h21// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
LOWsrc/colmap/ui/main_window.h1// Copyright (c), ETH Zurich and UNC Chapel Hill.
LOWsrc/colmap/ui/main_window.h21// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
LOWsrc/colmap/ui/main_window.h41#include "colmap/ui/match_matrix_widget.h"
LOWsrc/colmap/ui/render_options_widget.h1// Copyright (c), ETH Zurich and UNC Chapel Hill.
LOWsrc/colmap/ui/render_options_widget.h21// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
LOWsrc/colmap/ui/colormaps.h1// Copyright (c), ETH Zurich and UNC Chapel Hill.
LOWsrc/colmap/ui/colormaps.h21// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
LOWsrc/colmap/ui/render_options.h1// Copyright (c), ETH Zurich and UNC Chapel Hill.
666 more matches not shown…
Cross-Language Confusion10 hits · 68 pts
SeverityFileLineSnippet
HIGHpython/examples/custom_bundle_adjustment.py212 ) or point3D.track.length() <= kMaxTrackLength:
HIGHpython/examples/visualize_model.py55 if point.track.length() < min_track_len:
HIGHsrc/pycolmap/scene/point3d_test.py40 assert point.track.length() == 1
HIGHsrc/pycolmap/scene/track_test.py34 assert track.length() == 0
HIGHsrc/pycolmap/scene/track_test.py40 assert track.length() == 1
HIGHsrc/pycolmap/scene/track_test.py50 assert track.length() == 2
HIGHsrc/pycolmap/scene/track_test.py75 assert track.length() == 1
HIGHsrc/pycolmap/scene/track_test.py81 assert track.length() == 0
HIGHsrc/pycolmap/scene/track_test.py89 assert track.length() == 1
HIGHsrc/pycolmap/scene/track_test.py100 assert track.length() == 1
AI Slop Vocabulary16 hits · 48 pts
SeverityFileLineSnippet
MEDIUMdocker/run-gui.sh3# A robust script to run the COLMAP GUI inside a Docker container,
MEDIUMpython/examples/custom_bundle_adjustment.py304 # Only use robust cost function for first iteration
MEDIUMsrc/colmap/sfm/incremental_mapper.h145 // Whether to use a robust loss on prior locations
MEDIUMsrc/colmap/sfm/incremental_mapper.h148 // Threshold on the residual for the robust loss
MEDIUMsrc/colmap/sfm/incremental_mapper.h229 // are too large, non-robust bundle adjustment will break down; if the
MEDIUMsrc/colmap/sfm/observation_manager.h175 // uniform distribution of observations results in more robust registration.
MEDIUMsrc/colmap/estimators/rotation_averaging.h52 // Geman-McClure weight from "Efficient and robust large-scale rotation
MEDIUMsrc/colmap/estimators/pose.h173// a robust cost function, i.e. the corresponding points need not necessarily
MEDIUMsrc/colmap/estimators/rotation_averaging_impl.h130 // L1 robust loss minimization phase.
MEDIUMsrc/colmap/estimators/bundle_adjustment_ceres.h42 // Loss function types: Trivial (non-robust) and robust loss functions.
MEDIUMsrc/colmap/estimators/bundle_adjustment_ceres.h109 // Threshold on the residual for the robust loss.
MEDIUMsrc/colmap/mvs/model.h64 // the number of shared points subject to a minimum robust average
MEDIUMsrc/colmap/mvs/model.h72 // Compute the robust minimum and maximum depths from the sparse point cloud.
MEDIUMsrc/colmap/scene/database.h71 // The factory should be robust to handle non-supported files and return a
MEDIUMsrc/colmap/controllers/incremental_pipeline.h152 // Whether to use a robust loss on prior camera positions.
MEDIUMsrc/colmap/controllers/incremental_pipeline.h155 // Threshold on the residual for the robust position prior loss
Deep Nesting11 hits · 11 pts
SeverityFileLineSnippet
LOWbenchmark/reconstruction/evaluation/eth3d.py39
LOWbenchmark/reconstruction/evaluation/imc.py42
LOWbenchmark/reconstruction/evaluation/blended_mvs.py44
LOWbenchmark/reconstruction/evaluation/utils.py684
LOWbenchmark/reconstruction/evaluation/utils.py1200
LOWpython/util/flickr_downloader.py125
LOWpython/examples/custom_bundle_adjustment.py134
LOW…n/examples/convert_legacy_rotation_averaging_format.py153
LOWpython/examples/custom_incremental_pipeline.py134
LOWpython/examples/custom_incremental_pipeline.py294
LOWpython/examples/panorama_sfm.py289
Redundant / Tautological Comments5 hits · 8 pts
SeverityFileLineSnippet
LOWdocker/run-gui.sh20# Check if any argument is provided.
LOWdocker/run-gui.sh28# Check if local colmap:latest image exists (in case you ran build.sh), otherwise use official image
LOWdocker/run.sh3# Check if any argument is provided.
LOWdocker/run.sh10# Check if local colmap:latest image exists (in case you ran build.sh), otherwise use official image
LOWdocker/setup-ubuntu.sh9# Check if reboot is needed
Self-Referential Comments2 hits · 6 pts
SeverityFileLineSnippet
MEDIUMpython/examples/panorama_sfm.py292 # Define the paths.
MEDIUMdoc/conf.py4# This file is execfile()d with the current directory set to its
Unused Imports4 hits · 4 pts
SeverityFileLineSnippet
LOWbenchmark/reconstruction/evaluation/utils.py54
LOWpython/pycolmap/__init__.py64
LOWpython/pycolmap/pyceres/__init__.py7
LOWpython/pycolmap/cost_functions/__init__.py7
Excessive Try-Catch Wrapping3 hits · 4 pts
SeverityFileLineSnippet
LOWpython/ci/test_regression_eth3d.py26 except Exception as exc:
LOWdoc/conf.py34 except Exception:
MEDIUMdoc/conf.py19def get_git_revision():
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippet
LOWsrc/thirdparty/Symforce-Caspar/caspar_generate.py1# Usage: