Decimate files

269 views
Skip to first unread message

Albion Shabani

unread,
Feb 17, 2020, 9:11:25 AM2/17/20
to LAStools - efficient tools for LiDAR processing
Hello everybody,

Is there any LAStools that can decimate  las,laz,e57,ply  files ?

For exemple like CLOUDCOMPARE: "C:\Program Files\CloudCompare\CloudCompare.exe" -o C:\Users\Administrator\Desktop\bunny.las -SS SPATIAL 0.005 -C_EXPORT_FMT LAS -SAVE_CLOUDS FILE decimated/bunny.las

Since we have some large files with lots of points, we would like to remove some of the points randomly.

Best regards,
Albion

Martin Isenburg

unread,
Feb 18, 2020, 4:33:00 AM2/18/20
to LAStools - efficient command line tools for LIDAR processing
Hello,

here some simple way to decimate the bunny by simply keeping only a pseudo-random fraction of points. Not the best way of point decimation as it's not feature or anything else preserving.

lasview -i bunny.laz -kamera 0 -72.2 150 0.024 -0.08 2.5 -point_size 5
lasview -i bunny.laz -kamera 0 -72.2 150 0.024 -0.08 2.5 -point_size 5 -keep_random_fraction 0.5
lasview -i bunny.laz -kamera 0 -72.2 150 0.024 -0.08 2.5 -point_size 5 -keep_random_fraction 0.2
lasview -i bunny.laz -kamera 0 -72.2 150 0.024 -0.08 2.5 -point_size 5 -keep_random_fraction 0.1

Regards,

Martin


--
Download LAStools at
http://lastools.org
http://rapidlasso.com
Be social with LAStools at
http://facebook.com/LAStools
http://twitter.com/LAStools
http://linkedin.com/groups/LAStools-4408378
Manage your settings at
http://groups.google.com/group/lastools/subscribe
---
You received this message because you are subscribed to the Google Groups "LAStools - efficient tools for LiDAR processing" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lastools+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lastools/31e6b564-fa22-4d5e-8693-eba2ddc6cec9%40googlegroups.com.
stanford_bunny_100_percent.jpg
stanford_bunny_050_percent.jpg
stanford_bunny_020_percent.jpg
stanford_bunny_010_percent.jpg

Martin Isenburg

unread,
Feb 19, 2020, 1:39:07 AM2/19/20
to LAStools - efficient command line tools for LIDAR processing
Hello,

the bunny model is attached as a LAZ file. It can also be used to play around with the spike-free algorithm to avoid the different surface that overlap in z direction from be triangulated together,

The spike-free version of the bunny was created with

lasview -i bunny.laz -spike_free 0.004 0.001 0.002

just repeatedly press <y> for an interactive visualizaiton of the spike-free algorithm. Press <Y> to run the spike-free algorithm to the end.

Regards,

Martin

bunny_first_return.jpg
bunny_spike_free.jpg
bunny.laz
Reply all
Reply to author
Forward
0 new messages