From 1dde7f2e8e0d24506950fb02fb0844deac5efc4a Mon Sep 17 00:00:00 2001 From: MaximSmolskiy Date: Sun, 5 May 2024 00:17:03 +0300 Subject: [PATCH] Fix typos --- scripts/python/read_write_dense.py | 2 +- scripts/python/read_write_model.py | 2 +- src/colmap/exe/feature.h | 2 +- src/colmap/exe/model.cc | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/python/read_write_dense.py b/scripts/python/read_write_dense.py index 1bfa611101..7a61eb0cd1 100755 --- a/scripts/python/read_write_dense.py +++ b/scripts/python/read_write_dense.py @@ -119,7 +119,7 @@ def main(): if args.min_depth_percentile > args.max_depth_percentile: raise ValueError( "min_depth_percentile should be less than or equal " - "to the max_depth_perceintile." + "to the max_depth_percentile." ) # Read depth and normal maps corresponding to the same image. diff --git a/scripts/python/read_write_model.py b/scripts/python/read_write_model.py index cd60c0ac6e..0988acd89c 100755 --- a/scripts/python/read_write_model.py +++ b/scripts/python/read_write_model.py @@ -578,7 +578,7 @@ def main(): parser.add_argument( "--output_format", choices=[".bin", ".txt"], - help="outut model format", + help="output model format", default=".txt", ) args = parser.parse_args() diff --git a/src/colmap/exe/feature.h b/src/colmap/exe/feature.h index 0ee82ac53f..05e8d64ac5 100644 --- a/src/colmap/exe/feature.h +++ b/src/colmap/exe/feature.h @@ -35,7 +35,7 @@ namespace colmap { // This enum can be used as optional input for feature_extractor and // feature_importer to ensure that the camera flags of ImageReader are set in an -// exclusive and unambigous way. The table below explains the corespondence of +// exclusive and unambiguous way. The table below explains the correspondence of // each setting with the flags // // ----------------------------------------------------------------------------------- diff --git a/src/colmap/exe/model.cc b/src/colmap/exe/model.cc index c4d2da515a..dfe7e569ca 100644 --- a/src/colmap/exe/model.cc +++ b/src/colmap/exe/model.cc @@ -92,7 +92,7 @@ void WriteBoundingBox(const std::string& reconstruction_path, std::ofstream file(path, std::ios::trunc); THROW_CHECK_FILE_OPEN(file, path); - // Ensure that we don't loose any precision by storing in text. + // Ensure that we don't lose any precision by storing in text. file.precision(17); file << bounds.first.transpose() << "\n"; file << bounds.second.transpose() << "\n"; @@ -104,7 +104,7 @@ void WriteBoundingBox(const std::string& reconstruction_path, std::ofstream file(path, std::ios::trunc); THROW_CHECK_FILE_OPEN(file, path); - // Ensure that we don't loose any precision by storing in text. + // Ensure that we don't lose any precision by storing in text. file.precision(17); const Eigen::Vector3d center = (bounds.first + bounds.second) * 0.5; file << center.transpose() << "\n\n"; @@ -237,7 +237,7 @@ void PrintComparisonSummary(std::ostream& out, // images (WARNING: provide only one of the above) // - ref_is_gps: if true the prior positions are converted from GPS // (lat/lon/alt) to ECEF or ENU -// - merge_image_and_ref_origins: if true the reconstuction will be shifted so +// - merge_image_and_ref_origins: if true the reconstruction will be shifted so // that the first prior position is used for its camera position // - transform_path: path to store the Sim3 transformation used for the // alignment