在opencv3中可编译通过,但opencv4中无法编译,报错:
error: CV_COMP_CORREL was not declared in this scope.
是因为opencv4中CV_COMP_CORREL定义在types_c.h文件中,只需包含以下头文件即可。
#include <opencv2/imgproc/types_c.h>