Page 1 of 1

Rasterize via CLI

Posted: Tue Mar 22, 2022 2:55 pm
by arifrahman
Hi,

I'm trying to rasterize a pointcloud using the command line interface.

Using the GUI version, I get a nice colored .png image
rasterize_gui.png
rasterize_gui.png (114.48 KiB) Viewed 558 times

However, using the CLI, I get a monochrome .tif
rasterize_cli.tif.png
rasterize_cli.tif.png (258.68 KiB) Viewed 558 times
The command used was:

Code: Select all

CloudCompare -O my_pcd.pcd -RASTERIZE -GRID_STEP 0.02 -VERT_DIR 0 -OUTPUT_RASTER_RGB 
How can I get something similar to the GUI version using CLI? i.e. I want .png instead of .tif


Arif

Re: Rasterize via CLI

Posted: Wed Mar 23, 2022 8:36 pm
by daniel
In command line mode, the Rasterize tool can only export rasters to (geo)tiff. And it will save the altitude of points as is, and not as RGB colors or anything. The colored display you see in the GUI version is the false coloring CloudCompare applies on these altitudes (or on the values of the active scalar field).