#ifndef __COLORTHREAD_H
#define __COLORTHREAD_H

#include <opencv/cv.h>
#include <opencv/highgui.h>

struct color {
	IplImage *intensity;

	IplImage *r_temp_8u;
	IplImage *g_temp_8u;
	IplImage *b_temp_8u;

	IplImage *r_temp;
	IplImage *g_temp;
	IplImage *b_temp;
	IplImage *y_temp;

	IplImage *temp1;
	IplImage *temp2;

	IplImage *three;
};

typedef struct color color_t;

color_t * color_thread_init(CvSize);
void color_thread_destroy(color_t *);
void * color_thread_routine(void *);

#endif

