Computing matrix from camera space to board space