Utilities for openCV.