Previously, I use C API and now I'm migrating to C++ API opencv. Below are some of the thing that doen't go through. It says some kind of error of conditional expression in Mat. Using C API everything seems fine.
/// Initialize (C API)
vector<IplImage*> storeImg;
storeImg.pushback(...);
if( storeImg.at(i) == storeImg.at(0) )//no error
/// Initialize (C++ API)
vector<Mat> storeImg;
storeImg.pushback(...);
/// To use it
if( storeImg.at(i) == storeImg.at(0) )//error: conditional expression is illegal
Is there any other workaround for this?