mvs-texturing icon indicating copy to clipboard operation
mvs-texturing copied to clipboard

seam leveling dose not work

Open Rogers34 opened this issue 3 years ago • 1 comments

Dear friends, thanks for your brilliant work! I use voxgraph to generate mesh which use tsdf model. And I use texrecon to texture the mesh. However the result is not as expected. There are many big mosaic on the mesh. It seems that the seam leveling dose not work. Could you give me some advice to solve this problem? Thanks a lot!

image

rogers@rogers-GL65-9SD:~/nowhere/data/workshop1$ ~/nowhere/texrecon/mvs-texturing/build/apps/texrecon/texrecon scene::undistorted mesh.ply textured /home/rogers/nowhere/texrecon/mvs-texturing/build/apps/texrecon/texrecon (built on Jan 11 2021, 17:43:00) Load and prepare mesh: Reading PLY: 1207592 verts... 1286690 faces... done. NAN error in mesh.cc:113: 0.000488281 / -nan / -nan (0.0707109 / 0 / 0.0707109) [1 / -nan / -nan] NAN error in mesh.cc:113: 0 / -nan / -nan (0.071823 / 0 / 0.071823) [1 / -nan / -nan] NAN error in mesh.cc:113: 0 / -nan / -nan (0.067806 / 0 / 0.067806) [1 / -nan / -nan] NAN error in mesh.cc:113: 0 / -nan / -nan (0.0504551 / 0 / 0.0504551) [1 / -nan / -nan] NAN error in mesh.cc:113: 0 / -nan / -nan (0.0571984 / 0 / 0.0571984) [1 / -nan / -nan] NAN error in mesh.cc:113: 0 / -nan / -nan (0.0707246 / 0 / 0.0707246) [1 / -nan / -nan] NAN error in mesh.cc:113: 0 / -nan / -nan (0.0501537 / 0 / 0.0501537) [1 / -nan / -nan] NAN error in mesh.cc:113: 0.000488281 / -nan / -nan (0.0516648 / 0 / 0.0516648) [1 / -nan / -nan] NAN error in mesh.cc:113: 0 / -nan / -nan (0.0607477 / 0 / 0.0607477) [1 / -nan / -nan] NAN error in mesh.cc:113: 0 / -nan / -nan (0.0513733 / 0 / 0.0513733) [1 / -nan / -nan] NAN error in mesh.cc:113: 0 / -nan / -nan (0.0674025 / 0 / 0.0674025) [1 / -nan / -nan] NAN error in mesh.cc:113: 0 / -nan / -nan (0.050377 / 0 / 0.050377) [1 / -nan / -nan] NAN error in mesh.cc:113: 0 / -nan / -nan (0.0631357 / 0 / 0.0631357) [1 / -nan / -nan] NAN error in mesh.cc:113: 0.000345267 / -nan / -nan (0.0588193 / 0 / 0.0588193) [1 / -nan / -nan] NAN error in mesh.cc:113: 0.000345267 / -nan / -nan (0.0506205 / 0 / 0.0506205) [1 / -nan / -nan] NAN error in mesh.cc:113: 0.00059802 / -nan / -nan (0.058516 / 0 / 0.058516) [1 / -nan / -nan] NAN error in mesh.cc:113: 0 / -nan / -nan (0.0525009 / 0 / 0.0525009) [1 / -nan / -nan] NAN error in mesh.cc:113: 0 / -nan / -nan (0.0522161 / 0 / 0.0522161) [1 / -nan / -nan] NAN error in mesh.cc:113: 0 / -nan / -nan (0.0633049 / 0 / 0.0633049) [1 / -nan / -nan] NAN error in mesh.cc:113: 0 / -nan / -nan (0.0711272 / 0 / 0.0711272) [1 / -nan / -nan] NAN error in mesh.cc:113: 0 / -nan / -nan (0.0726317 / 0 / 0.0726317) [1 / -nan / -nan] NAN error in mesh.cc:113: 0 / -nan / -nan (0.0725481 / 0 / 0.0725481) [1 / -nan / -nan] NAN error in mesh.cc:113: 0 / -nan / -nan (0.0504458 / 0 / 0.0504458) [1 / -nan / -nan] NAN error in mesh.cc:113: 0 / -nan / -nan (0.0680065 / 0 / 0.0680065) [1 / -nan / -nan] Warning: Zero-length normals detected: 120 face normals, 127 vertex normals Generating texture views: Initializing scene with 36 views... Initialized 36 views (max ID is 35), took 12ms. Loading 100%... done. (Took 0.008s)
Building adjacency graph: Adding edges 100%... done. (Took 0.916s)
1449742 total edges. View selection: Building BVH from 1286690 faces... done. (Took: 997 ms) Calculating face qualities 100%... done. (Took 2.307s)
Postprocessing face infos 100%... done. (Took 0.047s)
Maximum quality of a face within an image: 105.31 Clamping qualities to 6.67735 within normalization. Writing data cost file... done. Optimizing: Time[s] Energy 0 1240581 8 1239990 8 1238632 9 1237788 10 1237556 11 1237426 11 1237380 12 1237348 13 1237324 13 1237305 543204 faces have not been seen Took: 18.719s Generating texture patches: Running... done. (Took 0.94s) 79561 texture patches. Running global seam leveling: Create matrices for optimization... done. Lhs dimensionality: 800310 x 800310 Calculating adjustments: Color channel 0: CG took 51 iterations. Residual is 9.97018e-05 Color channel 2: CG took 52 iterations. Residual is 9.03505e-05 Color channel 1: CG took 52 iterations. Residual is 8.59984e-05 Took 0.692 seconds Adjusting texture patches 100%... done. (Took 0.123s)
Running local seam leveling: Blending texture patches 100%... done. (Took 2.136s)
Generating texture atlases: Sorting texture patches... done. Working on atlas 228 100%... done. Finalizing texture atlases... done. (Took: 0.025s) Building objmodel: Saving model... done. Whole texturing procedure took: 39.84s

Rogers34 avatar Jan 28 '21 09:01 Rogers34

Seam leveling requires connectivity between the faces and it seems like there are a lot of gaps.

nmoehrle avatar Jun 03 '21 08:06 nmoehrle