-
Notifications
You must be signed in to change notification settings - Fork 21
Description
Hi!
I was recently following the steps in the" Step-by-step example (individual images) "to run the code.I got some problem in step
1、When i download the official SfM (Structure-from-Motion) reconstruction containing the DSLR images and the cube map images you posed in
An SfM (Structure-from-Motion) reconstruction containing the DSLR images and the cube map images must be created using an external tool. We provide an example SfM reconstruction here (unzip into the same directory as the input data archives).
the TX、TY and TZ in image.txt is
-inf -inf inf
I estimate the scaled factor using
mkdir sparse_reconstruction_scaled ${PIPELINE_PATH}/SfMScaleEstimator -s sparse_reconstruction -si . -i scan_clean -o sparse_reconstruction_scaled --cube_map_face_camera_id 0 .
when i execute the command
${PIPELINE_PATH}/ImageRegistrator \ --scan_alignment_path scan_clean/scan_alignment.mlp \ --occlusion_mesh_path surface_reconstruction/surface.ply \ --occlusion_splats_path surface_reconstruction/splats.ply \ --multi_res_point_cloud_directory_path multi_res_point_cloud_cache \ --image_base_path . \ --state_path sparse_reconstruction_scaled/colmap_model \ --output_folder_path dslr_calibration_jpg \ --observations_cache_path observations_cache \ --camera_ids_to_ignore 0
the error"Less than 2 images defined"occured.(PS: The input data of this code incluing sparse_reconstruction_scaled/colmap_model )

I found that the problem is with function ReadColmapImages in the file colmap_model.cc.

The information was successfully read into the string line.But looks like the function std::istringstream can not recognized
-inf -inf inf
in line,so the data after the first
inf (Either positive or negative)
can't be read into
>> new_image->image_T_global.data()[4] >> new_image->image_T_global.data()[5] >> new_image->image_T_global.data()[6] >> new_image->camera_id >> new_image->file_path;respectively.

By the way,I am running this project on ubuntu 20.04.The environment is built according to the instructions in dockfile.
Any suggestion about how to deal with this problem would be welcome.

I also want to know how did you get two camera model and
-inf -inf inf
by using COLMAP.
I would really appreciate it if you could answer my question!