The basic patter recognition and classification with openCV

In this tutorial we go to introduce to the pattern recognitions basics in openCV.
In pattern recognitions before we can classificate an element we need train our system. We go to train with 3 class with 100 samples each one.
Then we create 2 matrix trainData and traninClasses with 300 samples:
int train_sample_count = 300;
CvRNG rng_state = cvRNG(-1);
CvMat* [...]