This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

IMGLIB里面的函数IMG_conv_3x3_i8_c8s为什么输出全0?还是没有输出?



unsigned char in[900*1024];

unsigned char out_conv[900*1024];

char mask3[9]={0,-1,0,-1,4,-1,0,-1,0};

char *mask=mask3;

IMG_conv_3x3_i8_c8s(in,out_conv,640*3,480,mask,9);//卷积运算

这是我测试用的代码,为什么这个函数执行后目的地址全0了呢?是我的模版找的问题吗?这个模版应该定义为什么样的区域才对呢?

求解答。谢谢