Home > Software engineering >  0 of minimum circumscribed circle. Exe x54670454 in untreated exception: 0 xc0000005: while reading
0 of minimum circumscribed circle. Exe x54670454 in untreated exception: 0 xc0000005: while reading

Time:09-26

Point pt;
Vectorfor (int i=0; i{
Uchar * PTR=(uchar *) (src_a - & gt; ImageData + I * src_a - & gt; WidthStep);
for (int j=0; j{
If (PTR [j]==255)
{
Pt. X=j;
Pt. Y=I;
Pt_v. Push_back (pt);
}
}
}

CvPoint temp=CvPoint (0, 0);
Point2f center (0, 0);
Float the radius=0.0;

MinEnclosingCircle (pt_v, center, the radius);//programs run here appear error
Temp. X=cvRound (center. X);
Temp. Y=cvRound (center. Y);
Tips are as follows: minimum circumscribed circle. Exe of 0 x54670454 in untreated exception: 0 xc0000005: while reading position 0 x00210000 access conflict

CodePudding user response:

Excuse me each great god, so how to solve? Thank you all for the first,,,,,,, online, etc

CodePudding user response:

I use the platform is VS2010 + opencv2.4.10

CodePudding user response:

If (PTR [j]==255)
{
Pt. X=j;
Pt. Y=I;
Pt_v. Push_back (pt);
}

Why so say? The gray image you? You have a look at your face value in the vector into account

CodePudding user response:

I also am the situation, don't know why, the building Lord solved

CodePudding user response:

Collapsed in the pop-up dialog box, press the corresponding button to enter debugging press Alt + 7 key to view the Call Stack, namely "the Call Stack" from the inside to the following out of from the inner to outer function Call history, double-click a row to the cursor to the Call of the source code or assembly instruction, don't understand when double click on the next line, until we can read ,
  • Related