I'm writing a small C# application that is supposed to process an image. In fact, multiple images per second if possible, so it needs to be fast.
I need to do something like binary thresholding, but a little different I guess.
I need everything in the image to turn black, except for areas / pixels that are a given color.
Lets assume we have this image (random, it can be anything) and we want everything to turn black except the red "o" and the red "e". These two could stay red or turn white, I wouldn't care.
After that I want to do some template matching on the image, thats what I need this "binarization" for.
Is there any way to do that? I didnt find anything about this so far, but maybe I'm lacking the correct search terms.
Thank you very much for any hints.