I want to code an app to generate an Image Map.
It will scan an image and declare contiguous areas of the same colo(u)r to be parts of the same Image Map Area.
I can imagine saying that black is used for edges, to delineate areas, and navy is used for text, so should be ignored. Imagine a map of the USA, with the states outlined in black with states names in navy, and states colo(u)red in neither black nor navy.
Do you know of any library that would help with that? I prefer C/C++ or Python or Delphi, but will accept any language, just to see how it is done