update inputs to colmap 3.13.3
Browse files- colmap_mapper.sh +59 -59
- colmap_matcher.sh +13 -13
colmap_mapper.sh
CHANGED
|
@@ -81,65 +81,65 @@ database="${exp_folder_colmap}/colmap_database.db"
|
|
| 81 |
colmap mapper \
|
| 82 |
--database_path ${database} \
|
| 83 |
--image_path ${rgb_path} \
|
| 84 |
-
--output_path ${exp_folder_colmap}
|
| 85 |
-
--Mapper.min_num_matches ${mapper_Mapper_min_num_matches} \
|
| 86 |
-
--Mapper.ignore_watermarks ${mapper_Mapper_ignore_watermarks} \
|
| 87 |
-
--Mapper.multiple_models ${mapper_Mapper_multiple_models} \
|
| 88 |
-
--Mapper.max_num_models ${mapper_Mapper_max_num_models} \
|
| 89 |
-
--Mapper.max_model_overlap ${mapper_Mapper_max_model_overlap} \
|
| 90 |
-
--Mapper.min_model_size ${mapper_Mapper_min_model_size} \
|
| 91 |
-
--Mapper.init_image_id1 ${mapper_Mapper_init_image_id1} \
|
| 92 |
-
--Mapper.init_image_id2 ${mapper_Mapper_init_image_id2} \
|
| 93 |
-
--Mapper.init_num_trials ${mapper_Mapper_init_num_trials} \
|
| 94 |
-
--Mapper.extract_colors ${mapper_Mapper_extract_colors} \
|
| 95 |
-
--Mapper.num_threads ${mapper_Mapper_num_threads} \
|
| 96 |
-
--Mapper.min_focal_length_ratio ${mapper_Mapper_min_focal_length_ratio} \
|
| 97 |
-
--Mapper.max_focal_length_ratio ${mapper_Mapper_max_focal_length_ratio} \
|
| 98 |
-
--Mapper.max_extra_param ${mapper_Mapper_max_extra_param} \
|
| 99 |
-
--Mapper.ba_refine_focal_length ${mapper_Mapper_ba_refine_focal_length} \
|
| 100 |
-
--Mapper.ba_refine_principal_point ${mapper_Mapper_ba_refine_principal_point} \
|
| 101 |
-
--Mapper.ba_refine_extra_params ${mapper_Mapper_ba_refine_extra_params} \
|
| 102 |
-
--Mapper.ba_local_num_images ${mapper_Mapper_ba_local_num_images} \
|
| 103 |
-
--Mapper.ba_local_function_tolerance ${mapper_Mapper_ba_local_function_tolerance} \
|
| 104 |
-
--Mapper.ba_local_max_num_iterations ${mapper_Mapper_ba_local_max_num_iterations} \
|
| 105 |
-
--Mapper.ba_global_images_ratio ${mapper_Mapper_ba_global_images_ratio} \
|
| 106 |
-
--Mapper.ba_global_points_ratio ${mapper_Mapper_ba_global_points_ratio} \
|
| 107 |
-
--Mapper.ba_global_images_freq ${mapper_Mapper_ba_global_images_freq} \
|
| 108 |
-
--Mapper.ba_global_points_freq ${mapper_Mapper_ba_global_points_freq} \
|
| 109 |
-
--Mapper.ba_global_function_tolerance ${mapper_Mapper_ba_global_function_tolerance} \
|
| 110 |
-
--Mapper.ba_global_max_num_iterations ${mapper_Mapper_ba_global_max_num_iterations} \
|
| 111 |
-
--Mapper.ba_global_max_refinements ${mapper_Mapper_ba_global_max_refinements} \
|
| 112 |
-
--Mapper.ba_global_max_refinement_change ${mapper_Mapper_ba_global_max_refinement_change} \
|
| 113 |
-
--Mapper.ba_local_max_refinements ${mapper_Mapper_ba_local_max_refinements} \
|
| 114 |
-
--Mapper.ba_local_max_refinement_change ${mapper_Mapper_ba_local_max_refinement_change} \
|
| 115 |
-
--Mapper.ba_use_gpu ${mapper_Mapper_ba_use_gpu} \
|
| 116 |
-
--Mapper.ba_gpu_index ${mapper_Mapper_ba_gpu_index} \
|
| 117 |
-
--Mapper.ba_min_num_residuals_for_cpu_multi_threading ${mapper_Mapper_ba_min_num_residuals_for_cpu_multi_threading} \
|
| 118 |
-
--Mapper.snapshot_images_freq ${mapper_Mapper_snapshot_images_freq} \
|
| 119 |
-
--Mapper.fix_existing_images ${mapper_Mapper_fix_existing_images} \
|
| 120 |
-
--Mapper.init_min_num_inliers ${mapper_Mapper_init_min_num_inliers} \
|
| 121 |
-
--Mapper.init_max_error ${mapper_Mapper_init_max_error} \
|
| 122 |
-
--Mapper.init_max_forward_motion ${mapper_Mapper_init_max_forward_motion} \
|
| 123 |
-
--Mapper.init_min_tri_angle ${mapper_Mapper_init_min_tri_angle} \
|
| 124 |
-
--Mapper.init_max_reg_trials ${mapper_Mapper_init_max_reg_trials} \
|
| 125 |
-
--Mapper.abs_pose_max_error ${mapper_Mapper_abs_pose_max_error} \
|
| 126 |
-
--Mapper.abs_pose_min_num_inliers ${mapper_Mapper_abs_pose_min_num_inliers} \
|
| 127 |
-
--Mapper.abs_pose_min_inlier_ratio ${mapper_Mapper_abs_pose_min_inlier_ratio} \
|
| 128 |
-
--Mapper.filter_max_reproj_error ${mapper_Mapper_filter_max_reproj_error} \
|
| 129 |
-
--Mapper.filter_min_tri_angle ${mapper_Mapper_filter_min_tri_angle} \
|
| 130 |
-
--Mapper.max_reg_trials ${mapper_Mapper_max_reg_trials} \
|
| 131 |
-
--Mapper.local_ba_min_tri_angle ${mapper_Mapper_local_ba_min_tri_angle} \
|
| 132 |
-
--Mapper.tri_max_transitivity ${mapper_Mapper_tri_max_transitivity} \
|
| 133 |
-
--Mapper.tri_create_max_angle_error ${mapper_Mapper_tri_create_max_angle_error} \
|
| 134 |
-
--Mapper.tri_continue_max_angle_error ${mapper_Mapper_tri_continue_max_angle_error} \
|
| 135 |
-
--Mapper.tri_merge_max_reproj_error ${mapper_Mapper_tri_merge_max_reproj_error} \
|
| 136 |
-
--Mapper.tri_complete_max_reproj_error ${mapper_Mapper_tri_complete_max_reproj_error} \
|
| 137 |
-
--Mapper.tri_complete_max_transitivity ${mapper_Mapper_tri_complete_max_transitivity} \
|
| 138 |
-
--Mapper.tri_re_max_angle_error ${mapper_Mapper_tri_re_max_angle_error} \
|
| 139 |
-
--Mapper.tri_re_min_ratio ${mapper_Mapper_tri_re_min_ratio} \
|
| 140 |
-
--Mapper.tri_re_max_trials ${mapper_Mapper_tri_re_max_trials} \
|
| 141 |
-
--Mapper.tri_min_angle ${mapper_Mapper_tri_min_angle} \
|
| 142 |
-
--Mapper.tri_ignore_two_view_tracks ${mapper_Mapper_tri_ignore_two_view_tracks}
|
| 143 |
|
| 144 |
|
| 145 |
echo " colmap model_converter ..."
|
|
|
|
| 81 |
colmap mapper \
|
| 82 |
--database_path ${database} \
|
| 83 |
--image_path ${rgb_path} \
|
| 84 |
+
--output_path ${exp_folder_colmap} #\
|
| 85 |
+
# --Mapper.min_num_matches ${mapper_Mapper_min_num_matches} \
|
| 86 |
+
# --Mapper.ignore_watermarks ${mapper_Mapper_ignore_watermarks} \
|
| 87 |
+
# --Mapper.multiple_models ${mapper_Mapper_multiple_models} \
|
| 88 |
+
# --Mapper.max_num_models ${mapper_Mapper_max_num_models} \
|
| 89 |
+
# --Mapper.max_model_overlap ${mapper_Mapper_max_model_overlap} \
|
| 90 |
+
# --Mapper.min_model_size ${mapper_Mapper_min_model_size} \
|
| 91 |
+
# --Mapper.init_image_id1 ${mapper_Mapper_init_image_id1} \
|
| 92 |
+
# --Mapper.init_image_id2 ${mapper_Mapper_init_image_id2} \
|
| 93 |
+
# --Mapper.init_num_trials ${mapper_Mapper_init_num_trials} \
|
| 94 |
+
# --Mapper.extract_colors ${mapper_Mapper_extract_colors} \
|
| 95 |
+
# --Mapper.num_threads ${mapper_Mapper_num_threads} \
|
| 96 |
+
# --Mapper.min_focal_length_ratio ${mapper_Mapper_min_focal_length_ratio} \
|
| 97 |
+
# --Mapper.max_focal_length_ratio ${mapper_Mapper_max_focal_length_ratio} \
|
| 98 |
+
# --Mapper.max_extra_param ${mapper_Mapper_max_extra_param} \
|
| 99 |
+
# --Mapper.ba_refine_focal_length ${mapper_Mapper_ba_refine_focal_length} \
|
| 100 |
+
# --Mapper.ba_refine_principal_point ${mapper_Mapper_ba_refine_principal_point} \
|
| 101 |
+
# --Mapper.ba_refine_extra_params ${mapper_Mapper_ba_refine_extra_params} \
|
| 102 |
+
# --Mapper.ba_local_num_images ${mapper_Mapper_ba_local_num_images} \
|
| 103 |
+
# --Mapper.ba_local_function_tolerance ${mapper_Mapper_ba_local_function_tolerance} \
|
| 104 |
+
# --Mapper.ba_local_max_num_iterations ${mapper_Mapper_ba_local_max_num_iterations} \
|
| 105 |
+
# --Mapper.ba_global_images_ratio ${mapper_Mapper_ba_global_images_ratio} \
|
| 106 |
+
# --Mapper.ba_global_points_ratio ${mapper_Mapper_ba_global_points_ratio} \
|
| 107 |
+
# --Mapper.ba_global_images_freq ${mapper_Mapper_ba_global_images_freq} \
|
| 108 |
+
# --Mapper.ba_global_points_freq ${mapper_Mapper_ba_global_points_freq} \
|
| 109 |
+
# --Mapper.ba_global_function_tolerance ${mapper_Mapper_ba_global_function_tolerance} \
|
| 110 |
+
# --Mapper.ba_global_max_num_iterations ${mapper_Mapper_ba_global_max_num_iterations} \
|
| 111 |
+
# --Mapper.ba_global_max_refinements ${mapper_Mapper_ba_global_max_refinements} \
|
| 112 |
+
# --Mapper.ba_global_max_refinement_change ${mapper_Mapper_ba_global_max_refinement_change} \
|
| 113 |
+
# --Mapper.ba_local_max_refinements ${mapper_Mapper_ba_local_max_refinements} \
|
| 114 |
+
# --Mapper.ba_local_max_refinement_change ${mapper_Mapper_ba_local_max_refinement_change} \
|
| 115 |
+
# --Mapper.ba_use_gpu ${mapper_Mapper_ba_use_gpu} \
|
| 116 |
+
# --Mapper.ba_gpu_index ${mapper_Mapper_ba_gpu_index} \
|
| 117 |
+
# --Mapper.ba_min_num_residuals_for_cpu_multi_threading ${mapper_Mapper_ba_min_num_residuals_for_cpu_multi_threading} \
|
| 118 |
+
# --Mapper.snapshot_images_freq ${mapper_Mapper_snapshot_images_freq} \
|
| 119 |
+
# --Mapper.fix_existing_images ${mapper_Mapper_fix_existing_images} \
|
| 120 |
+
# --Mapper.init_min_num_inliers ${mapper_Mapper_init_min_num_inliers} \
|
| 121 |
+
# --Mapper.init_max_error ${mapper_Mapper_init_max_error} \
|
| 122 |
+
# --Mapper.init_max_forward_motion ${mapper_Mapper_init_max_forward_motion} \
|
| 123 |
+
# --Mapper.init_min_tri_angle ${mapper_Mapper_init_min_tri_angle} \
|
| 124 |
+
# --Mapper.init_max_reg_trials ${mapper_Mapper_init_max_reg_trials} \
|
| 125 |
+
# --Mapper.abs_pose_max_error ${mapper_Mapper_abs_pose_max_error} \
|
| 126 |
+
# --Mapper.abs_pose_min_num_inliers ${mapper_Mapper_abs_pose_min_num_inliers} \
|
| 127 |
+
# --Mapper.abs_pose_min_inlier_ratio ${mapper_Mapper_abs_pose_min_inlier_ratio} \
|
| 128 |
+
# --Mapper.filter_max_reproj_error ${mapper_Mapper_filter_max_reproj_error} \
|
| 129 |
+
# --Mapper.filter_min_tri_angle ${mapper_Mapper_filter_min_tri_angle} \
|
| 130 |
+
# --Mapper.max_reg_trials ${mapper_Mapper_max_reg_trials} \
|
| 131 |
+
# --Mapper.local_ba_min_tri_angle ${mapper_Mapper_local_ba_min_tri_angle} \
|
| 132 |
+
# --Mapper.tri_max_transitivity ${mapper_Mapper_tri_max_transitivity} \
|
| 133 |
+
# --Mapper.tri_create_max_angle_error ${mapper_Mapper_tri_create_max_angle_error} \
|
| 134 |
+
# --Mapper.tri_continue_max_angle_error ${mapper_Mapper_tri_continue_max_angle_error} \
|
| 135 |
+
# --Mapper.tri_merge_max_reproj_error ${mapper_Mapper_tri_merge_max_reproj_error} \
|
| 136 |
+
# --Mapper.tri_complete_max_reproj_error ${mapper_Mapper_tri_complete_max_reproj_error} \
|
| 137 |
+
# --Mapper.tri_complete_max_transitivity ${mapper_Mapper_tri_complete_max_transitivity} \
|
| 138 |
+
# --Mapper.tri_re_max_angle_error ${mapper_Mapper_tri_re_max_angle_error} \
|
| 139 |
+
# --Mapper.tri_re_min_ratio ${mapper_Mapper_tri_re_min_ratio} \
|
| 140 |
+
# --Mapper.tri_re_max_trials ${mapper_Mapper_tri_re_max_trials} \
|
| 141 |
+
# --Mapper.tri_min_angle ${mapper_Mapper_tri_min_angle} \
|
| 142 |
+
# --Mapper.tri_ignore_two_view_tracks ${mapper_Mapper_tri_ignore_two_view_tracks}
|
| 143 |
|
| 144 |
|
| 145 |
echo " colmap model_converter ..."
|
colmap_matcher.sh
CHANGED
|
@@ -63,14 +63,14 @@ colmap feature_extractor \
|
|
| 63 |
--ImageReader.camera_model SIMPLE_PINHOLE \
|
| 64 |
--ImageReader.single_camera 1 \
|
| 65 |
--ImageReader.single_camera_per_folder 1 \
|
| 66 |
-
--
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
fi
|
| 75 |
|
| 76 |
if [ "${calibration_model}" == "Pinhole" ]
|
|
@@ -83,7 +83,7 @@ then
|
|
| 83 |
--ImageReader.camera_model PINHOLE \
|
| 84 |
--ImageReader.single_camera 1 \
|
| 85 |
--ImageReader.single_camera_per_folder 1 \
|
| 86 |
-
--
|
| 87 |
--ImageReader.camera_params "${fx}, ${fy}, ${cx}, ${cy}" \
|
| 88 |
--SiftExtraction.num_octaves ${feature_extractor_SiftExtraction_num_octaves} \
|
| 89 |
--SiftExtraction.octave_resolution ${feature_extractor_SiftExtraction_octave_resolution} \
|
|
@@ -111,7 +111,7 @@ then
|
|
| 111 |
--ImageReader.camera_model ${calibration_model} \
|
| 112 |
--ImageReader.single_camera 1 \
|
| 113 |
--ImageReader.single_camera_per_folder 1 \
|
| 114 |
-
--
|
| 115 |
--ImageReader.camera_params "${fx}, ${fy}, ${cx}, ${cy}, ${k1}, ${k2}, ${p1}, ${p2}" \
|
| 116 |
--SiftExtraction.num_octaves ${feature_extractor_SiftExtraction_num_octaves} \
|
| 117 |
--SiftExtraction.octave_resolution ${feature_extractor_SiftExtraction_octave_resolution} \
|
|
@@ -138,7 +138,7 @@ then
|
|
| 138 |
--ImageReader.camera_model ${calibration_model} \
|
| 139 |
--ImageReader.single_camera 1 \
|
| 140 |
--ImageReader.single_camera_per_folder 1 \
|
| 141 |
-
--
|
| 142 |
--ImageReader.camera_params "${fx}, ${fy}, ${cx}, ${cy}, ${k1}, ${k2}, ${k3}, ${k4}" \
|
| 143 |
--SiftExtraction.num_octaves ${feature_extractor_SiftExtraction_num_octaves} \
|
| 144 |
--SiftExtraction.octave_resolution ${feature_extractor_SiftExtraction_octave_resolution} \
|
|
@@ -155,7 +155,7 @@ then
|
|
| 155 |
echo " colmap exhaustive_matcher ..."
|
| 156 |
colmap exhaustive_matcher \
|
| 157 |
--database_path ${database} \
|
| 158 |
-
--
|
| 159 |
--SiftMatching.max_ratio "${matcher_SiftMatching_max_ratio}" \
|
| 160 |
--SiftMatching.max_distance "${matcher_SiftMatching_max_distance}" \
|
| 161 |
--TwoViewGeometry.min_num_inliers "${matcher_TwoViewGeometry_min_num_inliers}" \
|
|
@@ -186,7 +186,7 @@ then
|
|
| 186 |
--database_path "${database}" \
|
| 187 |
--SequentialMatching.loop_detection 1 \
|
| 188 |
--SequentialMatching.vocab_tree_path ${vocabulary_tree} \
|
| 189 |
-
--
|
| 190 |
--SiftMatching.max_ratio "${matcher_SiftMatching_max_ratio}" \
|
| 191 |
--SiftMatching.max_distance "${matcher_SiftMatching_max_distance}" \
|
| 192 |
--TwoViewGeometry.min_num_inliers "${matcher_TwoViewGeometry_min_num_inliers}" \
|
|
|
|
| 63 |
--ImageReader.camera_model SIMPLE_PINHOLE \
|
| 64 |
--ImageReader.single_camera 1 \
|
| 65 |
--ImageReader.single_camera_per_folder 1 \
|
| 66 |
+
--FeatureExtraction.use_gpu ${use_gpu}
|
| 67 |
+
# --SiftExtraction.num_octaves ${feature_extractor_SiftExtraction_num_octaves} \
|
| 68 |
+
# --SiftExtraction.octave_resolution ${feature_extractor_SiftExtraction_octave_resolution} \
|
| 69 |
+
# --SiftExtraction.peak_threshold ${feature_extractor_SiftExtraction_peak_threshold} \
|
| 70 |
+
# --SiftExtraction.edge_threshold ${feature_extractor_SiftExtraction_edge_threshold} \
|
| 71 |
+
# --SiftExtraction.dsp_min_scale ${feature_extractor_SiftExtraction_dsp_min_scale} \
|
| 72 |
+
# --SiftExtraction.dsp_max_scale ${feature_extractor_SiftExtraction_dsp_max_scale} \
|
| 73 |
+
# --SiftExtraction.dsp_num_scales ${feature_extractor_SiftExtraction_dsp_num_scales}
|
| 74 |
fi
|
| 75 |
|
| 76 |
if [ "${calibration_model}" == "Pinhole" ]
|
|
|
|
| 83 |
--ImageReader.camera_model PINHOLE \
|
| 84 |
--ImageReader.single_camera 1 \
|
| 85 |
--ImageReader.single_camera_per_folder 1 \
|
| 86 |
+
--FeatureExtraction.use_gpu ${use_gpu} \
|
| 87 |
--ImageReader.camera_params "${fx}, ${fy}, ${cx}, ${cy}" \
|
| 88 |
--SiftExtraction.num_octaves ${feature_extractor_SiftExtraction_num_octaves} \
|
| 89 |
--SiftExtraction.octave_resolution ${feature_extractor_SiftExtraction_octave_resolution} \
|
|
|
|
| 111 |
--ImageReader.camera_model ${calibration_model} \
|
| 112 |
--ImageReader.single_camera 1 \
|
| 113 |
--ImageReader.single_camera_per_folder 1 \
|
| 114 |
+
--FeatureExtraction.use_gpu ${use_gpu} \
|
| 115 |
--ImageReader.camera_params "${fx}, ${fy}, ${cx}, ${cy}, ${k1}, ${k2}, ${p1}, ${p2}" \
|
| 116 |
--SiftExtraction.num_octaves ${feature_extractor_SiftExtraction_num_octaves} \
|
| 117 |
--SiftExtraction.octave_resolution ${feature_extractor_SiftExtraction_octave_resolution} \
|
|
|
|
| 138 |
--ImageReader.camera_model ${calibration_model} \
|
| 139 |
--ImageReader.single_camera 1 \
|
| 140 |
--ImageReader.single_camera_per_folder 1 \
|
| 141 |
+
--FeatureExtraction.use_gpu ${use_gpu} \
|
| 142 |
--ImageReader.camera_params "${fx}, ${fy}, ${cx}, ${cy}, ${k1}, ${k2}, ${k3}, ${k4}" \
|
| 143 |
--SiftExtraction.num_octaves ${feature_extractor_SiftExtraction_num_octaves} \
|
| 144 |
--SiftExtraction.octave_resolution ${feature_extractor_SiftExtraction_octave_resolution} \
|
|
|
|
| 155 |
echo " colmap exhaustive_matcher ..."
|
| 156 |
colmap exhaustive_matcher \
|
| 157 |
--database_path ${database} \
|
| 158 |
+
--FeatureMatching.use_gpu ${use_gpu} \
|
| 159 |
--SiftMatching.max_ratio "${matcher_SiftMatching_max_ratio}" \
|
| 160 |
--SiftMatching.max_distance "${matcher_SiftMatching_max_distance}" \
|
| 161 |
--TwoViewGeometry.min_num_inliers "${matcher_TwoViewGeometry_min_num_inliers}" \
|
|
|
|
| 186 |
--database_path "${database}" \
|
| 187 |
--SequentialMatching.loop_detection 1 \
|
| 188 |
--SequentialMatching.vocab_tree_path ${vocabulary_tree} \
|
| 189 |
+
--FeatureMatching.use_gpu "${use_gpu}" \
|
| 190 |
--SiftMatching.max_ratio "${matcher_SiftMatching_max_ratio}" \
|
| 191 |
--SiftMatching.max_distance "${matcher_SiftMatching_max_distance}" \
|
| 192 |
--TwoViewGeometry.min_num_inliers "${matcher_TwoViewGeometry_min_num_inliers}" \
|