Skip to main content
Question

How to Apply a Color Palette to Intensity Before or During Rasterization?

  • February 27, 2025
  • 2 replies
  • 27 views

sami26beniaouf
Contributor
Forum|alt.badge.img+7

Hello,

I am generating an orthophoto from a point cloud using the ImageRasterizer transformer, with intensity as the input for pixel values. However, the only available option is grayscale, and I would like to apply a high-contrast color scale (e.g., green to red) instead of grayscale.

Is there a way to change the intensity palette before rasterizing the point cloud, so the resulting raster already has the desired colors?

Alternatively, can I modify the color palette during or after rasterizing to achieve a similar effect?

Attached is an example of the desired output, where intensity is mapped to a high-contrast color scale.

Thanks in advance for any suggestions!

High contrast with colors
Greyscale
Orthophoto in greyscale

 

2 replies

saraatsafe
Safer
Forum|alt.badge.img+8
  • Safer
  • February 28, 2025

Hi ​@sami26beniaouf, I’d suggest using a RasterExpressionEvaluator to colourize your orthophoto-- you can use it towards the end of your workflow to specify what range of bands should be what colour. This tutorial goes over how you can use it but feel free to let us know if you have any further questions! 


sami26beniaouf
Contributor
Forum|alt.badge.img+7

Hi ​@saraatsafe,

Thank you for your response. The example in the tutorial demonstrates how to colorize a point cloud using an RGB orthophoto. However, in my case, my point cloud already contains both RGB colors and intensity values.

What I’m specifically interested in is changing the default grayscale palette of the intensity. By default, intensity values are displayed in shades of gray, but I would like to apply a high-contrast color palette (e.g., green to red) to improve visibility and better distinguish objects—either within the point cloud itself or in the orthophoto generated from it.

Additionally, I noticed that in the example, the RasterExpressionEvaluator is only used to brighten the raster’s RGB values. Would there be a way to use it or another method to remap intensity values to a custom color gradient?

Thanks in advance for your help!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings