Posit based on OpenCV source code