image transformation and pattern matching (very basic)
Dependents: mycame Practica4_Camara
imagetr.h@0:7e50b328a66f, 2016-02-17 (annotated)
- Committer:
- sylvainkritter
- Date:
- Wed Feb 17 16:53:33 2016 +0000
- Revision:
- 0:7e50b328a66f
create imagetr library for image transformation
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sylvainkritter | 0:7e50b328a66f | 1 | #pragma once |
sylvainkritter | 0:7e50b328a66f | 2 | #include "mbed.h" |
sylvainkritter | 0:7e50b328a66f | 3 | #include "global.h" |
sylvainkritter | 0:7e50b328a66f | 4 | #include "SDFileSystem.h" |
sylvainkritter | 0:7e50b328a66f | 5 | #include "SPI_TFT_ILI9341.h" |
sylvainkritter | 0:7e50b328a66f | 6 | |
sylvainkritter | 0:7e50b328a66f | 7 | |
sylvainkritter | 0:7e50b328a66f | 8 | const int nc2=nc*2; |
sylvainkritter | 0:7e50b328a66f | 9 | const int nc2ta=ncta*2; |
sylvainkritter | 0:7e50b328a66f | 10 | const int tarray = nc*nl; |
sylvainkritter | 0:7e50b328a66f | 11 | const int tarrayta = ncta*nlta; |
sylvainkritter | 0:7e50b328a66f | 12 | const int tmarrayta = nc2ta*nlta; |
sylvainkritter | 0:7e50b328a66f | 13 | |
sylvainkritter | 0:7e50b328a66f | 14 | extern const int tmarray ; |
sylvainkritter | 0:7e50b328a66f | 15 | extern char desfile[25]; |
sylvainkritter | 0:7e50b328a66f | 16 | extern Serial pc; |
sylvainkritter | 0:7e50b328a66f | 17 | extern unsigned char bank[]; |
sylvainkritter | 0:7e50b328a66f | 18 | extern unsigned char bankf[]; |
sylvainkritter | 0:7e50b328a66f | 19 | extern unsigned char bankt[nl][nc]; |
sylvainkritter | 0:7e50b328a66f | 20 | extern unsigned char banktc[nl][nc]; |
sylvainkritter | 0:7e50b328a66f | 21 | extern unsigned char bankta[nlta][ncta][nv]; |
sylvainkritter | 0:7e50b328a66f | 22 | extern unsigned char banktatc[nlta][ncta]; |
sylvainkritter | 0:7e50b328a66f | 23 | |
sylvainkritter | 0:7e50b328a66f | 24 | extern Timer Time; |
sylvainkritter | 0:7e50b328a66f | 25 | extern FILE *fp; |
sylvainkritter | 0:7e50b328a66f | 26 | extern SPI_TFT_ILI9341 TFT; |
sylvainkritter | 0:7e50b328a66f | 27 | |
sylvainkritter | 0:7e50b328a66f | 28 | class imagetr |
sylvainkritter | 0:7e50b328a66f | 29 | { |
sylvainkritter | 0:7e50b328a66f | 30 | public: |
sylvainkritter | 0:7e50b328a66f | 31 | |
sylvainkritter | 0:7e50b328a66f | 32 | void rgbtoy(void); |
sylvainkritter | 0:7e50b328a66f | 33 | void rgbtoyta(void); |
sylvainkritter | 0:7e50b328a66f | 34 | void rgbtoytaed(void); |
sylvainkritter | 0:7e50b328a66f | 35 | void ytorgb(unsigned char b[nl][nc]); |
sylvainkritter | 0:7e50b328a66f | 36 | void ytorgbta(unsigned char b[nlta][ncta][nv], int nu,const char des[]); |
sylvainkritter | 0:7e50b328a66f | 37 | void ytorgbtas(unsigned char b[nlta][ncta][nv], int nu); |
sylvainkritter | 0:7e50b328a66f | 38 | void extcont(int minc, int maxc); |
sylvainkritter | 0:7e50b328a66f | 39 | void templatematch(unsigned char t); |
sylvainkritter | 0:7e50b328a66f | 40 | void getimage(const char nf[]); |
sylvainkritter | 0:7e50b328a66f | 41 | void extedge(int minc, int maxc, int th); |
sylvainkritter | 0:7e50b328a66f | 42 | void extedgeta(int minc, int maxc, int th); |
sylvainkritter | 0:7e50b328a66f | 43 | void affine (int x, int y, float a, float z); |
sylvainkritter | 0:7e50b328a66f | 44 | void genta (float tx , float ty, float a, float z); |
sylvainkritter | 0:7e50b328a66f | 45 | void lumi (float z); |
sylvainkritter | 0:7e50b328a66f | 46 | void avera (void); |
sylvainkritter | 0:7e50b328a66f | 47 | void extrta(void); |
sylvainkritter | 0:7e50b328a66f | 48 | void searchpat(int th, char name[]); |
sylvainkritter | 0:7e50b328a66f | 49 | int ar(float a); |
sylvainkritter | 0:7e50b328a66f | 50 | int BMP_tofile(unsigned int x, unsigned int y, const char *Name_BMP); |
sylvainkritter | 0:7e50b328a66f | 51 | |
sylvainkritter | 0:7e50b328a66f | 52 | |
sylvainkritter | 0:7e50b328a66f | 53 | }; |
sylvainkritter | 0:7e50b328a66f | 54 | |
sylvainkritter | 0:7e50b328a66f | 55 |