Home > Back-end >  One of the arguments' values is out of the range index is out of range () function in cvP
One of the arguments' values is out of the range index is out of range () function in cvP

Time:09-22

cout <"Image width and height respectively is:" & lt; for (int i=0; i {

For (int j=0; J & lt; Img - & gt; Width; I++)
{
P=cvGet2D (img, I, j);
//note that save form for BGR OpenCV, for the convenience of reading, save as RGB in TXT form
Outfile & lt; }
Outfile & lt; CodePudding user response:

For (int j=0; J & lt; Img - & gt; Width; I++)
Nested loop, should be the final i++ j++
  • Related