Pattern Recognition and Image Processing in C++