Page 1 of 1

RASTERIZE multiple output

Posted: Tue Oct 11, 2022 3:34 am
by tdasun94
Hello everyone,

I am new to both this field and the CloudCompare Software.

I have a LiDAR dataset collected over a period of time (by driving a car) in form of CSV files. These CSV files contain X,Y,Z coordinates and intensities. I am trying to convert them to 2D images (paln view) using the Rasterize tool. Since I have large number of CSV files, I used the command line mode and the following command to convert them at once.

Code: Select all

for %i in (DATASET_PATH\*") do CloudCompare -SILENT -O "%i" -RASTERIZE -GRID_STEP 0.08 -OUTPUT_RASTER_RGB
It was successful and I got the images in gray scale mode. However, the images are in different resolutions (height and width) and scales. Also, images do not share the same origin/center (Center should be the car) The two images attached below show the image output of the LiDAR data collected in two consecutive time frames.

Please let me know if there is anything that I could do to obtain the images in the same resolution and in a manner which all the images share the same origin.

TIA,

Thakshila.

Re: RASTERIZE multiple output

Posted: Wed Oct 12, 2022 8:09 pm
by daniel
So the 'resolution' (or the raster size) will depend on the extents of your cloud by default (and I guess each cloud has a different extent in XY coordinates).

Currently the command line mode doesn't allow you to specify the spatial extents of the raster (contrarily to the GUI version with the 'edit grid' button). The best thing you could do is to crop the clouds so that they all have the same minimal extent (but that's probably not what you want either).

And the centering issue is probably due to the same cause (assuming your car is at (0, 0)).

Sadly, apart from improving the -RASTERIZE command line interface, I don't see any easy solution. Maybe looking at the CloudCompy project (the Python interface) if by any chance the Rasterize tool has already been interfaced. I assume you would have more control with Python. Maybe...