run.sh
1指定内参
--ImageReader.camera_params "1451.7946523730436,1438.2609968095967,960,540,0,0,0,0" \
#!/bin/bash calibDataRoot="/home/xx/2project/0data/house3/100/colmap100ori_and_100render/res/" imagePath="/home/xx/2project/0data/house3/100/colmap100ori_and_100render/images/" mkdir -p ${calibDataRoot}/input colmap feature_extractor --database_path $calibDataRoot/input/database.db \ --image_path ${imagePath} \ --ImageReader.single_camera true \ --ImageReader.camera_model OPENCV \ --ImageReader.camera_params "1451.7946523730436,1438.2609968095967,960,540,0,0,0,0" \ --SiftExtraction.estimate_affine_shape true \ --SiftExtraction.domain_size_pooling true \ --SiftExtraction.num_threads -1 \ --SiftExtraction.gpu_index 0 #sequential_matcher colmap exhaustive_matcher --database_path $calibDataRoot/input/database.db \ --SiftMatching.guided_matching true \ --SiftMatching.num_threads -1 --SiftMatching.gpu_index 0 # mkdir -p ${calibDataRoot}/input colmap mapper --database_path $calibDataRoot/input/database.db \ --image_path ${imagePath} \ --output_path $calibDataRoot/input \ --Mapper.ba_local_max_refinements 3 \ --Mapper.ba_local_max_num_iterations 100 \ --Mapper.max_extra_param 99999 \ --Mapper.ba_refine_principal_point 0 \ --Mapper.ba_refine_focal_length 0 \ --Mapper.ba_refine_extra_params 0 \ --Mapper.tri_ignore_two_view_tracks false \ --Mapper.num_threads -1 colmap model_converter --input_path ${calibDataRoot}/input/0 \ --output_type txt --output_path ${calibDataRoot}/input/0
标签:Mapper,--,内参,畸变,path,input,colmap,calibDataRoot From: https://www.cnblogs.com/gooutlook/p/18257411