Ver código fonte

fixed: pointcloud now shows a clear picture

Marc Klinge 1 ano atrás
pai
commit
36124a6fd2
4 arquivos alterados com 5 adições e 0 exclusões
  1. 1 0
      .gitignore
  2. 4 0
      3d-scanner.cpp
  3. BIN
      filtered.ply
  4. BIN
      original.ply

+ 1 - 0
.gitignore

@@ -3,6 +3,7 @@
 CmakeFiles/
 .vscode/
 3d-scanner
+3d-scanner-startup-helper
 cmake_install.cmake
 CMakeCache.txt
 compile_commands.json

+ 4 - 0
3d-scanner.cpp

@@ -33,6 +33,10 @@ try
     spat_filter.set_option(RS2_OPTION_HOLES_FILL, 5);
     // hole_filter.set_option(RS2_OPTION_HOLES_FILL, 1);
 
+    // let the auto exposure settle
+    for (auto i = 0; i < 30; ++i)
+        pipe.wait_for_frames();
+
     rs2::frameset data = pipe.wait_for_frames();
     rs2::video_frame color = data.get_color_frame();
     if (!color)

BIN
filtered.ply


BIN
original.ply