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

Userlevel 2
Badge +17

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

Userlevel 4
Badge +25

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

Reply