Image recognition in C++ (diploma)