hello anugrah,
please see-also this topic, Topic 83012, there’s a patch to modify the sample for using cv::Mat
cv::Mat