From e19f85e2e7dae3c28e7abc6ac2c609f5cb1149e8 Mon Sep 17 00:00:00 2001 From: Ben <987807597@qq.com> Date: Sun, 5 Jul 2026 23:39:15 -0700 Subject: [PATCH] =?UTF-8?q?=E7=82=B9=E4=BA=91=E9=87=87=E9=9B=86=E5=89=8D?= =?UTF-8?q?=E5=90=AF=E7=94=A8=20VzNL=5FEnableFillLaserPoint:SDK=20?= =?UTF-8?q?=E8=BE=93=E5=87=BA=E5=AE=9A=E9=95=BF=E5=A1=AB=E5=85=85=E6=BF=80?= =?UTF-8?q?=E5=85=89=E7=BA=BF,=E6=A0=85=E6=A0=BC=E5=88=97=E5=AF=B9?= =?UTF-8?q?=E9=BD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/VizumCamera.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/VizumCamera.cpp b/src/VizumCamera.cpp index d9f6d02..07b8ff3 100644 --- a/src/VizumCamera.cpp +++ b/src/VizumCamera.cpp @@ -906,7 +906,17 @@ bool VizumCamera::CapturePointCloudWithAutoDetect(PointCloud& pointCloud, int ti } else { LOG_INFO("[VizumCamera] Laser detection initialized successfully"); } - + + // 2.5 启用激光点填充:SDK 对每条激光线输出定长点序列,无测量处填充占位点, + // 使扫描线构成真正列对齐的 W×H 栅格(供组织化点云保存/栅格聚类使用) + result = VzNL_EnableFillLaserPoint(m_deviceHandle, VzTrue); + if (result != 0) { + VzNL_GetErrorInfo(result, errorMsg); + LOG_WARN("[VizumCamera] VzNL_EnableFillLaserPoint failed: {} (error code: {})", errorMsg, result); + } else { + LOG_INFO("[VizumCamera] Fill laser point mode enabled (rasterized scan lines)"); + } + // 3. 启动自动检测模式(与VznlCamera::StartAutoDetect一致) m_isPaused = false; LOG_INFO("[VizumCamera] Step 2: Starting AutoDetectEx...");