瀏覽代碼

fixed: pointcloud now shows a clear picture

Marc Klinge 1 年之前
父節點
當前提交
36124a6fd2
共有 4 個文件被更改,包括 5 次插入0 次删除
  1. 1 0
      .gitignore
  2. 4 0
      3d-scanner.cpp
  3. 二進制
      filtered.ply
  4. 二進制
      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)

二進制
filtered.ply


二進制
original.ply