xyzij数据的哪一部分是点云?
Which part of the xyzij data is the point cloud?
我想把点云数据图形化的展示给用户,想知道xyzIj
数据的哪一部分是点云数据的实际坐标。我假设它是 XyzIj.xyz
,但在开发者网站上,此调用被描述为 "packed coordinate triplet"。
当我打印出来时,它只是单独的点号;这是否意味着它打印出 x 点、y 点、z 点、x 点、y 点等...还是我理解错了?
mPointCount = xyzIj.xyzCount;
//Is this the coordinate points of the point cloud?
FloatBuffer newPointCloudPoints = xyzIj.xyz;
int i = 0;
//Printing out all the points
while(newPointCloudPoints.get(i) != 0) {
Log.i(TAG, "point cloud " + i + " " + newPointCloudPoints.get(i));
i++;
}
每个 "point" 在缓冲区中有三个条目。
浮点缓冲区的第一个索引是x,第二个是y,第三个是z。每个点都重复序列。
for (int i = 0; i < xyzIjData.xyzCount; i += 3) {
float x = xyz.get(i);
float y = xyz.get(i + 1);
float z = xyz.get(i + 2);
}
我想把点云数据图形化的展示给用户,想知道xyzIj
数据的哪一部分是点云数据的实际坐标。我假设它是 XyzIj.xyz
,但在开发者网站上,此调用被描述为 "packed coordinate triplet"。
当我打印出来时,它只是单独的点号;这是否意味着它打印出 x 点、y 点、z 点、x 点、y 点等...还是我理解错了?
mPointCount = xyzIj.xyzCount;
//Is this the coordinate points of the point cloud?
FloatBuffer newPointCloudPoints = xyzIj.xyz;
int i = 0;
//Printing out all the points
while(newPointCloudPoints.get(i) != 0) {
Log.i(TAG, "point cloud " + i + " " + newPointCloudPoints.get(i));
i++;
}
每个 "point" 在缓冲区中有三个条目。
浮点缓冲区的第一个索引是x,第二个是y,第三个是z。每个点都重复序列。
for (int i = 0; i < xyzIjData.xyzCount; i += 3) {
float x = xyz.get(i);
float y = xyz.get(i + 1);
float z = xyz.get(i + 2);
}