Basically I'm trying to create a printer which print colours using 3 cartridges as base colours; let's call them A,B and C.
Machine operating: The machine mix an amount of each cartridge to get a new color (the sum of all the amounts should be 100). This new color can be seen as an RGB value.
The question is: How can I get the percentage of each base colour (the amount of each cartridge) from an RGB value to mix that colour? It doesn't matter if the percentage is not exact.
I created a table with some examples of the machine operation, the base colours are highlighted (This table doesn't contains the real examples, it's just for explanation).
Thanks in Advance.
Have you ever tried FANN ?
you can train a network giving 3 inputs as training data and then execute it on your work. It supports more than 20 programming languages so I think it will be easy to integrate ;)