| 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 |
|---|---|
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(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 | Field and Description |
|---|---|
static ColorSpace |
XYZColor.NAME
The ColorSpace of RGB colors.
|
static ColorSpace |
RGBColor.NAME
The ColorSpace of RGB colors.
|
static ColorSpace |
LCHColor.NAME
The ColorSpace of RGB colors.
|
static ColorSpace |
LabColor.NAME
The ColorSpace of RGB colors.
|
static ColorSpace |
HSBColor.NAME
The ColorSpace of RGB colors.
|
| Modifier and Type | Method and Description |
|---|---|
ColorSpace |
XYZColor.getColorSpace() |
ColorSpace |
RGBColor.getColorSpace() |
ColorSpace |
RColor.getColorSpace()
Returns the color space of the color.
|
ColorSpace |
LCHColor.getColorSpace() |
ColorSpace |
LabColor.getColorSpace() |
ColorSpace |
HSBColor.getColorSpace() |
ColorSpace |
ColorPalette.getColorSpace()
Returns the current ColorSpace.
|
ColorSpace |
ColorDifferenceMeasure.toColorSpace()
Converts a given ColorDofferenceMeasure to its ColorSpace equivalent.
|
static ColorSpace |
ColorSpace.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ColorSpace[] |
ColorSpace.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
ColorHelper.convert(java.util.ArrayList<RColor> colors,
ColorSpace target)
Converts the input colors c into the given color space.
|
static void |
ColorHelper.convert(RColor[] colors,
ColorSpace target)
Converts the input colors c into the given color space.
|
static RColor |
ColorHelper.convert(RColor c,
ColorSpace target)
Converts the input color c into the given target color space.
|
boolean |
ColorDifferenceMeasure.equals(ColorSpace space)
Checks if a ColorSpace is equal to a ColorDofferenceMeasure.
|
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(RColor[] colors,
ColorSpace space)
Returns the mean color of the given set colors using the color
space defined by space.
|
ColorPalette |
ColorPalette.setColorSpace(ColorSpace space)
Sets the measure which will be used to calculate the most similar color
from an input to one of the palette's color.
|
| Modifier and Type | Method and Description |
|---|---|
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(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.
|