Retrying this old opencv formula