C:\Programme\CloudCompare\CloudCompare.exe -SILENT -O -GLOBAL_SHIFT AUTO 01_Pointcloud.pts -C_EXPORT_FMT LAS -EXT laz -AUTO_SAVE OFF -RENAME_SF 0 Intensity -SF_OP 0 add 2048 -SAVE_CLOUDS FILE 01_Pointcloud.laz
But what I cannot recomment from a user point of view is to automatically adjust intensity values. I know this is an easy and a tempting thing to do. But I know at least two cases where such an automatation would brake someones workflow. For example if the user want to keep the intensity values as they are in a range from 0-4096. Or just think about it, that every point clould has its unique min/max values. To scale these all differently to 0-65535 is chaotic. Believe me, you creating more problems then you solve.
So in this case I go with daniel´s opinion to let the user decide how to fit intensity values in different pointcloud storage formats.
that's fine, I'm not a LAS expert by any means, I always meant it as an option that could be selected...
But maybe it makes more sense as a standalone feature like maybe call it RemapSFRange then if you do want to do something like that you could apply it to whatever SF you want for whatever reason you wanted.
The problem is that the intensity values are imported as scalar values into a scalar field (SF). And when I save this imported PTS pointcloud as LAS the scalar values in the SF are not saved as LAS intensity values. Instead they are saved as an additional SF to the LAS and the LAS intensities are filled with zeros. So something like this:
daniel wrote: ↑Thu Feb 25, 2021 6:19 pm
Oh, so I did a mistake, it was '//' instead of '#'.
But you are right, having a command line method to rename a scalar field would probably be the simplest solution in the end.
@Chris: the issue with auto assigning a scalar field to 'Intensity' is that LAS files have some expectations regarding intensity values (unsigned short integer). But on the other side, if the user does it on its side, I can't remember if we check the values either or if PDAL will complain if the values are outside of the specifications.
Is there a quick and easy way to insert the header row? Wanting to insert //X Y Z S R G B into the first line of my command when converting a .pts file via CLI, however my file is about 30GB. Any tips?