Main Content

transformPointsForward

Apply forward geometric transformation to points

Since R2022a

Description

example

pointsOut = transformPointsForward(pointsIn,tform) applies the forward geometric transformation tform to the input pointsIn and returns the transformed LOAM feature points.

Examples

collapse all

Load an organized lidar point cloud from a MAT file.

ld = load("drivingLidarPoints.mat");
ptCloud = ld.ptCloud;

Detect LOAM feature points.

points = detectLOAMFeatures(ptCloud);

Define a rigid transformation object.

tform = rigidtform3d([0 0 0],[2 1 4]);

Transform the LOAM feature points.

tformedPoints = transformPointsForward(points,tform);

Visualize the transformed LOAM points.

figure
show(tformedPoints)

Input Arguments

collapse all

Input points, specified as a LOAMPoints object.

Rigid 3-D transformation, specified as a rigidtform3d object.

Output Arguments

collapse all

Transformed points, returned as a LOAMPoints 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 R2022a

expand all