Forums ProgMatique Forum Index Forums ProgMatique
Programmation (C/C++, JAVA, PHP, JavaScript, ...) et Informatique (Webmaster, Web)
Retour au site Progmatique

faire le gradient d'une image en C

 
Post new topic   Reply to topic    Forums ProgMatique Forum Index » Programmation » C / C++
Previous topic :: Next topic  
Author Message
MeRym


Offline


Joined: 08 Mar 2010
Posts: 1


PostPosted: Mon 8 Mar 2010 - 23:11    Post subject: faire le gradient d'une image en C Reply with quote

salut tout le monde
Je veux faire un traitement d'image en langage C, j'ai commencé avec la fonction gradient mais ça n'a pas marché voici le code:


Code:

int** gradientMatrix(FILE* lpFile, int **lpMatrix, int nLines, int nColumns)
{
  int nI, nJ,fx=0,fy=0;
  int** GMatrix;
  GMatrix = AllocMatrix(nLines, nColumns);
  LoadMatrix(lpFile, GMatrix, nLines, nColumns);//chargement de l'image
  printf("\nGRADIENT :\n");
     for (nI = 0; nI < nLines; nI++)
     {
        for (nJ = 0; nJ < nColumns; nJ++)
          {
            fy = abs(lpMatrix[nI][nJ+1] -  lpMatrix[nI][nJ]);
            GMatrix[nI][nJ]= fy;
          }
          printf("\n");
     }
   DisplayMatrix(GMatrix, nLines, nColumns);// fonction d'affichage
return GMatrix;
}


s'il vous plait aidez moi c'est urgent!!!! Crying or Very sad Crying or Very sad Crying or Very sad
Back to top
Ben
Modérateurs
Modérateurs

Offline


Joined: 03 Jun 2009
Posts: 88


PostPosted: Tue 9 Mar 2010 - 22:22    Post subject: faire le gradient d'une image en C Reply with quote

Je voudrais bien te répondre rapidement, mais tu pourrais nous rappeler le gradient ?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Forums ProgMatique Forum Index » Programmation » C / C++ All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  

Index | Create a forum | Free support forum | Free forums directory | Report a violation | Conditions générales d'utilisation
Powered by phpBB v2 © 2001, 2005 phpBB Group ¦ Theme: subSilver++