C++ OpenCV - collection of samples