Skip to main content

In my classified raster image I have 3 different green colors and there are also other colors in the image. I would like to remove the green areas or make them transparent. Is there a way to do this automatically for multiple images?

Can you define the "green" with some specific R, G, B values or ranges of R, G, B?


@fluusha

You can remove or replace colors using a rasterexpression evaluator.

4 expressions, one to grab the colors and replace with transparency channel and 3 to "preserve" the rest.

Like this.

Here green RGB 153,192,30 is removed and replaced by full transparency.

Turning

 

 

in

 

You can have it read content of a folder dynamically and process the images in those folders.

 

 


Reply