How to effectively replace color from a range?


GIMP provides a very handy way of replace or rather Rotating color from one range to another but rotating the range of black is rather hard from this. The Gray option is a bit hard in a way that it only does gray colors.
For example to make effective layer masks that has got a big range of colors on the subject as well as the background, it would be very useful if you could replace a certain range(that is the amount of intensity of blackness that a color has) with a black or white. A lot of youtube videos have tutorials on how to remove backgrounds on an image but a lot of them already have some clear background that on saturating give a perfection isolation between complex objects like hair and the background.
Therefore, if we could replace a certain range of gray/black of colors with the desired white/black color(to a 100% of intensity) it would be perfect to create a perfect layer mask. Is rotating colors the way to do this or are there any other ways?(although GIMP having the "color exchange", it is very hard to control.)
for example, there are 256 shades of gray in an 8 bit image, but we've got to replace the shades of say 1 to 50 to white and the rest to black then how can we achieve this?

7/5/2016 7:43:00 AM

Accepted Answer

The best way to replace a range of gray values (even very dark gray) with some color is to use Color>Map>Gradient map

But if you just want a mask, duplicate the layer, Color>Desaturate and then use the Threshold tool, or Brightness/Contrast for a smoother transition, or even the Levels or Curves tools.

7/5/2016 10:58:00 AM