#include <stdio.h>
#define CHANNELS 3
typedef struct ce {
uchar learnHigh[CHANNELS]; //高学习门槛
uchar learnLow[CHANNELS]; //低边学习阈值
uchar max[CHANNELS]; //箱边界的高端
uchar min[CHANNELS]; //箱边界低端
int t_last_update; //允许我们杀死陈旧的条目
int stale; //最大负运行(最长不活动期)
} code_element;
//码书结构
typedef struct code_book {
code_element **cb; //指向码字的指针
int numEntries; //码书包含的码字数量
int t; //计数每个访问
} codeBook;
codeBook* TcodeBook;//包括所有像素的码书集合