Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Poor Resolution | 3D Model #1168

Open
abhimanyuchadha96 opened this issue Aug 13, 2024 · 3 comments
Open

Poor Resolution | 3D Model #1168

abhimanyuchadha96 opened this issue Aug 13, 2024 · 3 comments

Comments

@abhimanyuchadha96
Copy link

Describe the bug
The output model, generated with most of the default params has poor resolution quality. How can one improve this?

Screenshots
The texture in the orignal image and the reconstructed model along with dents in the mesh can be seen below.
Screenshot 2024-08-12 at 10 38 31 PM
Screenshot 2024-08-12 at 10 38 37 PM
Screenshot 2024-08-12 at 10 39 48 PM

Parameters used:-

openMVG_main_SfMInit_ImageListing -i frames -o matches -c 3 -f 1620.0
openMVG_main_ComputeFeatures -i matches/sfm_data.json -o matches -m SIFT -p ULTRA
openMVG_main_PairGenerator -i matches/sfm_data.json -o matches/pairs.bin
openMVG_main_ComputeMatches -i matches/sfm_data.json -o matches/matches.putative.bin -p matches/pairs.bin -n $matcher
openMVG_main_GeometricFilter -i matches/sfm_data.json -m matches/matches.putative.bin -g e -o matches/matches.e.bin 
openMVG_main_SfM --sfm_engine $sfm_engine --input_file matches/sfm_data.json --match_file matches/matches.e.bin --output_dir reconstruction
openMVG_main_ComputeSfM_DataColor -i reconstruction/sfm_data.bin -o reconstruction/colorized.ply

openMVG_main_openMVG2openMVS -i reconstruction/sfm_data.bin -o scene.mvs -d undistorted_images

echo $(pwd)

DensifyPointCloud -i "scene.mvs -o scene_dense.mvs --cuda-device -1
ReconstructMesh -i scene_dense.mvs -o scene_dense_mesh.mvs --cuda-device -1
RefineMesh -i scene_dense_mesh.mvs -o scene_dense_mesh_refine.mvs --cuda-device -1 
TextureMesh -i scene_dense_mesh_refine.mvs -o scene.ply --cuda-device -1 
@cdcseacave
Copy link
Owner

if the resolution is the problem, you can try adding --resolution-level 0 to DensifyPointCloud command; by default the half image resolution is used

@abhimanyuchadha96
Copy link
Author

I’ll try this parameter.
From the above images, do you think we could improve the reconstruction, refinement and the texture of the mesh too?
The goal is to improve the overall quality of the reconstructed 3D model. (Not sure if dents or roughness is the right word for it, but attached the pictures above)

@cdcseacave
Copy link
Owner

for such glossy surfaces best is to use very diffuse lightning when acquiring the photos, and as for any textureless surface you want the best possible image quality and resolution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants