Rasterize via CLI

Feel free to ask any question here
Post Reply
arifrahman
Posts: 1
Joined: Tue Mar 22, 2022 2:40 pm

Rasterize via CLI

Post 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 563 times

However, using the CLI, I get a monochrome .tif
rasterize_cli.tif.png
rasterize_cli.tif.png (258.68 KiB) Viewed 563 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
daniel
Site Admin
Posts: 7710
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Rasterize via CLI

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