Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 887dfd1

Browse files
author
YaoYao
committed
convert colmap sfm to mvsnet input
1 parent 5db8458 commit 887dfd1

File tree

2 files changed

+453
-4
lines changed

2 files changed

+453
-4
lines changed

README.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ The following steps are required to reproduce the point cloud results:
8383

8484
R-MVSNet point cloud results with full post-processing are also provided: [DTU evaluation point clouds](https://drive.google.com/open?id=1L0sQjIVYu2hYjwpwbWSN8k42QhkQDjbQ)
8585

86+
87+
88+
89+
8690
## File Formats
8791

8892
Each project folder should contain the following
@@ -98,7 +102,7 @@ Each project folder should contain the following
98102
│ └── ...
99103
└── pair.txt
100104
```
101-
If you want to apply R/MVSNet to your own data, please structure your data into such a folder.
105+
If you want to apply R/MVSNet to your own data, please structure your data into such a folder. We also provide a script `colmap2mvsnet.py` to convert COLMAP SfM result to R/MVSNet input.
102106

103107
### Image Files
104108
All image files are stored in the `images` folder. We index each image using an 8 digit number starting from `00000000`. The following camera and output files use the same indexes as well.
@@ -135,15 +139,20 @@ IMAGE_ID1 # index of reference image 1
135139
...
136140
```
137141

142+
### MVSNet input from COLMAP SfM
143+
We provide a script to convert COLMAP SfM result to R/MVSNet input. After recovering SfM result and undistorting all images, COLMAP should generate a dense folder `COLMAP/dense/` containing an undistorted image folder `COLMAP/dense/images/` and a undistorted camera folder `COLMAP/dense/sparse/`. Then, you can use the following command to generate the R/MVSNet input:
144+
145+
``python colmap2mvsnet.py --dense_folder COLMAP/dense``
146+
147+
The depth sample number will be automatically computed using the inverse depth setting. If you want to generate the MVSNet input with a fixed depth sample number (e.g., 256), you could specified the depth number via `--max_d 256`.
148+
138149

139150
### Output Format
140151
The ``test.py`` script will create a `depths_mvsnet` folder to store the running results, including the depth maps, probability maps, scaled/cropped images and the corresponding cameras. The depth and probability maps are stored in `.pfm` format. We provide the python IO for pfm files in the `preprocess.py` script, and for the c++ IO, we refer users to the [Cimg](http://cimg.eu/) library. To inspect the pfm format results, you can simply type `python visualize.py .pfm`.
141152

142153
## Todo
143154

144155
* Validation script
145-
* View selection from Altizure/COLMAP/OpenMVG SfM output
146-
* Depth sample selection from Altizure/COLMAP/OpenMVG SfM output
147156

148157
## Changelog
149158

@@ -169,5 +178,6 @@ The ``test.py`` script will create a `depths_mvsnet` folder to store the running
169178
### 2019 April 10
170179
* Add [Baiduyun](https://pan.baidu.com/s/1Wb9E6BWCJu4wZfwxm_t4TQ#list/path=%2F) (code: s2v2) link for mainland China users
171180

172-
181+
### 2019 April 29
182+
* Add `colmap2mvsnet.py` script to convert COLMAP SfM result to MVSNet input, including depth range estimation and view selection
173183

0 commit comments

Comments
 (0)