openMVS icon indicating copy to clipboard operation
openMVS copied to clipboard

RefineMesh gives specific unexpected results occasionally.

Open mrbemani opened this issue 8 years ago • 7 comments

This happens to some photo groups.

after ReconstructMesh, the mesh file is generated correctly. as shown below:

ReconstructMesh -i dense.mvs -o mesh.mvs

mesh.ply

but after RefineMesh, the refined mesh breaks into pieces....as shown below:

RefineMesh -i mesh.mvs -o mesh_refined.mvs

mesh_refined.ply

This usually occurs at the center of model where most of the details at.

mrbemani avatar Jan 19 '17 16:01 mrbemani

this looks really bad, never saw this before can you share the problem dataset?

cdcseacave avatar Jan 19 '17 17:01 cdcseacave

Seems like there is a lot of inverted facets (black triangles) at the end of ReconstructMesh. I think it make the refineMesh process being very confused later on.

pmoulon avatar Jan 19 '17 17:01 pmoulon

you can download the problem dataset from: http://www.smallworld-network.com.cn/img/upsidedownhouse.tar.gz

mrbemani avatar Jan 19 '17 17:01 mrbemani

btw, if I rescale the photos down to 1024x768, the problem goes away, but the model loses most of its detail due to low resolution of the images.

mrbemani avatar Jan 19 '17 17:01 mrbemani

Thx, I'll have a look! At what step did you rescale the images? I suggest to try using the full scale images for the entire process, except for the densification step (use --resolution-level 2 or more to scale down the images).

cdcseacave avatar Jan 19 '17 18:01 cdcseacave

I manually rescaled the data set down to 1024x768, and used that to run the whole process, the problem goes away. After that, I tried 2048x1536, the refined model broke again.

mrbemani avatar Jan 20 '17 02:01 mrbemani

What is there in .mvs file?

AchyutPujar avatar Jan 29 '22 09:01 AchyutPujar