Ask Your Question

Revision history [back]

How to use Mat.at<internal type="">(i,j)?

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)