so I am trying to get the value of a matrix, which type I do not know, using row and column value. I basically want to implement the following:
bool someFunction(cv::Mat m){
return m(1,0) != 0;
}
I know this will error out since I need to specify the type like so m.at< Type >(1,0) but I would not know the type.
I tried doing the following: m.at< m.type() >(1,0) but that, of course, errors out.
I am wondering what could potentially work here. Thanks!