- All Superinterfaces:
ICCColorProfile
An RGB color profile.
-
Method Summary
Modifier and TypeMethodDescriptiondoublegammaCompanding(double linearComponent) Apply the transfer function ('gamma companding') to a linear component.doublelinearComponent(double compandedComponent) Perform an inverse gamma companding.default voidlinearizeComponents(double[] rgb) Perform an inverse gamma companding on the components.voidlinearRgbToXYZ(double[] rgb, double[] xyz) Convert from linear RGB to xyz coordinates.voidxyzToLinearRgb(double[] xyz, double[] linearRgb) Convert from xyz coordinates to linear RGB.default voidxyzToRgb(double[] xyz, double[] rgb) Convert from xyz coordinates to RGB.Methods inherited from interface io.sf.carte.doc.color.ICCColorProfile
getWhitePoint
-
Method Details
-
linearizeComponents
default void linearizeComponents(double[] rgb) Perform an inverse gamma companding on the components.- Parameters:
rgb- the non-linear color components.
-
linearRgbToXYZ
void linearRgbToXYZ(double[] rgb, double[] xyz) Convert from linear RGB to xyz coordinates.- Parameters:
rgb- a 3-vector with the r, g and b components.xyz- a 3-vector that can store the resulting xyz coordinates, expressed in this profile's chromaticity.
-
xyzToLinearRgb
void xyzToLinearRgb(double[] xyz, double[] linearRgb) Convert from xyz coordinates to linear RGB.- Parameters:
xyz- a 3-vector with the xyz coordinates, expressed in this profile's chromaticity.linearRgb- a 3-vector that can store the resulting linear r, g and b components.
-
xyzToRgb
default void xyzToRgb(double[] xyz, double[] rgb) Convert from xyz coordinates to RGB.- Parameters:
xyz- a 3-vector with the xyz coordinates, expressed in this profile's chromaticity.rgb- a 3-vector that can store the resulting r, g and b components.
-
gammaCompanding
double gammaCompanding(double linearComponent) Apply the transfer function ('gamma companding') to a linear component.- Parameters:
linearComponent- the linear component.- Returns:
- the non-linear color component.
-
linearComponent
double linearComponent(double compandedComponent) Perform an inverse gamma companding.- Parameters:
compandedComponent- the non-linear color component.- Returns:
- the linear component.
-