00001 /* 00002 * Copyright (c) 2007. The BATI team. All right reserved. 00003 * 00004 * This file is part of BATI library. 00005 * 00006 * BATI library is free software: you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License as published by 00008 * the Free Software Foundation, either version 3 of the License, or 00009 * (at your option) any later version. 00010 * 00011 * BATI library is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with BATI library. If not, see <http://www.gnu.org/licenses/>. 00018 */ 00019 00020 #include "classifier.h" 00021 00022 //the variable type responsible for the rules and the quadrangles from which they were extracted 00023 typedef struct { 00024 char *fisin; 00025 char *fisout1; 00026 char *fisout2; 00027 int nb_class; 00028 int nb_attr; 00029 int *nb_pts; 00030 double lefrght[2][2]; 00031 double updown[2][2]; 00032 double slopes[4]; 00033 double n[4]; 00034 double func_app1[2][3]; 00035 double func_app2[2][3]; 00036 int *comp_connex; 00037 int *comp_convex; 00038 int **pts_subclasses; 00039 short isProcessed; 00040 } lgr_d; 00041 00042 00043 //the variable that concerns the connex components of evey class - from the point of view of the point cloud 00044 typedef struct { 00045 int *nb_subclass; 00046 int **nb_pts; 00047 } connex_comp; 00048 00049 //the chaining list that contains the points marked as belonging to the contour (not the convex hull!) 00050 typedef double pct; 00051 typedef struct elem_contour { 00052 pct x; 00053 pct y; 00054 struct elem_contour *next; 00055 struct elem_contour *ant; 00056 } elem_contour; 00057 00058 //functions that can be used independently 00059 00060 /* int clean_learning_set(learning_set *iris, lgr_d *id); */ 00061 00062 00063 /* typedef struct contour { */ 00064 /* elem_contour *first; */ 00065 /* elem_contour *current; */ 00066 /* } contour; */