Ajout du fichier FrequencyTable
This commit is contained in:
@@ -0,0 +1,31 @@
|
|||||||
|
import java.awt.image.BufferedImage;
|
||||||
|
|
||||||
|
public class FrequencyTable{
|
||||||
|
private int[] freqR;
|
||||||
|
private int[] freqG;
|
||||||
|
private int[] freqB;
|
||||||
|
|
||||||
|
public FrequencyTable(){
|
||||||
|
// creation des 3 tableaux : la taille n'est pas definitive : ell est susceptible de changer (tres fortement)
|
||||||
|
this.freqR = new int[50];
|
||||||
|
this.freqG = new int[50];
|
||||||
|
this.freqB = new int[50];
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void computeFromImage(BufferedImage image){
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public int[] getRed(){
|
||||||
|
return this.freqR;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int[] getGreen(){
|
||||||
|
return this.freqG;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int[] getBlue(){
|
||||||
|
return this.freqB;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user