Hi 陈卿,
Thank you so much for your answer. I think this is the answer of my
question. I have edited the code as below.
for (int i = 0;i<a.rows(); i++)
{
for(int j =0;j<a.cols();j++)
{
(b.dataAddr() + b.step1() * (i + a.rows()))[j * b.channels()]=
(a.dataAddr() + a.step1() * i)[j *a.channels()];
}
}
But now, it gives an error like this,
-The type of the expression must be an array type but it resolved to
long.
There must be a small mistake in my code, and I couldn't find it
yet...