⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cmv.h

📁 足球机器人自动程序
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -