Solved

Removing green colored areas in Raster


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?

icon

Best answer by gio 5 June 2019, 17:38

View original

2 replies

Userlevel 2
Badge +17

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

Badge +3

@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