How can I use element in Mat by at function without specifying its type.
sample:
Mat.at(i,j) == if (Mat.type == CV_8U) --> Mat.at<unsigned char>(i,j)
Mat.at(i,j) == if (Mat.type == CV_32F) --> Mat.at<float>(i,j)
1 | initial version |
How can I use element in Mat by at function without specifying its type.
sample:
Mat.at(i,j) == if (Mat.type == CV_8U) --> Mat.at<unsigned char>(i,j)
Mat.at(i,j) == if (Mat.type == CV_32F) --> Mat.at<float>(i,j)