updated createsamples app utility functions to new c++ API from old c
updated createsamples app utility functions to new c++ API from old c

opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv