Clear Filters
Clear Filters

How to get original intensity value from LiDAR (las) data instead of grayscale intensity

8 views (last 30 days)
Hi,
I have been reading a las file using readPointCloud(). However, the intensity is showing in gray scale, meaning, the original intensity value from las file has been translated. I need the original intensity value that has been stored in las file. The original intensity can be read manually using file scan functions, but not with readPointCloud(). Can anyone help me with this?
Cheers.
Manzur

Answers (1)

Anshuman
Anshuman on 21 Feb 2024
If you need the original intensity values directly from the LAS file, you may have to use a more specialized library or function that gives you raw access to the data without any modification.
For example, in MATLAB, you can use the "lasread" function from the "lidar" toolbox to read LAS files, which should give you access to the original intensity values. Here's an example of how you might use it:
% Read the LAS file
lasFile = 'path_to_your_file.las';
[ptCloud, lasHeader] = lasread(lasFile);
% Access the original intensity values
originalIntensities = ptCloud.Intensity;
Please refer to following File Exchange submission:

Products


Release

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!