From 87d6debb12832d3807064896512948344265cef6 Mon Sep 17 00:00:00 2001 From: jerryzeng Date: Tue, 26 Aug 2025 10:32:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E5=83=8F=E7=B4=A0=E5=9D=90=E6=A0=87?= =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=88=B0=E5=83=8F=E7=B4=A0=E4=B8=AD=E5=BF=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- subPix/sourceCode/subPix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subPix/sourceCode/subPix.cpp b/subPix/sourceCode/subPix.cpp index 3d992d5..09f4f97 100644 --- a/subPix/sourceCode/subPix.cpp +++ b/subPix/sourceCode/subPix.cpp @@ -99,7 +99,7 @@ void subpix( a_pnt.y = InData.LazerWinY; a_pnt.rid = InData.LazerWinRid; a_pnt.value = InData.value; - a_pnt.x = (float)InData.LazerWinX + 8.0f + fx; + a_pnt.x = (float)InData.LazerWinX + 8.0f + fx + 0.5; //adjust point to pixel center a_pnt.rsv = 0; OutSubpixPnt.write(a_pnt); }