| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 
 | 
/*Main*/
// Les 3 fonctions exportées de la DLL tsrir_c.dll
extern "C" int IRnb_images( int num_choc, int camera, int *nbimages );
extern "C" int IRimages( int num_choc, int camera, long image_deb,
long image_fin, unsignedshort ** Images);
extern "C" int IRimages_pas( int num_choc, int camera, long image_deb,
long image_fin, long pas, unsignedshort ** Images );
 
#include "calc_camir.h"
// ---------> Interpolation linéaire des données
extern "C" short Interpol (long *xTab, long *yTab, int lTab, float xVal, float *yVal);
// ---------> Reset de la structure Endoscope (tout à 0)
extern "C" void Reset_Endoscope (struct_endoscope *Endoscope);
// ---------> Lecture d'une variable de type float dans Top
extern "C" short LitTopFloat(long nchoc, char *NmProd, char *NmObj, char *NmPar, float *Val);
// ---------> Lecture d'une variable de type String dans Top
extern "C" short LitTopString(long nchoc, char *NmProd, char *NmObj, char *NmPar, char *Str);
// ---------> Lecture d'un fichier LUT .txt (calibration)
extern "C" short ReadFicLUT (char *NmFicLUT, long *xLUTi, long *yLUTi, short *lLUTi);
// ---------> Construction de la LUT finale pour passer des DL en T°
extern "C" short ConstructLUT (long *xLUTi, long *yLUTi, short lLUTi,
short NumLUT, short Zone, struct_endoscope *Endoscope,
float *xLUT , float *yLUT , short *lLUT );
// ---------> Lecture des fichiers de calibration LUT1 ou 2 ou 3
extern "C" short InitLUT (long nchoc, short nEndo, short nLUT, long *xLUTi, long *yLUTi, short *lLUTi);
// ---------> Recopie de la LUT calibrée dans les varaibles de la structure Endoscope
extern "C" void RecopieLUT(struct_endoscope *Endoscope , short Zone , float *DL , float *TP ,
short lDL);
// ---------> Lecture des données Top et initialisation de la structure Endoscope
extern "C" short Init_Endoscope (long nchoc, short nEndo, struct_endoscope *Endoscope);
// ---------> Calcul de la T° à partir des DL mesurés
extern "C" short DL2Temp (struct_endoscope *Endoscope, short zone, long DL, float *Temp);
// ---------> Calcul du DL à partir d'une température
extern "C" short Temp2DL (struct_endoscope *Endoscope, short zone, float Temp, long *DL);
#include <list>
#include <algorithm>
#include <iostream>
#include "CImg.h"
usingnamespace cimg_library;
 
#include "quadrillage.h"
#include "warping.h"
#include "masque.h"
#include "outils.h"
#include "choixzone.h"
#include "analyse.h"
 |