I know I can initialize a Mat this way
cv::Mat image(cv::Size(480,640), CV_32FC1);
But is there a way I can initialize it using a variable ?
auto type = image.type();
cv::Mat image2(cv::Size(480,640), type);
1 | initial version |
I know I can initialize a Mat this way
cv::Mat image(cv::Size(480,640), CV_32FC1);
But is there a way I can initialize it using a variable ?
auto type = image.type();
cv::Mat image2(cv::Size(480,640), type);