RASTERIZE multiple output

Feel free to ask any question here
Post Reply
tdasun94
Posts: 1
Joined: Tue Oct 11, 2022 2:42 am

RASTERIZE multiple output

Post 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.
Attachments
000002_RASTER_RGB_2022-10-11_00h20_34_593.png
000002_RASTER_RGB_2022-10-11_00h20_34_593.png (11.66 KiB) Viewed 746 times
000001_RASTER_RGB_2022-10-11_00h20_34_840.png
000001_RASTER_RGB_2022-10-11_00h20_34_840.png (11.1 KiB) Viewed 746 times
daniel
Site Admin
Posts: 7710
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: RASTERIZE multiple output

Post 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...
Daniel, CloudCompare admin
Post Reply