| Package | Description |
|---|---|
| net.returnvoid.analytics |
A package for analysing things (e.g. images).
|
| net.returnvoid.color |
A package concerning colors, color spaces, color metrics and color palettes.
|
| net.returnvoid.tools |
A package for general helper classes.
|
| Modifier and Type | Method and Description |
|---|---|
RColor[] |
ColorClusteringBuilder.getColors()
Returns the source for the clusterings - the training colors.
|
RColor |
ColorCluster.getMean() |
RColor[] |
ColorClustering.getMeans()
Returns all cluster means.
|
RColor[] |
ColorClustering.getMembers()
Returns a set of colors which contains all members of all clusters of
this clustering.
|
RColor |
ColorCluster.getRepresentative()
Finds and returns the representative of this cluster.
|
static RColor[] |
ClusteringHelper.getTrainingColors(processing.core.PImage img,
java.lang.Integer trainingsSize)
Picks trainingsSize semi-random colors from the input image.
|
static RColor[] |
ClusteringHelper.getTrainingColors(processing.core.PImage img,
java.lang.Integer trainingsSize,
ColorDifferenceMeasure m)
Picks trainingsSize semi-random colors from the input image.
|
static RColor[] |
ClusteringHelper.getTrainingColors(processing.core.PImage img,
java.lang.Integer trainingsSize,
ColorDifferenceMeasure m,
java.lang.Integer cellSize)
Picks trainingsSize semi-random colors from the input image.
|
static RColor[] |
ClusteringHelper.getTrainingColors(processing.core.PImage img,
java.lang.Integer trainingsSize,
ColorSpace space)
Picks trainingsSize semi-random colors from the input image.
|
static RColor[] |
ClusteringHelper.getTrainingColors(processing.core.PImage img,
java.lang.Integer trainingsSize,
ColorSpace space,
int cellSize)
Picks trainingsSize semi-random colors from the input image.
|
static RColor[] |
ClusteringHelper.getTrainingColors(processing.core.PImage img,
java.lang.Integer trainingsSize,
java.lang.Integer cellSize)
Picks trainingsSize semi-random colors from the input image.
|
static RColor[] |
ClusteringHelper.getTrainingColors(RColor[] colors,
java.lang.Integer trainingsSize)
Creates a randomly sampled subset of the give set of colors.
|
static RColor[] |
ClusteringHelper.getTrainingColors(RColor[] colors,
java.lang.Integer trainingSize,
ColorDifferenceMeasure m)
Creates a randomly sampled subset of the give set of colors and
converts the returned colors to a color space defined by the given
ColorDifferenceMeasure (e.g. m=RGBEuclidean -> returned colors are
RGBColors).
|
static RColor[] |
ClusteringHelper.getTrainingColors(RColor[] colors,
java.lang.Integer trainingsSize,
ColorSpace space)
Creates a randomly sampled subset of the give set of colors and
converts the returned colors to the given color space.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.ArrayList<RColor> |
ColorCluster.getElements() |
| Modifier and Type | Method and Description |
|---|---|
static ColorCluster[] |
ClusteringHelper.addColorsToClusters(ColorCluster[] clusters,
RColor[] colors)
Assigns each color from given set of colors to one of the cluster
of the given set clusters.
|
ColorCluster |
ColorCluster.addElement(RColor newMember)
Adds an element to the cluster.
|
static ColorCluster[] |
ClusteringHelper.colorsToClusters(RColor[] means,
ColorDifferenceMeasure m)
Builds new ColorClusters from a given set of colors.
|
ColorCluster |
ColorClustering.getCluster(RColor c)
Returns the cluster which is the most similar to the given color.
|
int |
ColorClustering.getClusterIndex(RColor c)
Returns the index of the cluster which is the most similar to the input
color.
|
static RColor[] |
ClusteringHelper.getTrainingColors(RColor[] colors,
java.lang.Integer trainingsSize)
Creates a randomly sampled subset of the give set of colors.
|
static RColor[] |
ClusteringHelper.getTrainingColors(RColor[] colors,
java.lang.Integer trainingSize,
ColorDifferenceMeasure m)
Creates a randomly sampled subset of the give set of colors and
converts the returned colors to a color space defined by the given
ColorDifferenceMeasure (e.g. m=RGBEuclidean -> returned colors are
RGBColors).
|
static RColor[] |
ClusteringHelper.getTrainingColors(RColor[] colors,
java.lang.Integer trainingsSize,
ColorSpace space)
Creates a randomly sampled subset of the give set of colors and
converts the returned colors to the given color space.
|
static ColorClustering |
ClusteringHelper.kmeans(RColor[] colors,
java.lang.Integer k,
ColorDifferenceMeasure m)
Applies the k-means algorithm to colors for a given k.
|
static ColorClustering |
ClusteringHelper.kmeans(RColor[] colors,
java.lang.Integer k,
ColorDifferenceMeasure m,
ColorCluster[] existingClusters)
Applies the k-means algorithm to colors for a given k.
|
static ColorClustering[] |
ClusteringHelper.kmeansClusterings(RColor[] colors,
java.lang.Integer minK,
java.lang.Integer maxK,
ColorDifferenceMeasure m)
Applies the k-means algorithm to colors for a range of k.
|
ColorCluster |
ColorCluster.removeElement(RColor member)
Removes an element from the cluster (if the given element is a member).
|
void |
ColorClusteringBuilder.setColors(RColor[] inputColors)
Sets the source for the clusterings (colors will be sampled from this
colors).
|
boolean |
ColorCluster.switchElement(RColor member,
ColorCluster newCluster)
The given element member switches to another cluster under certain
circumstances.
|
| Constructor and Description |
|---|
ColorCluster(RColor mean)
Builds a new cluster without any member but with a set mean.
|
ColorCluster(RColor mean,
ColorDifferenceMeasure m)
Builds a new cluster without any member but with a set mean.
|
| Modifier and Type | Class and Description |
|---|---|
class |
HSBColor
A model for color in HSB color space.
|
class |
LabColor
A model for color in Lab color space.
|
class |
LCHColor
A model for color in LCH color space.
|
class |
RGBColor
A model for color in RGB color space.
|
class |
XYZColor
A model for color in XYZ color space.
|
| Modifier and Type | Method and Description |
|---|---|
static RColor |
ColorHelper.convert(RColor c,
ColorDifferenceMeasure m)
Converts the input color c into a appropriate color model defined by the
ColorDifferenceMeasure.
|
static RColor |
ColorHelper.convert(RColor c,
ColorSpace target)
Converts the input color c into the given target color space.
|
RColor |
RColor.copy()
Creates a deep copy of the object.
|
static RColor[] |
ColorHelper.copy(RColor[] colors)
Creates a copy array of the given input.
|
RColor |
ColorPalette.find(float tplusi)
Finds a lerped color within the color palette.
|
RColor |
ColorPalette.get(int index)
Returns the color at the given index or null if the index is out of
bounds.
|
RColor |
ColorPalette.get(RColor c)
Returns a color of the palette which is similar to the input color.
|
RColor[] |
ColorPalette.getColors()
Returns all colors of this palette (Shallow copies).
|
RColor |
ColorPalette.getDithered(RColor c,
float dithering)
Returns a color of the palette which is similar to the input color (but
maybe not the most similar color).
|
static RColor |
ColorHelper.getMeanColor(java.util.ArrayList<RColor> colors,
ColorDifferenceMeasure m)
Returns the mean color of the given set colors using the color
space defined by the ColorDifferenceMeasure m, e.g RGBEuclidean is
mapped to RGBColor.
|
static RColor |
ColorHelper.getMeanColor(java.util.ArrayList<RColor> colors,
ColorSpace space)
Returns the mean color of the given set colors using the color
space defined by space.
|
static RColor |
ColorHelper.getMeanColor(ColorDifferenceMeasure m,
RColor... colors)
Returns the mean color of the given set colors using the color
space defined by the ColorDifferenceMeasure m, e.g RGBEuclidean is
mapped to RGBColor.
|
static RColor |
ColorHelper.getMeanColor(RColor[] colors,
ColorDifferenceMeasure m)
Returns the mean color of the given set colors using the color
space defined by the ColorDifferenceMeasure m, e.g RGBEuclidean is
mapped to RGBColor.
|
static RColor |
ColorHelper.getMeanColor(RColor[] colors,
ColorSpace space)
Returns the mean color of the given set colors using the color
space defined by space.
|
RColor |
ColorPalette.getMostImportantColor()
Returns the most important color of this palette.
|
RColor |
ColorPalette.getNoisy(RColor c,
float amt)
Returns a color of the palette which is similar to the input color.
|
RColor |
ColorPalette.getRandom()
Returns a random color of the color palette.
|
RColor |
ColorPalette.getRandomWeighted()
Returns a random color of the color palette by the color's importance.
|
static RColor |
ColorHelper.lerpColors(RColor c1,
RColor c2,
float amt)
Lerps the two input colors and creates a new color.
|
RColor |
RColor.setAlpha(java.lang.Float alpha)
Sets the value of alpha / transparency.
|
| Modifier and Type | Method and Description |
|---|---|
static java.util.ArrayList<RColor> |
ColorHelper.copy(java.util.ArrayList<RColor> colors)
Creates a copy array of the given input.
|
| Modifier and Type | Method and Description |
|---|---|
ColorPalette |
ColorPalette.add(RColor c)
Adds a color to this palette.
|
ColorPalette |
ColorPalette.add(RColor c,
int importance)
Adds a color to this palette.
|
ColorPalette |
ColorPalette.applyImportance(RColor c,
int importance)
Sets the importance of a color.
|
static boolean |
ColorHelper.contains(RColor ref,
java.util.ArrayList<RColor> colors)
Checks if ref is member of colors.
|
static boolean |
ColorHelper.contains(RColor ref,
RColor[] colors)
Checks if ref is member of colors.
|
static boolean |
ColorHelper.contains(RColor ref,
RColor[] colors)
Checks if ref is member of colors.
|
static void |
ColorHelper.convert(RColor[] colors,
ColorSpace target)
Converts the input colors c into the given color space.
|
static RColor |
ColorHelper.convert(RColor c,
ColorDifferenceMeasure m)
Converts the input color c into a appropriate color model defined by the
ColorDifferenceMeasure.
|
static RColor |
ColorHelper.convert(RColor c,
ColorSpace target)
Converts the input color c into the given target color space.
|
static RColor[] |
ColorHelper.copy(RColor[] colors)
Creates a copy array of the given input.
|
static java.lang.Float |
ColorDifference.difference(RColor color1,
RColor color2)
Calculates the difference / distance between two colors.
|
static java.lang.Float |
ColorDifference.difference(RColor color1,
RColor color2,
ColorDifferenceMeasure measure)
Calculates the difference / distance between two colors.
|
boolean |
XYZColor.equals(RColor other)
Checks if the input color is equal to this object.
|
boolean |
RGBColor.equals(RColor other)
Checks if the input color is equal to this object.
|
boolean |
RColor.equals(RColor other)
Checks if the input color is equal to this object.
|
boolean |
LCHColor.equals(RColor other)
Checks if the input color is equal to this object.
|
boolean |
LabColor.equals(RColor other)
Checks if the input color is equal to this object.
|
boolean |
HSBColor.equals(RColor other)
Checks if the input color is equal to this object.
|
RColor |
ColorPalette.get(RColor c)
Returns a color of the palette which is similar to the input color.
|
RColor |
ColorPalette.getDithered(RColor c,
float dithering)
Returns a color of the palette which is similar to the input color (but
maybe not the most similar color).
|
int |
ColorPalette.getIndex(RColor c)
Returns the index of the most similar color to the input color.
|
static java.lang.Float |
XYZColor.getLoss(RColor rvMean,
java.util.ArrayList<RColor> lColors,
ColorDifferenceMeasure m)
Calculates the loss - the mean distance of all members of colors to
rvMean.
|
static java.lang.Float |
RGBColor.getLoss(RColor rvMean,
java.util.ArrayList<RColor> colors,
ColorDifferenceMeasure m)
Calculates the loss - the mean distance of all members of colors to
rvMean.
|
static java.lang.Float |
LCHColor.getLoss(RColor rvMean,
java.util.ArrayList<RColor> lColors,
ColorDifferenceMeasure m)
Calculates the loss - the mean distance of all members of colors to
rvMean.
|
static java.lang.Float |
LabColor.getLoss(RColor rvMean,
java.util.ArrayList<RColor> lColors,
ColorDifferenceMeasure m)
Calculates the loss - the mean distance of all members of colors to
rvMean.
|
static java.lang.Float |
HSBColor.getLoss(RColor rvMean,
java.util.ArrayList<RColor> lColors,
ColorDifferenceMeasure m)
Calculates the loss - the mean distance of all members of colors to
rvMean.
|
static java.lang.Float |
ColorHelper.getLoss(RColor rvMean,
java.util.ArrayList<RColor> colors,
ColorDifferenceMeasure m)
Calculates the loss - the mean distance of all members of colors to
rvMean.
|
static java.lang.Float |
XYZColor.getLoss(RColor rvMean,
java.util.ArrayList<RColor> lColors,
ColorDifferenceMeasure m,
int start,
int end)
Calculates the loss - the mean distance of all members of colors to
rvMean.
|
static java.lang.Float |
RGBColor.getLoss(RColor rvMean,
java.util.ArrayList<RColor> colors,
ColorDifferenceMeasure m,
int start,
int end)
Calculates the loss - the mean distance of all members of colors to
rvMean.
|
static java.lang.Float |
LCHColor.getLoss(RColor rvMean,
java.util.ArrayList<RColor> lColors,
ColorDifferenceMeasure m,
int start,
int end)
Calculates the loss - the mean distance of all members of colors to
rvMean.
|
static java.lang.Float |
LabColor.getLoss(RColor rvMean,
java.util.ArrayList<RColor> lColors,
ColorDifferenceMeasure m,
int start,
int end)
Calculates the loss - the mean distance of all members of colors to
rvMean.
|
static java.lang.Float |
HSBColor.getLoss(RColor rvMean,
java.util.ArrayList<RColor> lColors,
ColorDifferenceMeasure m,
int start,
int end)
Calculates the loss - the mean distance of all members of colors to
rvMean.
|
static java.lang.Float |
ColorHelper.getLoss(RColor rvMean,
java.util.ArrayList<RColor> colors,
ColorDifferenceMeasure m,
int start,
int end)
Calculates the loss - the mean distance of all members of colors to
rvMean.
|
static java.lang.Float |
XYZColor.getLoss(RColor rvMean,
RColor[] colors,
ColorDifferenceMeasure m)
Calculates the loss - the mean distance of all members of colors to
rvMean.
|
static java.lang.Float |
XYZColor.getLoss(RColor rvMean,
RColor[] colors,
ColorDifferenceMeasure m)
Calculates the loss - the mean distance of all members of colors to
rvMean.
|
static java.lang.Float |
RGBColor.getLoss(RColor rvMean,
RColor[] colors,
ColorDifferenceMeasure m)
Calculates the loss - the mean distance of all members of colors to
rvMean.
|
static java.lang.Float |
RGBColor.getLoss(RColor rvMean,
RColor[] colors,
ColorDifferenceMeasure m)
Calculates the loss - the mean distance of all members of colors to
rvMean.
|
static java.lang.Float |
LCHColor.getLoss(RColor rvMean,
RColor[] colors,
ColorDifferenceMeasure m)
Calculates the loss - the mean distance of all members of colors to
rvMean.
|
static java.lang.Float |
LCHColor.getLoss(RColor rvMean,
RColor[] colors,
ColorDifferenceMeasure m)
Calculates the loss - the mean distance of all members of colors to
rvMean.
|
static java.lang.Float |
LabColor.getLoss(RColor rvMean,
RColor[] colors,
ColorDifferenceMeasure m)
Calculates the loss - the mean distance of all members of colors to
rvMean.
|
static java.lang.Float |
LabColor.getLoss(RColor rvMean,
RColor[] colors,
ColorDifferenceMeasure m)
Calculates the loss - the mean distance of all members of colors to
rvMean.
|
static java.lang.Float |
HSBColor.getLoss(RColor rvMean,
RColor[] colors,
ColorDifferenceMeasure m)
Calculates the loss - the mean distance of all members of colors to
rvMean.
|
static java.lang.Float |
HSBColor.getLoss(RColor rvMean,
RColor[] colors,
ColorDifferenceMeasure m)
Calculates the loss - the mean distance of all members of colors to
rvMean.
|
static java.lang.Float |
ColorHelper.getLoss(RColor rvMean,
RColor[] colors,
ColorDifferenceMeasure m)
Calculates the loss - the mean distance of all members of colors to
rvMean.
|
static java.lang.Float |
ColorHelper.getLoss(RColor rvMean,
RColor[] colors,
ColorDifferenceMeasure m)
Calculates the loss - the mean distance of all members of colors to
rvMean.
|
static java.lang.Float |
XYZColor.getLoss(RColor rvMean,
RColor[] colors,
ColorDifferenceMeasure m,
int start,
int end)
Calculates the loss - the mean distance of all members of colors to
rvMean.
|
static java.lang.Float |
XYZColor.getLoss(RColor rvMean,
RColor[] colors,
ColorDifferenceMeasure m,
int start,
int end)
Calculates the loss - the mean distance of all members of colors to
rvMean.
|
static java.lang.Float |
RGBColor.getLoss(RColor rvMean,
RColor[] colors,
ColorDifferenceMeasure m,
int start,
int end)
Calculates the loss - the mean distance of all members of colors to
rvMean.
|
static java.lang.Float |
RGBColor.getLoss(RColor rvMean,
RColor[] colors,
ColorDifferenceMeasure m,
int start,
int end)
Calculates the loss - the mean distance of all members of colors to
rvMean.
|
static java.lang.Float |
LCHColor.getLoss(RColor rvMean,
RColor[] colors,
ColorDifferenceMeasure m,
int start,
int end)
Calculates the loss - the mean distance of all members of colors to
rvMean.
|
static java.lang.Float |
LCHColor.getLoss(RColor rvMean,
RColor[] colors,
ColorDifferenceMeasure m,
int start,
int end)
Calculates the loss - the mean distance of all members of colors to
rvMean.
|
static java.lang.Float |
LabColor.getLoss(RColor rvMean,
RColor[] colors,
ColorDifferenceMeasure m,
int start,
int end)
Calculates the loss - the mean distance of all members of colors to
rvMean.
|
static java.lang.Float |
LabColor.getLoss(RColor rvMean,
RColor[] colors,
ColorDifferenceMeasure m,
int start,
int end)
Calculates the loss - the mean distance of all members of colors to
rvMean.
|
static java.lang.Float |
HSBColor.getLoss(RColor rvMean,
RColor[] colors,
ColorDifferenceMeasure m,
int start,
int end)
Calculates the loss - the mean distance of all members of colors to
rvMean.
|
static java.lang.Float |
HSBColor.getLoss(RColor rvMean,
RColor[] colors,
ColorDifferenceMeasure m,
int start,
int end)
Calculates the loss - the mean distance of all members of colors to
rvMean.
|
static java.lang.Float |
ColorHelper.getLoss(RColor rvMean,
RColor[] colors,
ColorDifferenceMeasure m,
int start,
int end)
Calculates the loss - the mean distance of all members of colors to
rvMean.
|
static java.lang.Float |
ColorHelper.getLoss(RColor rvMean,
RColor[] colors,
ColorDifferenceMeasure m,
int start,
int end)
Calculates the loss - the mean distance of all members of colors to
rvMean.
|
static RColor |
ColorHelper.getMeanColor(ColorDifferenceMeasure m,
RColor... colors)
Returns the mean color of the given set colors using the color
space defined by the ColorDifferenceMeasure m, e.g RGBEuclidean is
mapped to RGBColor.
|
static XYZColor |
XYZColor.getMeanColor(int start,
int end,
RColor... colors)
Calculates the mean color of the input colors.
|
static RGBColor |
RGBColor.getMeanColor(int start,
int end,
RColor... colors)
Calculates the mean color of the input colors.
|
static LCHColor |
LCHColor.getMeanColor(int start,
int end,
RColor... colors)
Calculates the mean color of the input colors.
|
static LabColor |
LabColor.getMeanColor(int start,
int end,
RColor... colors)
Calculates the mean color of the input colors.
|
static HSBColor |
HSBColor.getMeanColor(int start,
int end,
RColor... colors)
Calculates the mean color of the input colors.
|
static XYZColor |
XYZColor.getMeanColor(RColor... colors)
Calculates the mean color of the input colors
|
static RGBColor |
RGBColor.getMeanColor(RColor... colors)
Calculates the mean color of the input colors
|
static LCHColor |
LCHColor.getMeanColor(RColor... colors)
Calculates the mean color of the input colors
|
static LabColor |
LabColor.getMeanColor(RColor... colors)
Calculates the mean color of the input colors
|
static HSBColor |
HSBColor.getMeanColor(RColor... colors)
Calculates the mean color of the input colors
|
static RColor |
ColorHelper.getMeanColor(RColor[] colors,
ColorDifferenceMeasure m)
Returns the mean color of the given set colors using the color
space defined by the ColorDifferenceMeasure m, e.g RGBEuclidean is
mapped to RGBColor.
|
static RColor |
ColorHelper.getMeanColor(RColor[] colors,
ColorSpace space)
Returns the mean color of the given set colors using the color
space defined by space.
|
static java.lang.Integer |
ColorDifference.getMostDifferentColor(RColor[] bases,
java.util.ArrayList<RColor> targets,
ColorDifferenceMeasure measure)
Calculates the most different color of all targets to the base colors.
|
static java.lang.Integer |
ColorDifference.getMostDifferentColor(RColor[] bases,
RColor[] targets,
ColorDifferenceMeasure measure)
Calculates the most different color of all targets to the base colors.
|
static java.lang.Integer |
ColorDifference.getMostDifferentColor(RColor[] bases,
RColor[] targets,
ColorDifferenceMeasure measure)
Calculates the most different color of all targets to the base colors.
|
static java.lang.Integer |
ColorDifference.getMostDifferentColor(RColor base,
java.util.ArrayList<RColor> targets,
ColorDifferenceMeasure measure)
Calculates the most different color of all targets to the base color.
|
static java.lang.Integer |
ColorDifference.getMostDifferentColor(RColor base,
RColor[] targets,
ColorDifferenceMeasure measure)
Calculates the most different color of all targets to the base color.
|
static java.lang.Integer |
ColorDifference.getMostDifferentColor(RColor base,
RColor[] targets,
ColorDifferenceMeasure measure)
Calculates the most different color of all targets to the base color.
|
static java.lang.Integer |
ColorDifference.getMostSimilarColor(RColor base,
java.util.ArrayList<RColor> targets,
boolean ignoreSelf,
ColorDifferenceMeasure measure)
Calculates the most similar color of all targets to the base color.
|
static java.lang.Integer |
ColorDifference.getMostSimilarColor(RColor base,
java.util.ArrayList<RColor> targets,
ColorDifferenceMeasure measure)
Calculates the most similar color of all targets to the base color.
|
static java.lang.Integer |
ColorDifference.getMostSimilarColor(RColor base,
RColor[] targets,
boolean ignoreSelf,
ColorDifferenceMeasure measure)
Calculates the most similar color of all targets to the base color.
|
static java.lang.Integer |
ColorDifference.getMostSimilarColor(RColor base,
RColor[] targets,
boolean ignoreSelf,
ColorDifferenceMeasure measure)
Calculates the most similar color of all targets to the base color.
|
static java.lang.Integer |
ColorDifference.getMostSimilarColor(RColor base,
RColor[] targets,
ColorDifferenceMeasure measure)
Calculates the most similar color of all targets to the base color.
|
static java.lang.Integer |
ColorDifference.getMostSimilarColor(RColor base,
RColor[] targets,
ColorDifferenceMeasure measure)
Calculates the most similar color of all targets to the base color.
|
RColor |
ColorPalette.getNoisy(RColor c,
float amt)
Returns a color of the palette which is similar to the input color.
|
float |
ColorPalette.getWeighting(RColor c)
Calculates the weighting of a color.
|
static java.lang.Float |
ColorDifference.hsbCone(RColor color1,
RColor color2)
Calculates the difference / distance between two colors using HSB
Euclidean distance using the 3D interpretation of the color model.
|
static java.lang.Float |
ColorDifference.hsbCylinder(RColor color1,
RColor color2)
Calculates the difference / distance between two colors using HSB
Euclidean distance using the 3D interpretation of the color model.
|
static java.lang.Float |
ColorDifference.hsbEuclidean(RColor color1,
RColor color2)
Calculates the difference / distance between two colors using HSB
Euclidean distance.
|
ColorPalette |
ColorPalette.increaseImportance(RColor c,
int howMuch)
Increases the importance of the given color.
|
static java.lang.Float |
ColorDifference.labDeltaC(RColor color1,
RColor color2)
Calculates the chroma difference / distance between two colors.
|
static java.lang.Float |
ColorDifference.labDeltaE(RColor color1,
RColor color2)
Calculates the difference / distance between two colors using Lab
Euclidean (Delta E) distance.
|
static java.lang.Float |
ColorDifference.labDeltaE1994(RColor color1,
RColor color2)
Calculates the difference / distance between two colors using Lab Delta E
1994 distance.
|
static java.lang.Float |
ColorDifference.labDeltaE2000(RColor color1,
RColor color2)
Calculates the difference / distance between two colors using Lab Delta E
2000 distance.
|
static java.lang.Float |
ColorDifference.labDeltaH(RColor color1,
RColor color2)
Calculates the hue difference between two colors.
|
static java.lang.Float |
ColorDifference.lchCMC(RColor color1,
RColor color2)
Calculates the difference / distance between two colors using CMC
distance.
|
static java.lang.Float |
ColorDifference.lchEuclidean(RColor color1,
RColor color2)
Calculates the difference / distance between two colors using LCH
Euclidean distance.
|
static XYZColor |
XYZColor.lerpColors(RColor input1,
RColor input2,
float amt)
Lerps the two input colors and creates a new color.
|
static RGBColor |
RGBColor.lerpColors(RColor input1,
RColor input2,
float amt)
Lerps the two input colors and creates a new color.
|
static LCHColor |
LCHColor.lerpColors(RColor input1,
RColor input2,
float amt)
Lerps the two input colors and creates a new color.
|
static LabColor |
LabColor.lerpColors(RColor input1,
RColor input2,
float amt)
Lerps the two input colors and creates a new color.
|
static HSBColor |
HSBColor.lerpColors(RColor input1,
RColor input2,
float amt)
Lerps the two input colors and creates a new color.
|
static RColor |
ColorHelper.lerpColors(RColor c1,
RColor c2,
float amt)
Lerps the two input colors and creates a new color.
|
ColorPalette |
ColorPalette.remove(RColor c)
Removes the given color from the palette.
|
static java.lang.Float |
ColorDifference.rgbEuclidean(RColor color1,
RColor color2)
Calculates the difference / distance between two colors using RGB
Euclidean distance.
|
static java.lang.Float |
ColorDifference.rgbMeanRed(RColor color1,
RColor color2)
Calculates the difference / distance between two colors using RGB
Euclidean distance weighted with a mean red value.
|
static java.lang.Float |
ColorDifference.rgbWeighted(RColor color1,
RColor color2)
Calculates the difference / distance between two colors using weighted
RGB Euclidean distance.
|
ColorPalette |
ColorPalette.setColorSpace(RColor c)
Sets the measure which will be used to calculate the most similar color
from an input to one of the palette's color.
|
static java.lang.Float |
ColorDifference.xyzEuclidean(RColor color1,
RColor color2)
Calculates the difference / distance between two colors using XYZ
Euclidean distance.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
ColorHelper.contains(RColor ref,
java.util.ArrayList<RColor> colors)
Checks if ref is member of colors.
|
static void |
ColorHelper.convert(java.util.ArrayList<RColor> colors,
ColorSpace target)
Converts the input colors c into the given color space.
|
static java.util.ArrayList<RColor> |
ColorHelper.copy(java.util.ArrayList<RColor> colors)
Creates a copy array of the given input.
|
static java.lang.Float |
XYZColor.getLoss(RColor rvMean,
java.util.ArrayList<RColor> lColors,
ColorDifferenceMeasure m)
Calculates the loss - the mean distance of all members of colors to
rvMean.
|
static java.lang.Float |
RGBColor.getLoss(RColor rvMean,
java.util.ArrayList<RColor> colors,
ColorDifferenceMeasure m)
Calculates the loss - the mean distance of all members of colors to
rvMean.
|
static java.lang.Float |
LCHColor.getLoss(RColor rvMean,
java.util.ArrayList<RColor> lColors,
ColorDifferenceMeasure m)
Calculates the loss - the mean distance of all members of colors to
rvMean.
|
static java.lang.Float |
LabColor.getLoss(RColor rvMean,
java.util.ArrayList<RColor> lColors,
ColorDifferenceMeasure m)
Calculates the loss - the mean distance of all members of colors to
rvMean.
|
static java.lang.Float |
HSBColor.getLoss(RColor rvMean,
java.util.ArrayList<RColor> lColors,
ColorDifferenceMeasure m)
Calculates the loss - the mean distance of all members of colors to
rvMean.
|
static java.lang.Float |
ColorHelper.getLoss(RColor rvMean,
java.util.ArrayList<RColor> colors,
ColorDifferenceMeasure m)
Calculates the loss - the mean distance of all members of colors to
rvMean.
|
static java.lang.Float |
XYZColor.getLoss(RColor rvMean,
java.util.ArrayList<RColor> lColors,
ColorDifferenceMeasure m,
int start,
int end)
Calculates the loss - the mean distance of all members of colors to
rvMean.
|
static java.lang.Float |
RGBColor.getLoss(RColor rvMean,
java.util.ArrayList<RColor> colors,
ColorDifferenceMeasure m,
int start,
int end)
Calculates the loss - the mean distance of all members of colors to
rvMean.
|
static java.lang.Float |
LCHColor.getLoss(RColor rvMean,
java.util.ArrayList<RColor> lColors,
ColorDifferenceMeasure m,
int start,
int end)
Calculates the loss - the mean distance of all members of colors to
rvMean.
|
static java.lang.Float |
LabColor.getLoss(RColor rvMean,
java.util.ArrayList<RColor> lColors,
ColorDifferenceMeasure m,
int start,
int end)
Calculates the loss - the mean distance of all members of colors to
rvMean.
|
static java.lang.Float |
HSBColor.getLoss(RColor rvMean,
java.util.ArrayList<RColor> lColors,
ColorDifferenceMeasure m,
int start,
int end)
Calculates the loss - the mean distance of all members of colors to
rvMean.
|
static java.lang.Float |
ColorHelper.getLoss(RColor rvMean,
java.util.ArrayList<RColor> colors,
ColorDifferenceMeasure m,
int start,
int end)
Calculates the loss - the mean distance of all members of colors to
rvMean.
|
static XYZColor |
XYZColor.getMeanColor(java.util.ArrayList<RColor> colors)
Calculates the mean color of the input colors
|
static RGBColor |
RGBColor.getMeanColor(java.util.ArrayList<RColor> colors)
Calculates the mean color of the input colors
|
static LCHColor |
LCHColor.getMeanColor(java.util.ArrayList<RColor> colors)
Calculates the mean color of the input colors
|
static LabColor |
LabColor.getMeanColor(java.util.ArrayList<RColor> colors)
Calculates the mean color of the input colors
|
static HSBColor |
HSBColor.getMeanColor(java.util.ArrayList<RColor> colors)
Calculates the mean color of the input colors
|
static RColor |
ColorHelper.getMeanColor(java.util.ArrayList<RColor> colors,
ColorDifferenceMeasure m)
Returns the mean color of the given set colors using the color
space defined by the ColorDifferenceMeasure m, e.g RGBEuclidean is
mapped to RGBColor.
|
static RColor |
ColorHelper.getMeanColor(java.util.ArrayList<RColor> colors,
ColorSpace space)
Returns the mean color of the given set colors using the color
space defined by space.
|
static XYZColor |
XYZColor.getMeanColor(int start,
int end,
java.util.ArrayList<RColor> colors)
Calculates the mean color of the input colors.
|
static RGBColor |
RGBColor.getMeanColor(int start,
int end,
java.util.ArrayList<RColor> colors)
Calculates the mean color of the input colors.
|
static LCHColor |
LCHColor.getMeanColor(int start,
int end,
java.util.ArrayList<RColor> colors)
Calculates the mean color of the input colors.
|
static LabColor |
LabColor.getMeanColor(int start,
int end,
java.util.ArrayList<RColor> colors)
Calculates the mean color of the input colors.
|
static HSBColor |
HSBColor.getMeanColor(int start,
int end,
java.util.ArrayList<RColor> colors)
Calculates the mean color of the input colors.
|
static java.lang.Integer |
ColorDifference.getMostDifferentColor(RColor[] bases,
java.util.ArrayList<RColor> targets,
ColorDifferenceMeasure measure)
Calculates the most different color of all targets to the base colors.
|
static java.lang.Integer |
ColorDifference.getMostDifferentColor(RColor base,
java.util.ArrayList<RColor> targets,
ColorDifferenceMeasure measure)
Calculates the most different color of all targets to the base color.
|
static java.lang.Integer |
ColorDifference.getMostSimilarColor(RColor base,
java.util.ArrayList<RColor> targets,
boolean ignoreSelf,
ColorDifferenceMeasure measure)
Calculates the most similar color of all targets to the base color.
|
static java.lang.Integer |
ColorDifference.getMostSimilarColor(RColor base,
java.util.ArrayList<RColor> targets,
ColorDifferenceMeasure measure)
Calculates the most similar color of all targets to the base color.
|
| Constructor and Description |
|---|
ColorPalette(RColor[] colors)
Creates a color palette with the given colors.
|
| Constructor and Description |
|---|
ColorPalette(java.util.ArrayList<RColor> colors)
Creates a color palette with the given colors.
|
| Modifier and Type | Method and Description |
|---|---|
static float |
RMath.max(char channel,
RColor... vals)
Returns the maximal color value found in the set of the input.
|
static float[] |
RMath.max(ColorSpace space,
RColor... vals)
Calculates the the maximal values of all color channels of the given
color set.
|
static float |
RMath.min(char channel,
RColor... vals)
Returns the minimal color value found in the set of the input.
|
static float[] |
RMath.min(ColorSpace space,
RColor... vals)
Calculates the the minimal values of all color channels of the given
color set.
|
static float[] |
RMath.range(ColorSpace space,
RColor... vals)
Calculates the range (minimum and maximum values) of all color channels
the given color set.
|