| 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.
|
| Modifier and Type | Method and Description |
|---|---|
ColorDifferenceMeasure |
ColorClusteringBuilder.getColorDifferenceMeasure()
Returns the ColorDifferenceMeasure which defines the distance measure for
the clustering process.
|
ColorDifferenceMeasure |
ColorClustering.getColorDifferenceMeasure()
Returns the ColorDifferenceMeasure which is used to calculate the most
similar cluster to a given color within the getCluster() and
getClusterIndex() methods.
|
ColorDifferenceMeasure |
ColorCluster.getColorDifferenceMeasure()
Returns the current ColorDifferenceMeasure.
|
| Modifier and Type | Method and Description |
|---|---|
static ColorCluster[] |
ClusteringHelper.colorsToClusters(RColor[] means,
ColorDifferenceMeasure m)
Builds new ColorClusters from a given set of colors.
|
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(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 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.
|
void |
ColorClusteringBuilder.setColorDifferenceMeasure(ColorDifferenceMeasure m)
Sets a new ColorDifferenceMeasure.
|
ColorCluster |
ColorCluster.setColorDifferenceMeasure(ColorDifferenceMeasure m)
Sets a new ColorDifferenceMeasure.
|
| Constructor and Description |
|---|
ColorCluster(RColor mean,
ColorDifferenceMeasure m)
Builds a new cluster without any member but with a set mean.
|
ColorClusteringBuilder(processing.core.PApplet parent,
ColorDifferenceMeasure m)
Builds a new ColorClusteringBuilder with minK=2, maxK=30 and m as
ColorDifferenceMeasure.
|
| Modifier and Type | Method and Description |
|---|---|
ColorDifferenceMeasure |
ColorPalette.getColorDifferenceMeasure()
Returns the current ColorDifferenceMeasure.
|
ColorDifferenceMeasure |
ColorSpace.toColorDifferenceMeasure()
Converts a given ColorSpace to its ColorDofferenceMeasure equivalent.
|
static ColorDifferenceMeasure |
ColorDifferenceMeasure.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ColorDifferenceMeasure[] |
ColorDifferenceMeasure.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| 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 java.lang.Float |
ColorDifference.difference(RColor color1,
RColor color2,
ColorDifferenceMeasure measure)
Calculates the difference / distance between two colors.
|
boolean |
ColorSpace.equals(ColorDifferenceMeasure m)
Checks if a ColorSpace is equal to a ColorDofferenceMeasure.
|
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 |
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 |
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 |
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 |
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 |
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 |
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(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(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 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 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.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,
ColorDifferenceMeasure measure)
Calculates the most similar color of all targets to the base color.
|
ColorPalette |
ColorPalette.setColorDifferenceMeasure(ColorDifferenceMeasure m)
Sets the ColorDifferenceMeasure.
|