• [^] # Re: Heu ... qu'est ce que j'ai rate ?

    Posté par . En réponse à la dépêche Quelques précisions sur la bibliothèque de traitement d'images 'INRIA'. Évalué à 2.

    Quelle version de gcc ? Par curiosité, essaye par exemple de faire disparaitre la première volée d'erreurs comme ça :
    --- CImg.h.orig	2004年07月23日 18:43:53.468503269 +0200
    +++ CImg.h	2004年07月23日 18:45:00.137972278 +0200
    @@ -3564,8 +3564,12 @@
     if (z0<0) { x0-=z0*(x1-x0)/(z1-z0); y0-=z0*(y1-y0)/(z1-z0); z0=0; }
     if (z1>=(int)depth) { x1+=(z1-(int)depth)*(x0-x1)/(z1-z0); y1+=(z1-(int)depth)*(y0-y1)/(z1-z0); z1=(int)depth-1;}
     const uint dmax = (uint)cimg::max(std::abs(x1-x0),std::abs(y1-y0),z1-z0);
    - const float px = dmax?(x1-x0)/(float)dmax:0; py = dmax?(y1-y0)/(float)dmax:0; pz = dmax?(z1-z0)/(float)dmax:0;
    - float x = (float)x0; y = (float)y0; z = (float)z0;
    + const float px = dmax?(x1-x0)/(float)dmax:0; 
    + const float py = dmax?(y1-y0)/(float)dmax:0;
    + const float pz = dmax?(z1-z0)/(float)dmax:0;
    + float x = (float)x0;
    + float y = (float)y0; 
    + float z = (float)z0;
     for (uint t=0; t<=dmax; t++) { 
     const uint ix=(uint)x, iy=(uint)y, iz=(uint)z; 
     cimg_mapV(*this,k) (*this)(ix,iy,iz,k) = *(color++);
    
    Si ça marche, bah à toi de jouer, les autres sont similaires.