pcfitcuboidalign
R2026bSyntax
Description
specifies options using one or more name-value arguments in addition to any combination of
input arguments from previous syntaxes. For example, model = pcfitcuboidalign(___,Name=Value)AngleRange=[25 75]
sets the range of angles over which to identify the cuboid orientation to between 25 and 75
degrees.
Examples
Input Arguments
Name-Value Arguments
Output Arguments
Algorithms
Use this function when the cuboid orientation must align with a specified coordinate frame. Use the
pcfitcuboidfunction to fit a cuboid without orientation constraints, which can result in a closer fit to the input point cloud.This function uses an L-shape based detection algorithm to fit a cuboid to point cloud data. For every point in the point cloud, the function iterates through all possible directions for a rectangle and finds the corresponding square errors. The possible directions for the rectangle lie within [0, 90] degrees,each adjacent pair of rectangle sides are orthogonal. You can specify a different range of rectangle directions by using the
AngleRangeargument. The function then selects the direction that has the least error and fits the rectangle along that direction.
References
[1] Zhang, Xiao, Wenda Xu, Chiyu Dong, and John M. Dolan. “Efficient L-Shape Fitting for Vehicle Detection Using Laser Scanners.” 2017 IEEE Intelligent Vehicles Symposium (IV), June 2017, 54–59. https://doi.org/10.1109/IVS.2017.7995698.
Extended Capabilities
Version History
Introduced in R2026b
