I want to have a set of all Pixel Coordinates of an image. Unfortunately i get the following error message:
"error C2678: binary '<' : no operator found which takes a left-hand operand of type 'const cv::Point' (or there is no acceptable conversion)"
Mat img;
img = imread( "[...]\\picture.jpg", 1 );
set<Point> pointset;
for( int x = 0 ; x < img.cols ; x++)
{
for (int y = 0 ; y < img.rows ; y++)
{
pointset.insert(Point(x,y));
}
}
I suspect that every type that goes into a set has to provide functions for comparison and cv::Point fails to do that. Unfortunately I'm new to C++ and OpenCV and don't know how to check if my suspicion is true.