Skip to main content
Question

Replacing Raster Band Values with Mask

  • March 9, 2016
  • 2 replies
  • 47 views

Hi,

I'm trying to convert the background values (No Data) of an ECW to another colour. I know the values of the background pixels can vary due to the ECW's lossy compression. Is there a way I can specify a mask and replace the band values of pixels in the mask?

I tried using the clip function but all it does is split the raster image into two (one inside and one outside of the mask)

Thanks.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

takashi
Celebrity
  • March 9, 2016

Hi @wkng, the RasterCellValueReplacer or RaterExpressionEvaluator might help you.


mark2atsafe
Safer
Forum|alt.badge.img+59

If you have a vector mask then set the color of the vector feature with the FeatureColorSetter, and then drop it onto the raster using the VectorOnRasterOverlayer transformer