Some utility functions and classes, for now mostly used in visual odometry.