image transformation and pattern matching (very basic)

Dependents:   mycame Practica4_Camara

Revision:
0:7e50b328a66f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/imagetr.h	Wed Feb 17 16:53:33 2016 +0000
@@ -0,0 +1,55 @@
+#pragma once
+#include "mbed.h"
+#include "global.h"
+#include "SDFileSystem.h"
+#include "SPI_TFT_ILI9341.h"
+
+
+const int nc2=nc*2;
+const int nc2ta=ncta*2;
+const int tarray = nc*nl;
+const int tarrayta = ncta*nlta;
+const int tmarrayta = nc2ta*nlta;
+
+extern const int tmarray ;
+extern char desfile[25];
+extern Serial pc;
+extern unsigned char bank[];
+extern unsigned char bankf[];
+extern unsigned char bankt[nl][nc];
+extern unsigned char banktc[nl][nc];
+extern unsigned char bankta[nlta][ncta][nv];
+extern unsigned char banktatc[nlta][ncta];
+
+extern Timer Time;
+extern FILE *fp;
+extern SPI_TFT_ILI9341 TFT;
+
+class imagetr
+{
+public:
+
+    void rgbtoy(void);
+    void rgbtoyta(void);
+    void rgbtoytaed(void);
+    void ytorgb(unsigned char b[nl][nc]);
+    void ytorgbta(unsigned char b[nlta][ncta][nv], int nu,const char des[]);
+    void ytorgbtas(unsigned char b[nlta][ncta][nv], int nu);
+    void extcont(int minc, int maxc);
+    void templatematch(unsigned char t);
+    void getimage(const char nf[]);
+    void extedge(int minc, int maxc, int th);
+    void extedgeta(int minc, int maxc, int th);
+    void affine (int x, int y, float a, float z);
+    void genta (float tx , float ty, float a, float z);
+    void lumi (float z);
+    void avera (void);
+    void extrta(void);
+    void searchpat(int th, char name[]);
+    int ar(float a);
+    int BMP_tofile(unsigned int x, unsigned int y, const char *Name_BMP);
+
+
+};
+
+