add function to read cv::mat in PWP3D