convertCamera2ToFToCameraSpace
open fun convertCamera2ToFToCameraSpace(tofDepthImage: Image, confidenceImage: Image, tofIntrinsics: PointCloudHelper.ToFIntrinsics, confidenceThreshold: Int, maxPoints: Int): Array<FloatBuffer>
Converts Camera2 ToF depth image to 3D points in camera space (no ARCore required). This is a simplified version following Zebra's documentation approach.
Return
Array of two FloatBuffers: [points, colors] in camera space
Parameters
tofDepthImage
Camera2 depth image (ImageFormat.DEPTH16)
confidenceImage
Optional confidence from Camera2 if available
tofIntrinsics
ToF camera intrinsics
confidenceThreshold
Minimum depth confidence (0-255), 0 to include all
maxPoints
Maximum number of points to process