OpenCV based image patch selector