weired compiler error warning "Can't compare structures"
This line of code in my Android Studio project JNI function gives error message
for(size_t i=0;i<lines.rows;i++){
if (lines.at<Vec3d>(i)!=Vec3d(0,0,0))
lines_temp.push_back(lines.at<Vec3d>(i));
}
lines is a N x 1 3 Channels 64bit double Mat. But the code complies and runs fine. How do I get this out of the way?
try to add the namespace, like in c++, you have to use cv::vec3d
already declared namespace cv
one part of your IDE (wrongly) thinks, it is C, not C++.
maybe renaimg the file to .cpp or such helps