Skip to main content
Question

Replacing Raster Band Values with Mask


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.

2 replies

takashi
Influencer
  • March 9, 2016

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


mark2atsafe
Safer
Forum|alt.badge.img+44

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


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