Voulant convertir une image en matrice de BigInteger, j'ai eu tous les chiffres en négatif :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
 
for (int l = 0; l < this.bufImage.getHeight(); l++) {
            for (int c = 0; c < this.bufImage.getWidth(); c++) {
                int s = this.bufImage.getRGB(l, c);
                this.matrix[l][c] = BigInteger.valueOf(s);
            }
}
voici quelques éléments
-3288612 -2170131 -986116 -920323 -1447439 -1710357 -1052941 -526343 -1644826 -1710619 -723213 -262662
pourquoi ces éléments sont négatifs ? j'ai besoin d'une conversion exacte

Comment faire l'opération inverse, avoir la même image depuis la matrice BigInteger ?

Merci