简体   繁体   English

有没有办法使用 lidR 包在 x 和 y 轴上绘制“真实”坐标

[英]Is there a way to plot the ''true'' coordinates on the x and y axis using lidR package

I want to plot a pointcloud in R using the lidR package.我想使用 lidR 包在 R 中绘制一个点云。 When I plot a pointcloud it automatically uses x and y axis values where the coordinates have been normalized starting from 0, I want to see the actual coordinates from the attribute of the las dataset.当我绘制点云时,它会自动使用 x 和 y 轴值,其中坐标已从 0 开始标准化,我想从 las 数据集的属性中查看实际坐标。

LASfile <- system.file("extdata", "MixedConifer.laz", package="lidR")
las <- readLAS(LASfile)
plot(las, axis = TRUE)

This is documented in plot这记录在plot

clear_artifacts logical. clear_artifacts合乎逻辑。 It is a known and documented issue that the 3D visualisation with rgl displays artifacts.使用rgl的 3D 可视化显示伪影是一个已知且已记录的问题。 The points look aligned and/or regularly spaced in some view angles.在某些视角中,这些点看起来是对齐的和/或规则地间隔开的。 This is because rgl computes with single precision float.这是因为rgl使用单精度浮点数进行计算。 To fix that the point cloud is shifted to (0,0) to reduce the number of digits needed to represent its coordinates.修复点云移动到 (0,0) 以减少表示其坐标所需的位数。 The drawback is that the point cloud is not plotted at its actual coordinates.缺点是点云不是在其实际坐标处绘制的。

plot(las, axis = TRUE, clear_artifacts = FALSE)

This is also somehow documented in chapter 2.3 of the book .在本书的第 2.3 章中也有所记载。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM