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 /* format_imau1_classifier_input.h */ 00021 /* ************************************************************************* */ 00022 /* Formatage d'une image de type U1 en structure d'entrée */ 00023 /* pour un classifieur */ 00024 /* */ 00025 /* ************************************************************************* */ 00026 /* */ 00027 /* Dernière modification: 08/12/03 */ 00028 /* Créer par: Ramasso E. & Jullien S. */ 00029 /* */ 00030 /* ************************************************************************* */ 00031 00032 00033 #ifndef __format_imau1_classifier_input 00034 #define __format_imau1_classifier_input 00035 00036 #include "classifier.h" 00037 #include "image.h" 00038 #include "proto2D.h" 00039 #include <stdlib.h> 00040 #include <stdio.h> 00041 00042 00043 00044 00045 00051 #define IMAGE_ENTIERE 0 00052 00053 00054 00055 00056 00057 00064 #define IMAGE_PARTIELLE 1 00065 00066 00067 00068 00069 00070 00077 typedef struct { 00078 int Yrow; 00083 int Xcol; 00087 }point; 00088 00089 00090 00091 00092 00101 typedef struct { 00102 point premier_point; 00108 point deuxieme_point; 00114 int choix; 00120 }format_imau1_classifier_input_t; 00121 00122 00123 00124 00125 00126 param *format_imau1_classifier_input_lect(format_imau1_classifier_input_t *desc, 00127 param *ptp, 00128 char *debq); 00129 int format_imau1_classifier_input_init(format_imau1_classifier_input_t *desc, 00130 imau1 image_u1, 00131 data_input *data); 00132 int format_imau1_classifier_input_calc(format_imau1_classifier_input_t *desc, 00133 imau1 image_u1, 00134 data_input *data); 00135 00136 #endif