openMVG / Image_datasets

Image dataset for testing OpenMVG
Other
41 stars 17 forks source link

failed reloading header created with openMVGSpherical2Cubic #2

Closed adescombes closed 3 years ago

adescombes commented 3 years ago

Hello @pmoulon,

First of all, many thanks for all the work, it is always a pleasure to work with openMVG. I am trying to densify a model computed with 591 spherical images. I followed the steps listed here. The incremental reconstruction of the sparse model worked fine. I am looking for a way to get a dense model now, I performed all the steps but DensifyPointCloud does not work. I run the following command :

./openMVG_main_openMVG2openMVS -i $dataset/omvs/cubic/sfm_data_perspective.bin -o $dataset/omvs/scene.mvs -d $dataset/omvs/cubic/

and then

./DensifyPointCloud -i $dataset/omvs/scene.mvs

When I do so I get the following error :

12:58:19 [App     ] Build date: Nov 11 2020, 19:17:06
12:58:19 [App     ] CPU: Intel(R) Xeon(R) CPU E5-2680 v3 @ 2.50GHz (48 cores)
12:58:19 [App     ] RAM: 251.81GB Physical Memory 1.91GB Virtual Memory
12:58:19 [App     ] OS: Linux 4.15.0-96-generic (x86_64)
12:58:19 [App     ] SSE & AVX compatible CPU & OS detected
12:58:20 [App     ] Command line: -i /media/scanvan/model/camera_40008603-40009302/20201001/20201001-175336_20200220-155037_sion-loop-1-normalized/omvs/scene.mvs
12:58:20 [App     ] CUDA device 0 initialized: GeForce GTX TITAN X (compute capability 5.2; memory 11.93GB)
12:58:20 [App     ] Camera model loaded: platform 0; camera  0; f 0.000x0.000; poses 3546
libpng error: Not a PNG file
12:58:20 [App     ] error: failed loading image header
12:58:20 [App     ] error: failed reloading image '/media/scanvan/model/camera_40008603-40009302/20201001/20201001-175336_20200220-155037_sion-loop-1-normalized/omvs/cubic/20200220-155037-476283_perspective_00000000.png'
12:58:20 [App     ] error: invalid project

I am using the most recent versions of openMVG and openMVS. Do you know why I get the following error? Also, when I pass the original spherical images as input (-d $dataset/omvs/images_tif/ ) of openMVG_main_openMVG2openMVS instead of the cubic ones, I get the same error. Which ones should I use when running this command?

Many thanks in advance!