Hello,

The same LOOP is working in BGR but not in BGRA : What is the problem about cv::Vec4b on a pixel loop ? Thx

int x2, y2;

for (int x = 0; x < imgMos.cols; x++)

{

x2 = x + m_mos.mx0;

for (int y = 0; y < imgMos.rows; y++)

{

y2 = y + m_mos.my0;

if ((x2 >= 0) && (x2 < imTemp.cols) && (y2 >= 0) && (y2 < imTemp.rows))

{

imTemp.atcv::Vec4b(y2, x2)[0] = imgMos.atcv::Vec4b(y, x)[0];

imTemp.atcv::Vec4b(y2, x2)[1] = imgMos.atcv::Vec4b(y, x)[1];

imTemp.atcv::Vec4b(y2, x2)[2] = imgMos.atcv::Vec4b(y, x)[2];

imTemp.atcv::Vec4b(y2, x2)[3] = imgMos.atcv::Vec4b(y, x)[3];

}

}

}