Fits a cylinder on a set of 3D points.
cylinderFit(
las,
method = "ransac",
n = 5,
inliers = 0.9,
conf = 0.95,
max_angle = 30,
n_best = 20
)
LAS
object.
method for estimating the cylinder parameters. Currently available: "nm"
, "irls"
, "ransac"
and "bf"
.
numeric
- number of points selected on every RANSAC iteration.
numeric
- expected proportion of inliers among stem segments' point cloud chunks.
numeric
- confidence level.
numeric
- used when method == "bf"
. The maximum tolerated deviation, in degrees, from an absolute vertical line (Z = c(0,0,1)).
integer
- estimate optimal RANSAC parameters as the median of the n_best
estimations with lowest error.
vector of parameters