I create a:
CvRect aaaaa=CvRect(0,0,10,10);
but I got this error:
error C2661: ‘CvRect::CvRect’ : no overloaded function takes 4 arguments
I don’t undestand why i got this since it takes 4 arguments.
I’m using c++ and Opencv 2.1
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From reading the reference guide for CvRect it seems that it is a
structwith no constructor. But there is a helper method namedcvRect()that can be used to create aCvRect: