This repo is a tool to convert the image and pose from SphereSfm to perspective image and coresponding pose so that user can run dense reconstruction of COLMAP.
This tool requires OpenCV, OmniCV, numpy-quaternion.
Follow the instruction of SphereSfm to get the pose of sphere image. And export the result as txt. The file images.txt and points3D.txt is necessary for next steps.
Modify config.json. Include the path of the output of SphereSfm, size of equirect image and size of output perspective image.
run
python3 convert_pts.py config.json
python3 convert_img.py config.json
This will create /persp folder in working folder of SphereSfm.
The conversion result can be visualized in COLMAP. The sphere camera looks like cubes in the reconstructed scene.
Start COLMAP. Use Import Model to import the converted data. Then run the dense reconstruction pipeline to get the dense point cloud.
Theratically the output format confines all version of COLMAP. So you can use newest version of COLMAP to run dense reconstruction.
Below is the result after stereo and fusion.