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 /* ************************* histo.h **********************************/ 00020 /* */ 00021 /* descripteurs et prototypes associes a l'operateur bidon */ 00022 /* */ 00023 /* Derniere modif : F. Bujor E. Trouve */ 00024 /* *********************************************************************/ 00025 00026 /* pas de code avant cette ligne*/ 00027 #ifndef __histo 00028 #define __histo 00029 00032 typedef struct histo_st{ 00033 int bins; 00034 FILE *pfd; 00035 char nomhist[200]; 00036 unsigned int *h; 00037 float min; 00038 float max; 00039 float step; 00040 int ngm; 00041 } histo_t; 00042 00043 param *histo_lect(histo_t *des, param *ptp, char *debq); 00044 00045 int histofl_init(histo_t *des, imafl im0, imau1 mas); 00046 int histofl_calc(histo_t *des, imafl im0, imau1 mas); 00047 00048 int histou1_init(histo_t *des, imau1 im0, imau1 mas); 00049 int histou1_calc(histo_t *des, imau1 im0, imau1 mas); 00050 00051 int histou2_init(histo_t *des, imau2 im0, imau1 mas); 00052 int histou2_calc(histo_t *des, imau2 im0, imau1 mas); 00053 00054 int histo_ferm(histo_t *des); 00055 00056 00057 /*pas de code après cette ligne */ 00058 #endif