Hey Everyone, just a quick question… If I want to draw an image with a set of icons that I have, and I want the image to analize the colors in the icons and use the appropriate icon when it matches the color of the area that is being drawn.
I’ve edited your post to remove the NSFW image, as many people here post from work and I don’t want anybody getting fired. If the image I chose is not quite correct, please edit in a safe for work version.
Anyway, which part of this are you stuck on? It’s hard to help with general “how do I do this” type questions. You’ll have much better luck if you break your problem down into smaller steps and take those steps on one at a time.
For example, can you create an algorithm that breaks your image down into a grid of colors? Don’t worry about breaking it down into smaller images yet. Just take each section of your image (for example, each section could be 100x100 pixels) and extract a representative color for that section.
There are a bunch of different ways to do that. Start your research there, and try to get just that step working. Then if you get stuck, you can post a MCVE along with a specific technical question. Good luck!