Appendix B - ttt_vision.h
1:  /*ttt_vision.h*/
2:  
3:  #ifndef RESEARCH_H
4:  #define RESEARCH_H
5:  
6:  #include "bool.h"
7:  #include "pgm.h"
8:  #include "common.h"
9:  #include "linked_list.h"
10:  #include "chaincode.h"
11:  
12:  /******Prototypes*****************************************************/
13:  
14:  void setCPixel(int ix, int iy, RGB_INT color);
15:  
16:  void setCLines(int ix1, int iy1, int ix2, int iy2, RGB_INT color);
17:  
18:  void setCRect(int ix1, int iy1, int ix2, int iy2, RGB_INT color);
19:  
20:  void pxlcpy(PGMImage *dest, int dest_row, int dest_col,
21:  	    PGMImage *src, int src_row, int src_col);
22:  
23:  int rgb_avg(RGB_INT cur_pxl);
24:  
25:  int img_pxl_avg(PGMImage* img);
26:  
27:  int pxlcmp (RGB_INT pxl1, RGB_INT pxl2, int range);
28:  
29:  void drawString(int ix, int iy, char theString[256], RGB_INT color);
30:  
31:  int background(int treash_value, PGMImage* img);
32:  
33:  coord find_dividers(coord point1, coord point2, float t);
34:  
35:  #endif
36: