I have a question about C++. I'm working with OpenCV. I'm pretty new to both.
I have this declaration:
struct scoredRotatedRect
{
double score;
RotatedRect ellipse;
vector<Point> contour;
};
The problem is that when I declare a scoredRotatedRect
, it recognizes the double
as a member but not the non-primitive types as members.
I.e.,
cur_scoredRotatedRect.score=0; // not a problem
cur_scoredRotatedRect.ellipse=a_RotatedRect; // get an error
The error is
"'ellipse' : is not a member of 'scoredRotatedRect'".
What is causing this?