First opencv formula