📄 err_diffusion.h
字号:
//#define PRINTF_SUPPORT
#define MAX_PERMISSIBLE_ERROR 0
segment ("mydata2") unsigned char output[8*16];
segment ("mydata1") short temp[17];
short zero_in = 0;
segment ("mydata2") unsigned char input1[64]= {101,100,100,1,30,50,51,50,
20,30,41,50,60,90,90,90,
12,10,01,20,30,40,40,41,
15,60,61,80,80,90,10,20,
12,32,03,30,40,50,60,70,
10,01,20,30,40,40,41,21,
12,10,01,20,30,40,40,41,
210,20,32,104,43,112,56,20};
segment ("mydata2") unsigned char input2[8*16]=
{101,100,100,1,30,50,51,50,20,30,41,50,60,90,90,90,
12,10,01,20,30,40,40,41,15,60,61,80,80,90,10,20,
70,10,01,20,30,40,40,41,21,12,32,03,30,40,50,60,
12,10,01,20,30,40,40,41,210,20,32,104,43,112,56,20,
101,100,100,1,30,50,51,50,20,30,41,50,60,90,90,90,
60,61,80,80,90,10,20,12,10,01,20,30,40,40,41,15,
01,20,30,40,40,41,21,12,32,03,30,40,50,60,70,10,
210,20,32,104,43,112,56,20,12,10,01,20,30,40,40,41};
// with threshold 50
unsigned char exp_output1[64]={
255,0,255,0,0,255,0,0,
0,0,0,0,0,0,255,0,
0,0,0,0,255,0,0,0,
0,255,0,0,0,255,0,0,
0,0,0,0,0,0,0,255,
0,0,0,0,255,0,0,0,
0,0,0,0,0,0,0,0,
255,0,0,255,0,255,0,0};
unsigned char exp_output2[8*16]={
255,0,255,0,0,255,0,0,0,0,255,0,0,255,0,255,
0,0,0,0,0,0,0,255,0,0,0,255,0,0,0,0,
255,0,0,0,0,0,0,0,0,0,0,0,0,0,255,0,
0,0,0,0,0,255,0,0,255,0,0,255,0,255,0,0,
255,0,255,0,0,0,0,0,0,0,0,0,0,0,255,0,
0,0,0,0,255,0,0,0,0,0,255,0,0,0,0,0,
0,0,0,0,0,0,0,0,255,0,0,0,0,255,0,0,
255,0,255,0,0,255,0,0,0,0,0,0,0,0,0,255};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -