PI should be replaced with CV_PI globally.