[POO] problèmes de compilation
Ca y est! J'ai terminé ma partie conception !
Merci Miles, Luc, Eusebe, Swoög ... :D pour vos remarques et encouragements
Arrive la partie erreur de compilation!!!:aie:
C'est pas la plus facile...
J'ai pour l'instant environ 300 erreurs, et je n'en comprend aucunes, elles n'ont pas lieu d'être pour la plupart. M'étonnerai pas qu'il y ait là dedans une petite erreur qui fasse naître tout le reste, comme d'hab.
Code:
1 2 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 49 50 51 52 53 54 55
| #ifndef WARPING_H
#define WARPING_H
#include "CImg.h"
#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include "PDC.h"
class Warping
{
public:
Warping(int n_choc, std::string nom_cfp, cimg_library::CImg <unsigned short>, cimg_library::CImg <unsigned short>);
Warping(std::string nom_fichier, cimg_library::CImg <unsigned short>, cimg_library::CImg <unsigned short>);
~Warping();
<div style="margin-left:40px">void lancerWarping();</div><div style="margin-left:40px">cimg_library::CImg<float> Moyenne(const cimg_library::CImg<unsigned short>& src, int valeur);</div> cimg_library::CImg<unsigned short> const getImageWarped();
void setNombrePointsInterpol(int);
void ajusterVisibleEtIR();
void ajouterPDCDepart(int a, int b);
void ajouterPDCArrivee(int a, int b);
void supprimerPDCDepart(int x, int y);
void supprimerPDCArrivee(int x, int y);
void affichageDepart();
void affichageArrivee();
private:
PDC pdc;
float coeff_mul;
cimg_library::CImg <unsigned short> image_visible;
cimg_library::CImg <unsigned short> image_IR;
cimg_library::CImg <unsigned short> champ_deformation;
cimg_library::CImg <unsigned short> image_IR_warped;
int nbpoints_interpol; // nombre de points pour l'interpolation
std::vector< std::pair <int, int> > pointschoisis; //points gardés pour l'interpolation
void nProchePoints(const std::pair <int, int>& H, int n);
std::pair<float, float> pointsInterpolation(std::pair <int, int>& H);
bool Test(const std::pair <int, int>& point);
cimg_library::CImg<> interpolationLin();
CImgDisplay depart_disp;
CImgDisplay arrivee_disp;
}
#endif |
Je pense qu'on va en rester là pour l'instant: voici ce que m'indique le compilo:
Citation:
c:\Documents and Settings\GD280706\Bureau\Analyse v1.1\Analyse\warping.h(16) : error C2447: '{': en-tête de fonction manquant (liste formelle à l'ancien format?)
warping.cpp(4) : error C2653: 'Warping': n'est pas un nom de classe ni d'espace de noms
warping.cpp(6) : error C2550: 'Warping': les listes d'initialiseurs de constructeur ne sont autorisées que dans la définition d'un constructeur
warping.cpp(7) : error C3861: 'ajusterVisibleEtIR': identificateur introuvable, même avec une recherche qui dépend de l'argument
warping.cpp(10) : error C3861: 'champ_deformation': identificateur introuvable, même avec une recherche qui dépend de l'argument
warping.cpp(12) : error C3861: 'depart_disp': identificateur introuvable, même avec une recherche qui dépend de l'argument
warping.cpp(13) : error C3861: 'arrivee_disp': identificateur introuvable, même avec une recherche qui dépend de l'argument
warping.cpp(15) : error C2228: la partie gauche de '.title' doit avoir un type class/struct/union
le type est ''unknown-type''
warping.cpp(15) : error C3861: 'depart_disp': identificateur introuvable, même avec une recherche qui dépend de l'argument
warping.cpp(16) : error C2228: la partie gauche de '.title' doit avoir un type class/struct/union
Merci de votre aide! :D