cdcseacave/openMVS

Output of ReconstructMesh

Harr7y opened this issue · 7 comments

Why the outputs of ReconstructMesh scene_dense.mvs -p scene_dense.ply are "scene_dense_mesh.mlp", "scene_dense_mesh.ply", "scene_dense_mesh_raw.ply"? I didn't get the "scene_mesh.mvs" for RefineMesh .

cmake -DCMAKE_BUILD_TYPE=Debug ..
The repo is built in a debug mode, otherwise, I will get an error "Assertion failed: (facets.empty() && inter.type == intersection_t::VERTEX && inter.v1 == vi)", cmake -DCMAKE_BUILD_TYPE=Release .. doesn't work.

-- Found CUDA: /usr/local/cuda (found version "12.1")
-- The CUDA compiler identification is NVIDIA 12.1.66
-- Check for working CUDA compiler: /usr/local/cuda/bin/nvcc
-- Check for working CUDA compiler: /usr/local/cuda/bin/nvcc -- works
-- Detecting CUDA compiler ABI info
-- Detecting CUDA compiler ABI info - done
-- WARNING: BREAKPAD was not found: Please specify BREAKPAD directory using BREAKPAD_ROOT env. variable
-- Can't find BreakPad. Continuing without it.
-- Found Python3: /usr/bin/python3.8 (found version "3.8.10") found components: Interpreter Development
-- Python 3.8 found (include: /usr/include/python3.8)
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake (found version "1.71.0") found components: iostreams program_options system serialization python38
-- Found Eigen3: /usr/local/include/eigen3 (Required is at least version "3.4")
-- Eigen 3.4.0 found (include: /usr/local/include/eigen3)
-- Found OpenCV: /usr (found version "4.2.0")
-- OpenCV 4.2.0 found (include: /usr/include/opencv4)
-- Using header-only CGAL
-- Targetting Unix Makefiles
-- Using /usr/bin/c++ compiler.
-- Found GMP: /usr/lib/x86_64-linux-gnu/libgmp.so
-- Found MPFR: /usr/lib/x86_64-linux-gnu/libmpfr.so
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake (found suitable version "1.71.0", minimum required is "1.48")
-- Boost include dirs: /usr/include
-- Boost libraries:
-- Using gcc version 4 or later. Adding -frounding-math
-- VCG found (include: /usr/local/include)
-- GLEW 2.1.0 found (include: /usr/include)
-- GLFW3 3.3.2 found (include: )
-- Configuring done
-- Generating done
-- Build files have been written to: /home/harry/LAST/openMVS/make

First of all pls build in release mode.
Second you do not need an mvs file from mesh. The mesh and scene-dense.mvs are what you need

Thanks for your reply.

  1. How to build in release mode??
    cmake -DCMAKE_BUILD_TYPE=Release .. doesn't work.
  2. So what should I feed into RefineMesh?
    replace RefineMesh **scene_mesh.mvs** -m scene_dense_mesh.ply -o scene_dense_mesh_refine.mvs with RefineMesh **scene_dense.mvs** -m scene_dense_mesh.ply -o scene_dense_mesh_refine.mvs ? It didn't work.
  3. How can we convert export the PLY projects to MVS or OBJ formats?

Thanks for your reply.

  1. How to build in release mode??
    cmake -DCMAKE_BUILD_TYPE=Release .. doesn't work.
  2. So what should I feed into RefineMesh?
    replace RefineMesh **scene_mesh.mvs** -m scene_dense_mesh.ply -o scene_dense_mesh_refine.mvs with RefineMesh **scene_dense.mvs** -m scene_dense_mesh.ply -o scene_dense_mesh_refine.mvs ? It didn't work.
  3. How can we convert export the PLY projects to MVS or OBJ formats?

The second issue, you may refer to #1058.

Thanks for your reply.

  1. How to build in release mode??
    cmake -DCMAKE_BUILD_TYPE=Release .. doesn't work.
  2. So what should I feed into RefineMesh?
    replace RefineMesh **scene_mesh.mvs** -m scene_dense_mesh.ply -o scene_dense_mesh_refine.mvs with RefineMesh **scene_dense.mvs** -m scene_dense_mesh.ply -o scene_dense_mesh_refine.mvs ? It didn't work.
  3. How can we convert export the PLY projects to MVS or OBJ formats?

The second issue, you may refer to #1058.

Thanks for your advice. But I want to refine the mesh because the generated mesh (through ReconstructMesh) is coarse. I want it to be finer.

RefineMesh scene_dense.mvs -m scene_dense_mesh.ply

Thanks for your reply.
I have one more question, how to convert the final '.mvs' format (scene_dense_mesh_refine.mvs) into '.ply' format.