31 lines
568 B
Java
31 lines
568 B
Java
|
|
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;
|
||
|
|
}
|
||
|
|
}
|