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.

关于C64x+IMGLIB库函数的问题



img_erode函数输入mask[3][3]矩阵值是取0和1吗?调用的时候直接写mask不行,改成&mask[0][0]?另外关于函数的说明是不是有错误呢,左边mask和右边的input没有对应呀

  • 目前大概知道mask矩阵里面取正数或负数,关键是mask是怎么设置掩膜的,调了半天觉得很奇怪,求指导

  • Because the code reads a 34-bit context for each 32-bits of output, the input needs to be one byte longer than the output in order to make the rightmost two pixels well-defined. 输入比输出多了2bit,所以要多出1个字节来使最右那两个像素得到定义。但是input不是8 pixels per byte吗?

    另外社区怎么没人回复哇?求指导

  • 还有就是多出的2bit是什么?是原图像内容,还是自定义的。如果是原图像内容,那么每次输入34bit,和后面要求输入像素是64的倍数岂不矛盾了?