[GDI+] Transformation couleur image avec ColorMatrix

Transformation couleur image avec ColorMatrix [GDI+] - C++ - Programmation

Marsh Posté le 26-02-2004 à 10:26:07    

Hello,
 
je cherche les matrices type de transformation de couleur de ColorMatrix (GDI+) pour :
 
1. augmenter le contraste d'une image
2. la transformer en niveau de gris
 
Toutes infos est la bienvenue...(les docs msdn sont un peu legère à ce sujet...)
 
Merci
 
 :hello:

Reply

Marsh Posté le 26-02-2004 à 10:26:07   

Reply

Marsh Posté le 26-02-2004 à 11:37:43    

Reply

Marsh Posté le 26-02-2004 à 12:26:53    

Et pour le contraste je cherche encore ...

Reply

Marsh Posté le 26-02-2004 à 12:34:11    

T'as tout ce qu'il te faut ici
http://www.codeproject.com/cs/medi [...] ters11.asp


---------------
J'ai un string dans l'array (Paris Hilton)
Reply

Marsh Posté le 27-02-2004 à 14:10:36    

merci,
 
au final pour le contraste il faut :
 

Code :
  1. int coef = 2;
  2.         ...
  3.         colorMatrix.m[0][0] = coef;   // à partir de la matrice unité
  4. colorMatrix.m[1][1] = coef;
  5. colorMatrix.m[2][2] = coef;
  6. colorMatrix.m[4][0] = (1-coef)*0.5;
  7. colorMatrix.m[4][1] = (1-coef)*0.5;
  8. colorMatrix.m[4][2] = (1-coef)*0.5;
  9.         ...


 
 :hello:  
     

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed