cdcseacave / openMVS

open Multi-View Stereo reconstruction library
http://cdcseacave.github.io
GNU Affero General Public License v3.0
3.33k stars 907 forks source link

Title: Assertion `dims == 2' failed in DensifyPointCloud #1157

Closed Abbsalehi closed 3 months ago

Abbsalehi commented 3 months ago

Description:

I am encountering an error when running the command to get disparity maps using the MvgMvsPipeline script.

$python3 /home/user/openMVS/scripts/python/MvgMvsPipeline.py 
/home/user/Downloads/SceauxCastle/images /home/user/Downloads/SceauxCastle
--steps 0 1 2 3 4 5 6 7 8 9 11 12 13 14 15 16 17 21 22 --1 p HIGH n 8 --2 m EXHAUSTIVE

Error:

DensifyPointCloud: /home/user/openMVS/libs/Common/Types.h:1615: int SEACAVE::
TDMatrix<TYPE>::area() const [with TYPE = float]: Assertion `dims == 2 failed

The error seems to originate from this line: https://github.com/cdcseacave/openMVS/blob/ce03889e2055a3d6cbcae9dd5a93b5eeea94b909/libs/Common/Types.h#L1615C2-L1615C66

Environment:

Operating System: Linux 20 LTS OpenMVS version: v2.2.0 Python version: 3.8

Any guidance on resolving this issue would be greatly appreciated.

Abbsalehi commented 3 months ago
  1. Removed the "make" folder: $rm -rf make $mkdir make $cd make

  2. Recompiled it: $cmake -DCMAKE_BUILD_TYPE=Release -D CGAL_DO_NOT_WARN_ABOUT_CMAKE_BUILD_TYPE=TRUE ..

  3. Rebuilt it: $ cmake --build . -j4

It works now!