Ask Your Question

Revision history [back]

int is 2bite or 4bite, I think,,, try to use char or uchar

uchar[] Matarray = new uchar[F.width()*F.height()];

int is 2bite or 4bite, I think,,, try to use char or uchar

uchar[] Matarray = new uchar[F.width()*F.height()];

p.p. if F is grayscale matrix, Can't you use F.data for the native function ?