To confirm cv::Mat in debug, a function added.