Main Content

select

Select points in point cloud

Since R2020b

Description

ptCloudOut = select(ptCloud,indices) returns a pointCloud object containing only the points that are selected using linear indices. This function requires a Computer Vision Toolbox™ license.

ptCloudOut = select(ptCloud,row,column) returns a pointCloud object containing only the points that are selected using row and column subscripts. This syntax applies only if the input is an organized point cloud data of size M-by-N-by-3.

ptCloudOut = select(___,'OutputSize',outputSize) returns the selected points as a pointCloud object of size specified by outputSize.

Input Arguments

collapse all

Point cloud, specified as a pointCloud object.

Indices of selected points, specified as a vector.

Row indices, specified as a vector. This argument applies only if the input is an organized point cloud data of size M-by-N-by-3.

Column indices, specified as a vector. This argument applies only if the input is an organized point cloud data of size M-by-N-by-3.

Size of the output point cloud, ptCloudOut, specified as 'selected' or 'full'.

  • If the size is 'selected', then the output contains only the selected points from the input point cloud, ptCloud.

  • If the size is 'full', then the output is same size as the input point cloud ptCloud. Cleared points are filled with NaN and the color is set to [0 0 0].

Output Arguments

collapse all

Point cloud, returned as a pointCloud object.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

GPU Code Generation
Generate CUDA® code for NVIDIA® GPUs using GPU Coder™.

Version History

Introduced in R2020b