cmv.h

来自「足球机器人自动程序」· C头文件 代码 · 共 58 行

H
58
字号
#ifndef CMV_H#define CMV_H#include "global.h"// type of run_length_encodestruct rle_t {	int color;	int x1, x2;	void *parent;};// type of color_regionstruct reg_t {	int color;	int size;	int x1, x2, y1, y2;	int cx, cy;};#define COLOR_DEPTH 256#define INT_BITS 32struct cmv_data {	int color_n;	int (*th)[6];	int thresh[3][COLOR_DEPTH];	int map[U_SIZE + H_2];	int *remap;	int rle_max;	struct rle_t *rle, *rle_end;	int reg_max;	struct reg_t *reg, *reg_end;	int size_min;	int (*rgb)[3];	int *clist;	struct reg_t **cmax;	//struct reg_t **cmv_ctable; // color_n, MAX_RPC};#ifdef __cplusplusextern "C" {#endifvoid cmv_init(struct cmv_data * restrict data, const char * restrict filename);void cmv_process(struct cmv_data * restrict data, const unsigned char * restrict src);void cmv_reinit(struct cmv_data * restrict data, int ch, int i, int target, int type);#ifdef __cplusplus}#endif#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?