TransferParameters
open class TransferParameters
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:
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
- is in the range
- The function is not constant
- The function is positive and increasing
Summary
Public constructors | |
---|---|
Defines the parameters for the ICC parametric curve type 3, as defined in ICC. |
|
Defines the parameters for the ICC parametric curve type 4, as defined in ICC. |
Properties | |
---|---|
Double |
Variable in the equation of the EOTF described above. |
Double |
Variable in the equation of the EOTF described above. |
Double |
Variable in the equation of the EOTF described above. |
Double |
Variable in the equation of the EOTF described above. |
Double |
Variable in the equation of the EOTF described above. |
Double |
Variable in the equation of the EOTF described above. |
Double |
Variable in the equation of the EOTF described above. |
Public constructors
TransferParameters
TransferParameters(
a: Double,
b: Double,
c: Double,
d: Double,
g: Double)
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:
This constructor is equivalent to setting and to 0.
Parameters | |
---|---|
a |
Double: The value of in the equation of the EOTF described above |
b |
Double: The value of in the equation of the EOTF described above |
c |
Double: The value of in the equation of the EOTF described above |
d |
Double: The value of in the equation of the EOTF described above |
g |
Double: The value of in the equation of the EOTF described above |
Exceptions | |
---|---|
java.lang.IllegalArgumentException |
If the parameters form an invalid transfer function |
TransferParameters
TransferParameters(
a: Double,
b: Double,
c: Double,
d: Double,
e: Double,
f: Double,
g: Double)
Defines the parameters for the ICC parametric curve type 4, as defined in ICC.1:2004-10, section 10.15.
Parameters | |
---|---|
a |
Double: The value of in the equation of the EOTF described above |
b |
Double: The value of in the equation of the EOTF described above |
c |
Double: The value of in the equation of the EOTF described above |
d |
Double: The value of in the equation of the EOTF described above |
e |
Double: The value of in the equation of the EOTF described above |
f |
Double: The value of in the equation of the EOTF described above |
g |
Double: The value of in the equation of the EOTF described above |
Exceptions | |
---|---|
java.lang.IllegalArgumentException |
If the parameters form an invalid transfer function |
Public methods
equals
open fun equals(other: Any?): Boolean
Parameters | |
---|---|
obj |
the reference object with which to compare. |
Return | |
---|---|
Boolean |
true if this object is the same as the obj argument; false otherwise. |
hashCode
open fun hashCode(): Int
Return | |
---|---|
Int |
a hash code value for this object. |