Rotating Point Cloud on Z Axis

56 views
Skip to first unread message

Evan Carlson

unread,
Dec 29, 2022, 1:35:45 PM12/29/22
to LAStools - efficient tools for LiDAR processing
Hello,  It looks like there are a few different ways to transform a point cloud on the x & y axis using las2las, but what is the best way to rotate a point cloud on the z access?

Jochen Rapidlasso

unread,
Dec 29, 2022, 4:03:49 PM12/29/22
to LAStools - efficient tools for LiDAR processing
Hi,
this is easy. We implemented the general matrix transformation since a while.

The matrix to rotate around z is
cos-a  -sin-a 0
sin-a   cos-a 0
0 0 1
1 1 1

So if you want to turn by 33 degrees around the z axis:

33° = cos a = 0,839
33° = sin a = 0,545

0,839 -0,545 0
0,545 0,839 0
0 0 1
1 1 1

The test
    las2las  -i france.laz -o rotated.laz -transform_matrix 0.839,-0.545,0 0.545,0.839,0 0,0,1 1,1,1
shows in the hopefully soon released new GUI the rotated picture (shifted by x to avoid overlap):

rotated.png

Happy rotating!

Jochen @rapidlasso
Reply all
Reply to author
Forward
0 new messages