Can anyone give me a link or some source code or some ideas on how to filter an image and remain with a specific color(s).? Any algorithms are apreciated. I've googled this problem and couldn't find anything. I came up with an algorithm to filter out everything except blue or green, but the red orange and yellow colors are very much the same, they have the R G B colors very close to each other.
(I'm trying to filter an image of a rubik's cube, and determine what colors are in what squares.)
Thanks in advance.