Skip to content

FengyuGuo/SphereSfm_MVS_converter

Repository files navigation

SphereSfm_MVS_converter

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.

Dependencies

This tool requires OpenCV, OmniCV, numpy-quaternion.

Run SphereSfm on dataset

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 the config

Modify config.json. Include the path of the output of SphereSfm, size of equirect image and size of output perspective image.

Convert images, poses and points to perspective format

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.

pose_viz

Run dense reconstruction of COLMAP

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.

result

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages