Class ColorSpace.Rgb.TransferParameters
- Enclosing class:
ColorSpace.Rgb
Defines the parameters for the ICC parametric curve type 4, as defined in ICC.1:2004-10, section 10.15.
The EOTF is of the form:
\(\begin{equation} Y = \begin{cases}c X + f invalid input: '&' X \lt d \\\ \left( a X + b \right) ^{g} + e invalid input: '&' X \ge d \end{cases} \end{equation}\)
The corresponding OETF is simply the inverse function.
The parameters defined by this class form a valid transfer function only if all the following conditions are met:
- No parameter is a
Not-a-Number
- \(d\) is in the range \([0..1]\)
- The function is not constant
- The function is positive and increasing
-
Field Summary
Modifier and TypeFieldDescriptionfinal double
Variable \(a\) in the equation of the EOTF described above.final double
Variable \(b\) in the equation of the EOTF described above.final double
Variable \(c\) in the equation of the EOTF described above.final double
Variable \(d\) in the equation of the EOTF described above.final double
Variable \(e\) in the equation of the EOTF described above.final double
Variable \(f\) in the equation of the EOTF described above.final double
Variable \(g\) in the equation of the EOTF described above. -
Constructor Summary
ConstructorDescriptionTransferParameters
(double a, double b, double c, double d, double g) Defines the parameters for the ICC parametric curve type 3, as defined in ICC.1:2004-10, section 10.15.TransferParameters
(double a, double b, double c, double d, double e, double f, double g) Defines the parameters for the ICC parametric curve type 4, as defined in ICC.1:2004-10, section 10.15. -
Method Summary
-
Field Details
-
a
public final double aVariable \(a\) in the equation of the EOTF described above. -
b
public final double bVariable \(b\) in the equation of the EOTF described above. -
c
public final double cVariable \(c\) in the equation of the EOTF described above. -
d
public final double dVariable \(d\) in the equation of the EOTF described above. -
e
public final double eVariable \(e\) in the equation of the EOTF described above. -
f
public final double fVariable \(f\) in the equation of the EOTF described above. -
g
public final double gVariable \(g\) in the equation of the EOTF described above.
-
-
Constructor Details
-
TransferParameters
public TransferParameters(double a, double b, double c, double d, double g) Defines the parameters for the ICC parametric curve type 3, as defined in ICC.1:2004-10, section 10.15.
The EOTF is of the form:
\(\begin{equation} Y = \begin{cases}c X invalid input: '&' X \lt d \\\ \left( a X + b \right) ^{g} invalid input: '&' X \ge d \end{cases} \end{equation}\)
This constructor is equivalent to setting \(e\) and \(f\) to 0.
- Parameters:
a
- The value of \(a\) in the equation of the EOTF described aboveb
- The value of \(b\) in the equation of the EOTF described abovec
- The value of \(c\) in the equation of the EOTF described aboved
- The value of \(d\) in the equation of the EOTF described aboveg
- The value of \(g\) in the equation of the EOTF described above- Throws:
IllegalArgumentException
- If the parameters form an invalid transfer function
-
TransferParameters
public TransferParameters(double a, double b, double c, double d, double e, double f, double g) Defines the parameters for the ICC parametric curve type 4, as defined in ICC.1:2004-10, section 10.15.
- Parameters:
a
- The value of \(a\) in the equation of the EOTF described aboveb
- The value of \(b\) in the equation of the EOTF described abovec
- The value of \(c\) in the equation of the EOTF described aboved
- The value of \(d\) in the equation of the EOTF described abovee
- The value of \(e\) in the equation of the EOTF described abovef
- The value of \(f\) in the equation of the EOTF described aboveg
- The value of \(g\) in the equation of the EOTF described above- Throws:
IllegalArgumentException
- If the parameters form an invalid transfer function
-
-
Method Details