From 919a8efe5f75b9d84ed79c91dfbea5263da8ce59 Mon Sep 17 00:00:00 2001
From: C3032 <C3032@BC3032>
Date: 星期五, 16 一月 2026 09:34:39 +0800
Subject: [PATCH] Merge branch 'feature/Camera3D'
---
LB_SmartVisionCameraSDK/PHM6000/PHM6000Profiler.cs | 37 +++++++++++++++++++++++++++++++++----
1 files changed, 33 insertions(+), 4 deletions(-)
diff --git a/LB_SmartVisionCameraSDK/PHM6000/PHM6000Profiler.cs b/LB_SmartVisionCameraSDK/PHM6000/PHM6000Profiler.cs
index 345ff2b..fdee162 100644
--- a/LB_SmartVisionCameraSDK/PHM6000/PHM6000Profiler.cs
+++ b/LB_SmartVisionCameraSDK/PHM6000/PHM6000Profiler.cs
@@ -318,8 +318,8 @@
/// <param name="szModuleType">妯″潡鍚�, char* szModuleType</param>
/// <param name="szSerialNumber">搴忓垪鍙�, char* szSerialNumber</param>
/// <returns>鑾峰彇澶辫触杩斿洖-1锛屽惁鍒欒繑鍥�0銆�</returns>
- [DllImport("PHM6000API", CallingConvention = CallingConvention.StdCall, EntryPoint = "GetCameraInformation")]
- public static extern int GetCameraInformation(IntPtr pHandle, int nIndex, IntPtr szModuleType, IntPtr szSerialNumber);
+ //[DllImport("PHM6000API", CallingConvention = CallingConvention.StdCall, EntryPoint = "GetCameraInformation")]
+ //public static extern int GetCameraInformation(IntPtr pHandle, int nIndex, IntPtr szModuleType, IntPtr szSerialNumber);
//PHM6000_API(int) GetCameraInformation(void* pHandle, int nIndex, char* szModuleType, char* szSerialNumber);
/// <summary>
/// 鑾峰彇鐓х浉鏈轰俊鎭�
@@ -342,8 +342,8 @@
/// <param name="szAddress">IP鍦板潃瀛楃涓�, char* szAddress</param>
/// <param name="nPort">绔彛鍙�, int* nPort</param>
/// <returns>鑾峰彇澶辫触杩斿洖-1锛屽惁鍒欒繑鍥�0銆�</returns>
- [DllImport("PHM6000API", CallingConvention = CallingConvention.StdCall, EntryPoint = "GetCameraAddress")]
- public static extern int GetCameraAddress(IntPtr pHandle, int nIndex, IntPtr szAddress, IntPtr nPort);
+ //[DllImport("PHM6000API", CallingConvention = CallingConvention.StdCall, EntryPoint = "GetCameraAddress")]
+ //public static extern int GetCameraAddress(IntPtr pHandle, int nIndex, IntPtr szAddress, IntPtr nPort);
//PHM6000_API(int) GetCameraAddress(void* pHandle, int nIndex, char* szAddress, int* nPort);
/// <summary>
/// 寰楀埌杩炴帴鐨処P
@@ -874,6 +874,35 @@
/// <param name="KeepImageSize">鍥惧儚澶у皬鏄惁淇濇寔</param>
[DllImport("PHM6000API", CallingConvention = CallingConvention.StdCall, EntryPoint = "SetTransformParameter")]
public static extern void SetTransformParameter(IntPtr pHandle, float fAngle, int xOffset, int yOffset, int hMirror, int vMirror, int KeepImageSize = 0);
+
+ #region PointCloud3D Functions
+
+ [DllImport("PointCloud3D", CallingConvention = CallingConvention.StdCall, EntryPoint = "AddZAPoints")]
+ public static extern int AddZAPoints(IntPtr pInstance, IntPtr points, int nCount, float fStepX, float fStepY, int nDownSample);
+
+ [DllImport("PointCloud3D", CallingConvention = CallingConvention.StdCall, EntryPoint = "ClearPCLPoints")]
+ public static extern int ClearPCLPoints(IntPtr pInstance);
+
+ [DllImport("PointCloud3D", CallingConvention = CallingConvention.StdCall, EntryPoint = "GetPointCloudBound")]
+ public static extern int GetPointCloudBound(IntPtr pInstance, ref double pMin, ref double pMax);
+
+ [DllImport("PointCloud3D", CallingConvention = CallingConvention.StdCall, EntryPoint = "RenderPCLWindow")]
+ public static extern void RenderPCLWindow(IntPtr pInstance, int nWidth, int nHeight);
+
+ [DllImport("PointCloud3D", CallingConvention = CallingConvention.StdCall, EntryPoint = "SetLookUpTableRange")]
+ public static extern void SetLookUpTableRange(IntPtr pInstance, double fMin, double fMax);
+
+ [DllImport("PointCloud3D", CallingConvention = CallingConvention.StdCall, EntryPoint = "ShowCubeAxes")]
+ public static extern void ShowCubeAxes(IntPtr pInstance, int bInit);
+
+ [DllImport("PointCloud3D", CallingConvention = CallingConvention.StdCall, EntryPoint = "ShowLookUpTable")]
+ public static extern void ShowLookUpTable(IntPtr pInstance, double x, double y, double xWide, double yWide);
+
+ [DllImport("PointCloud3D", CallingConvention = CallingConvention.StdCall, EntryPoint = "UpdatePCLPointColors")]
+ public static extern int UpdatePCLPointColors(IntPtr pInstance, string szColoring);
+
+ #endregion
+
/// <summary>
/// 灏嗙粨鏋勪綋鎸囬拡杞崲涓篸ouble锛堟ā鎷烠++鐨�(double)(int64)&鎿嶄綔锛�
/// </summary>
--
Gitblit v1.9.3