image transformation and pattern matching (very basic)

Dependents:   mycame Practica4_Camara

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers imagetr.h Source File

imagetr.h

00001 #pragma once
00002 #include "mbed.h"
00003 #include "global.h"
00004 #include "SDFileSystem.h"
00005 #include "SPI_TFT_ILI9341.h"
00006 
00007 
00008 const int nc2=nc*2;
00009 const int nc2ta=ncta*2;
00010 const int tarray = nc*nl;
00011 const int tarrayta = ncta*nlta;
00012 const int tmarrayta = nc2ta*nlta;
00013 
00014 extern const int tmarray ;
00015 extern char desfile[25];
00016 extern Serial pc;
00017 extern unsigned char bank[];
00018 extern unsigned char bankf[];
00019 extern unsigned char bankt[nl][nc];
00020 extern unsigned char banktc[nl][nc];
00021 extern unsigned char bankta[nlta][ncta][nv];
00022 extern unsigned char banktatc[nlta][ncta];
00023 
00024 extern Timer Time;
00025 extern FILE *fp;
00026 extern SPI_TFT_ILI9341 TFT;
00027 
00028 class imagetr
00029 {
00030 public:
00031 
00032     void rgbtoy(void);
00033     void rgbtoyta(void);
00034     void rgbtoytaed(void);
00035     void ytorgb(unsigned char b[nl][nc]);
00036     void ytorgbta(unsigned char b[nlta][ncta][nv], int nu,const char des[]);
00037     void ytorgbtas(unsigned char b[nlta][ncta][nv], int nu);
00038     void extcont(int minc, int maxc);
00039     void templatematch(unsigned char t);
00040     void getimage(const char nf[]);
00041     void extedge(int minc, int maxc, int th);
00042     void extedgeta(int minc, int maxc, int th);
00043     void affine (int x, int y, float a, float z);
00044     void genta (float tx , float ty, float a, float z);
00045     void lumi (float z);
00046     void avera (void);
00047     void extrta(void);
00048     void searchpat(int th, char name[]);
00049     int ar(float a);
00050     int BMP_tofile(unsigned int x, unsigned int y, const char *Name_BMP);
00051 
00052 
00053 };
00054 
00055