convertImageToToFColorBuffer
open fun convertImageToToFColorBuffer(cameraImage: Image, tofDepthImage: Image, tofIntrinsics: PointCloudHelper.ToFIntrinsics, imageCoords: FloatBuffer, maxPoints: Int): FloatBuffer
Matches RGB colors from ARCore camera image to ToF depth points. Similar to convertImageToColorBuffer() but handles ToF-to-RGB coordinate mapping.
Return
FloatBuffer of RGB colors [r, g, b] per point
Parameters
cameraImage
ARCore RGB camera image (YUV420_888)
tofDepthImage
ToF depth image (ImageFormat.DEPTH16)
tofIntrinsics
ToF camera intrinsics
imageCoords
Image region coordinates for the depth area (from Frame)
maxPoints
Maximum number of points to process