public class ConcreteComponentTransferFunction extends java.lang.Object implements ComponentTransferFunction
Modifier and Type | Field and Description |
---|---|
private float |
amplitude |
private float |
exponent |
private float |
intercept |
private float |
offset |
private float |
slope |
private float[] |
tableValues |
private int |
type |
Modifier | Constructor and Description |
---|---|
private |
ConcreteComponentTransferFunction()
Instances should be created through the various
factory methods.
|
Modifier and Type | Method and Description |
---|---|
float |
getAmplitude()
Returns the amplitude value for this transfer function
|
static ComponentTransferFunction |
getDiscreteTransfer(float[] tableValues)
Returns a discrete transfer function
|
float |
getExponent()
Returns the exponent value for this transfer function
|
static ComponentTransferFunction |
getGammaTransfer(float amplitude,
float exponent,
float offset)
Returns a gamma function
|
static ComponentTransferFunction |
getIdentityTransfer()
Returns an instance initialized as an identity
transfer function
|
float |
getIntercept()
Returns the intercept value for this transfer function
|
static ComponentTransferFunction |
getLinearTransfer(float slope,
float intercept)
Returns a linear transfer function
|
float |
getOffset()
Returns the offset value for this transfer function
|
float |
getSlope()
Returns the slope value for this transfer function
|
static ComponentTransferFunction |
getTableTransfer(float[] tableValues)
Returns a table transfer function
|
float[] |
getTableValues()
Returns the table values for this transfer function
|
int |
getType()
Returns the type of this transfer function
|
private int type
private float slope
private float[] tableValues
private float intercept
private float amplitude
private float exponent
private float offset
private ConcreteComponentTransferFunction()
public static ComponentTransferFunction getIdentityTransfer()
public static ComponentTransferFunction getTableTransfer(float[] tableValues)
public static ComponentTransferFunction getDiscreteTransfer(float[] tableValues)
public static ComponentTransferFunction getLinearTransfer(float slope, float intercept)
public static ComponentTransferFunction getGammaTransfer(float amplitude, float exponent, float offset)
public int getType()
getType
in interface ComponentTransferFunction
public float getSlope()
getSlope
in interface ComponentTransferFunction
public float[] getTableValues()
getTableValues
in interface ComponentTransferFunction
public float getIntercept()
getIntercept
in interface ComponentTransferFunction
public float getAmplitude()
getAmplitude
in interface ComponentTransferFunction
public float getExponent()
getExponent
in interface ComponentTransferFunction
public float getOffset()
getOffset
in interface ComponentTransferFunction