Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenCV Error

for (int k = 0; k < faceROI.rows; k++) { for (int j = 0; j < faceROI.cols; j++) { cout<<"["<<k<<","<<j<<"]"<<" element: "<< faceROI.at<Vec3b>(j,k)<<endl; } at this place i am getting :

OpenCV Error: Assertion failed (dims <= 2 && data && (unsigned)i0 < (unsigned)si ze.p[0] && (unsigned)(i1DataType<_Tp>::channels) < (unsigned)(size.p[1]channel s()) && ((((sizeof(size_t)<<28)|0x8442211) >> ((DataType<_Tp>::depth) & ((1 << 3 ) - 1))*4) & 15) == elemSize1()) in cv::Mat::at, file c:\opencv\build\include\op encv2\core\mat.hpp, line 537

its a simple program and i can't print out all elements of image. p.s. i will gona use each and every element.

OpenCV Error

for (int k = 0; k < faceROI.rows; k++) { for (int j = 0; j < faceROI.cols; j++) { cout<<"["<<k<<","<<j<<"]"<<" element: "<< faceROI.at<Vec3b>(j,k)<<endl; }} at this place i am getting :

OpenCV Error: Assertion failed (dims <= 2 && data && (unsigned)i0 < (unsigned)si ze.p[0] && (unsigned)(i1DataType<_Tp>::channels) < (unsigned)(size.p[1]channel s()) && ((((sizeof(size_t)<<28)|0x8442211) >> ((DataType<_Tp>::depth) & ((1 << 3 ) - 1))*4) & 15) == elemSize1()) in cv::Mat::at, file c:\opencv\build\include\op encv2\core\mat.hpp, line 537

its a simple program and i can't print out all elements of image. p.s. i will gona use each and every element.

OpenCV Error

for (int k = 0; k < faceROI.rows; k++)
{
for (int j = 0; j < faceROI.cols; j++)
{
cout<<"["<<k<<","<<j<<"]"<<" element: "<< faceROI.at<Vec3b>(j,k)<<endl;
}
at 

`at this place i am getting :

OpenCV Error: Assertion failed (dims <= 2 && data && (unsigned)i0 < (unsigned)si ze.p[0] && (unsigned)(i1DataType<_Tp>::channels) < (unsigned)(size.p[1]channel s()) && ((((sizeof(size_t)<<28)|0x8442211) >> ((DataType<_Tp>::depth) & ((1 << 3 ) - 1))*4) & 15) == elemSize1()) in cv::Mat::at, file c:\opencv\build\include\op encv2\core\mat.hpp, line 537

its a simple program and i can't print out all elements of image. p.s. i will gona use each and every element.

OpenCV ErrorError trying print every Mat element

for (int k = 0; k < faceROI.rows; k++)
    {
        for (int j = 0; j < faceROI.cols; j++)
        {
          cout<<"["<<k<<","<<j<<"]"<<" element: "<< faceROI.at<Vec3b>(j,k)<<endl;
         }

`at this place i am getting :

OpenCV Error: Assertion failed (dims <= 2 && data && (unsigned)i0 < (unsigned)si ze.p[0] && (unsigned)(i1DataType<_Tp>::channels) < (unsigned)(size.p[1]channel s()) && ((((sizeof(size_t)<<28)|0x8442211) >> ((DataType<_Tp>::depth) & ((1 << 3 ) - 1))*4) & 15) == elemSize1()) in cv::Mat::at, file c:\opencv\build\include\op encv2\core\mat.hpp, line 537

its a simple program and i can't print out all elements of image. p.s. i will gona use each and every element.