public class Palette extends Object
Constructor and Description |
---|
Palette()
Default Constructor.
|
Palette(List<ColorimetricColor> colors,
List<Float> proportions) |
Modifier and Type | Method and Description |
---|---|
BufferedImage |
buildPaletteImage(int sizeElement)
Build an image representing the palette.
|
float[][] |
computeBinaryDistances()
Computes the color distance matrix of the Palette.
|
float[][] |
computeDistances()
Computes the color distance matrix of the Palette.
|
static double |
distancePalettes(Palette p1,
Palette p2)
Calcul de la distance entre deux palettes
TODO Overwrite this method
|
float |
energyDisplay(boolean ponderation) |
List<ColorimetricColor> |
getCouleursPalette() |
float[][] |
getDistances() |
List<Float> |
getListDisplayEnergy() |
int |
getNbCouleurs() |
List<Float> |
getProportions() |
void |
setCouleursPalette(List<ColorimetricColor> couleursPalette) |
void |
setNbCouleurs(int nbCouleurs) |
void |
setProportions(List<Float> proportions) |
String |
toString() |
void |
writePaletteImage(String imageName)
Write an image representing the palette.
|
public Palette()
public Palette(List<ColorimetricColor> colors, List<Float> proportions)
public int getNbCouleurs()
public void setNbCouleurs(int nbCouleurs)
public List<ColorimetricColor> getCouleursPalette()
public void setCouleursPalette(List<ColorimetricColor> couleursPalette)
public float[][] getDistances()
public float[][] computeDistances()
public float[][] computeBinaryDistances()
public float energyDisplay(boolean ponderation)
public static double distancePalettes(Palette p1, Palette p2)
p1
- point 1p2
- point 2public void writePaletteImage(String imageName)
imageName
- the name of the image representing the palettepublic BufferedImage buildPaletteImage(int sizeElement)
colors
- the palette's list of colorssizeElement
- size of the palette elementsCopyright © 2016 Laboratoire COGIT, IGN. All rights reserved.