So the end result that I'm trying to achieve is... given a standard RGB image, and for each individual pixel, filter/delete/replace it based on how close it is to any shade of pure grey. Another way to say it would be, keep only black, white and pure grey pixels... but allow fuzziness for grey.
An example situation would be like if you were to overlay/merge a 80% opaque grayscale image over a colorful image... then try to cut out the background, aka anything with color, except that now the grey stuff which you want to keep will have slight color variations due to the 80% opacity.
Another example, which is actually what I am trying to do... OCR/extract some 80% opaque white shadowed text from any type of background.

Actually for this specific project, I am able to narrow it down ahead of time to the box around the text, aka can count on the fact that nothing in the background will be brighter/whiter/lighter? than the text i wish to OCR
I'm sorry, I'm guessing there is probably some perfect terminology to easily describe this stuff that I just haven't learned yet
