00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __TLEXTRACT_H__
00018 #define __TLEXTRACT_H__
00019
00020 #include "tlVision.h"
00021 #include "tlHist2D.h"
00022
00023
00024 #define TL_EXTRACT_DATA_DEPTH 4
00025
00026
00027 #ifndef NO_DOC
00028
00029
00030 typedef struct {
00031 int depth;
00032 int px;
00033 int py;
00034 int width;
00035 int height;
00036 int *x1;
00037 int *x2;
00038 int *y1;
00039 int *y2;
00040 int lx1;
00041 int lx2;
00042 int ly1;
00043 int ly2;
00044 int connectivity;
00045 tlPixel min[TL_EXTRACT_DATA_DEPTH];
00046 tlPixel max[TL_EXTRACT_DATA_DEPTH];
00047 int tol[TL_EXTRACT_DATA_DEPTH];
00048 tlPixel *src;
00049 char *objmap;
00050 } tl_extract_data;
00051
00052 typedef struct {
00053 int px;
00054 int py;
00055 int width;
00056 int height;
00057 int *x1;
00058 int *x2;
00059 int *y1;
00060 int *y2;
00061 int lx1;
00062 int lx2;
00063 int ly1;
00064 int ly2;
00065 int connectivity;
00066 tlPixel *src;
00067 char *objmap;
00068 tlHist2D *cmHist;
00069 int threshold;
00070 } tl_extract_data_cm;
00071
00072 #endif
00073
00074
00075
00076 int tl_extract (tl_extract_data *data);
00077
00078
00079 int tl_extract_nr (tl_extract_data *data);
00080
00081
00082 int tl_extract_cm_nrg (tl_extract_data_cm *data);
00083 int tl_extract_cm_hsi (tl_extract_data_cm *data);
00084
00085
00086 #endif