Min3d and OpenCV working together