Package net.algart.arrays
Class ColorMatrices
java.lang.Object
net.algart.arrays.ColorMatrices
Utilities useful for working with lists of AlgART matrices
,
representing channels in a color image.
This class cannot be instantiated.
- Author:
- Daniel Alievsky
-
Field Summary
Modifier and TypeFieldDescriptionstatic final double
static final double
static final double
-
Method Summary
Modifier and TypeMethodDescriptionasBlueFromHSL
(Class<T> resultType, Matrix<? extends PArray> hue, Matrix<? extends PArray> saturation, Matrix<? extends PArray> lightness) asBlueFromHSV
(Class<T> resultType, Matrix<? extends PArray> hue, Matrix<? extends PArray> saturation, Matrix<? extends PArray> value) asGreenFromHSL
(Class<T> resultType, Matrix<? extends PArray> hue, Matrix<? extends PArray> saturation, Matrix<? extends PArray> lightness) asGreenFromHSV
(Class<T> resultType, Matrix<? extends PArray> hue, Matrix<? extends PArray> saturation, Matrix<? extends PArray> value) asHSLLightness
(Class<T> resultType, Matrix<? extends PArray> r, Matrix<? extends PArray> g, Matrix<? extends PArray> b) asHSLSaturation
(Class<T> resultType, Matrix<? extends PArray> r, Matrix<? extends PArray> g, Matrix<? extends PArray> b) asHSVSaturation
(Class<T> resultType, Matrix<? extends PArray> r, Matrix<? extends PArray> g, Matrix<? extends PArray> b) asHSVValue
(Class<T> resultType, Matrix<? extends PArray> r, Matrix<? extends PArray> g, Matrix<? extends PArray> b) asHue
(Class<T> resultType, Matrix<? extends PArray> r, Matrix<? extends PArray> g, Matrix<? extends PArray> b) asRedFromHSL
(Class<T> resultType, Matrix<? extends PArray> hue, Matrix<? extends PArray> saturation, Matrix<? extends PArray> lightness) asRedFromHSV
(Class<T> resultType, Matrix<? extends PArray> hue, Matrix<? extends PArray> saturation, Matrix<? extends PArray> value) asRGBFromHSL
(Class<? extends PArray> resultType, Matrix<? extends PArray> hue, Matrix<? extends PArray> saturation, Matrix<? extends PArray> lightness) asRGBFromHSV
(Class<? extends PArray> resultType, Matrix<? extends PArray> hue, Matrix<? extends PArray> saturation, Matrix<? extends PArray> value) asRGBIntensity
(Class<T> resultType, Matrix<? extends PArray> r, Matrix<? extends PArray> g, Matrix<? extends PArray> b) asRGBIntensity
(List<? extends Matrix<? extends PArray>> colorBands) static double
hslToBlue
(double h, double s, double l) static double
hslToGreen
(double h, double s, double l) static double
hslToRed
(double h, double s, double l) static double
hsvToBlue
(double h, double s, double v) static double
hsvToGreen
(double h, double s, double v) static double
hsvToRed
(double h, double s, double v) static double
rgbToHue
(double r, double g, double b) static double
rgbToLightness
(double r, double g, double b) static double
rgbToSaturationHsl
(double r, double g, double b) static double
rgbToSaturationHsv
(double r, double g, double b) static double
rgbToValue
(double r, double g, double b)
-
Field Details
-
INTENSITY_R_WEIGHT
public static final double INTENSITY_R_WEIGHT- See Also:
-
INTENSITY_B_WEIGHT
public static final double INTENSITY_B_WEIGHT- See Also:
-
INTENSITY_G_WEIGHT
public static final double INTENSITY_G_WEIGHT- See Also:
-
-
Method Details
-
asRGBIntensity
-
asRGBIntensity
-
asRGBIntensity
-
asHue
-
asHSVSaturation
-
asHSVValue
-
asHSLSaturation
-
asHSLLightness
-
asRedFromHSV
-
asGreenFromHSV
-
asBlueFromHSV
-
asRedFromHSL
-
asGreenFromHSL
-
asBlueFromHSL
-
asRGBFromHSV
-
asRGBFromHSL
-
rgbToHue
public static double rgbToHue(double r, double g, double b) -
rgbToSaturationHsv
public static double rgbToSaturationHsv(double r, double g, double b) -
rgbToValue
public static double rgbToValue(double r, double g, double b) -
rgbToSaturationHsl
public static double rgbToSaturationHsl(double r, double g, double b) -
rgbToLightness
public static double rgbToLightness(double r, double g, double b) -
hsvToRed
public static double hsvToRed(double h, double s, double v) -
hsvToGreen
public static double hsvToGreen(double h, double s, double v) -
hsvToBlue
public static double hsvToBlue(double h, double s, double v) -
hslToRed
public static double hslToRed(double h, double s, double l) -
hslToGreen
public static double hslToGreen(double h, double s, double l) -
hslToBlue
public static double hslToBlue(double h, double s, double l)
-