Solution: Add the following header files can be:
#include <opencv2/opencv.hpp> #include <opencv2/imgproc/types_c.h>