📄 test.c
字号:
#include <stdio.h>
#include <imagelib.h>
#include <string.h>
unsigned char input[30]={10,20,20,40,20,20,70,80,80,90,12,23,15,12,13,2,3,4,5,60,70,80,9,30,4,30,40,3,6,7};
// size: 3x10
unsigned char output[8]={0,0,0,0,0,0,0,0};
// column-2
unsigned char mask[9]={10,20,3,40,50,6,70,8,9}; //3x3 mask
int column=10; // column size of input block.
int shift=-8; //shift value
void main()
{
IMG_conv_3x3(input,output,mask,column,shift);
/* Output should be
30 32 12 17 9 17 22 14
*/
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -