cz.cuni.jagrlib.iface
Interface ValueTransferFunction

All Superinterfaces:
Property
All Known Implementing Classes:
DefaultValueTransferFunction

public interface ValueTransferFunction
extends Property

Value-transfer function interface: representation of R -> R function (Pixel -> Pixel).

Since:
0.02
See Also:
ValueTransferFunction.java

Field Summary
 
Fields inherited from interface cz.cuni.jagrlib.iface.Property
LOGGING, STATISTICS, TEXT_DESCRIPTION
 
Method Summary
 double transfer(double value)
          Scalar value-transfer function.
 int transfer(double[] input)
          Gr[A] or RGB[A] -> index (classification) function.
 void transfer(double[] input, double[] output)
          Gr[A] or RGB[A] value-transfer function.
 int transfer(int[] input, int max)
          Gr[A] or RGB[A] -> index (classification) function.
 void transfer(int[] input, int[] output, int max)
          Gr[A] or RGB[A] value-transfer function.
 int transfer(int value, int max)
          Scalar value-transfer function.
 double transferInv(double value)
          Scalar inverse value-transfer function.
 void transferInv(double[] input, double[] output)
          Gr[A] or RGB[A] inverse value-transfer function.
 void transferInv(int[] input, int[] output, int max)
          Gr[A] or RGB[A] inverse value-transfer function.
 void transferInv(int input, double[] output)
          Index -> Gr[A] or RGB[A] (reconstruction) function.
 int transferInv(int value, int max)
          Scalar inverse value-transfer function.
 void transferInv(int input, int[] output, int max)
          Index -> Gr[A] or RGB[A] (reconstruction) function.
 
Methods inherited from interface cz.cuni.jagrlib.iface.Property
commit, get, set
 

Method Detail

transfer

int transfer(int value,
             int max)
Scalar value-transfer function.

Parameters:
value - Input value (range from 0 to max).
max - Maximal input/output value.
Returns:
Output value (range from 0 to max).

transferInv

int transferInv(int value,
                int max)
Scalar inverse value-transfer function.

Parameters:
value - Input value (range from 0 to max).
max - Maximal input/output value.
Returns:
Output value (range from 0 to max).

transfer

double transfer(double value)
Scalar value-transfer function.

Parameters:
value - Input value (range from 0.0 to 1.0).
Returns:
Output value (range from 0.0 to 1.0).

transferInv

double transferInv(double value)
Scalar inverse value-transfer function.

Parameters:
value - Input value (range from 0.0 to 1.0).
Returns:
Output value (range from 0.0 to 1.0).

transfer

void transfer(int[] input,
              int[] output,
              int max)
Gr[A] or RGB[A] value-transfer function. Can be used for higher dimensions too.

Parameters:
input - Input value (scalar range from 0 to max).
output - Output value (scalar range from 0 to max). Can be the same as input (in-place operation).
max - Maximal input/output value.

transferInv

void transferInv(int[] input,
                 int[] output,
                 int max)
Gr[A] or RGB[A] inverse value-transfer function. Can be used for higher dimensions too.

Parameters:
input - Input value (scalar range from 0 to max).
output - Output value (scalar range from 0 to max). Can be the same as input (in-place operation).
max - Maximal input/output value.

transfer

void transfer(double[] input,
              double[] output)
Gr[A] or RGB[A] value-transfer function. Can be used for higher dimensions too.

Parameters:
input - Input value (scalar range from 0.0 to 1.0).
output - Output value (scalar range from 0.0 to 1.0). Can be the same as input (in-place operation).

transferInv

void transferInv(double[] input,
                 double[] output)
Gr[A] or RGB[A] inverse value-transfer function. Can be used for higher dimensions too.

Parameters:
input - Input value (scalar range from 0.0 to 1.0).
output - Output value (scalar range from 0.0 to 1.0). Can be the same as input (in-place operation).

transfer

int transfer(int[] input,
             int max)
Gr[A] or RGB[A] -> index (classification) function. Typical usage: color quantization.

Parameters:
input - Input value (scalar range from 0 to max).
max - Maximal input value.
Returns:
Output index value (color index).

transferInv

void transferInv(int input,
                 int[] output,
                 int max)
Index -> Gr[A] or RGB[A] (reconstruction) function. Typical usage: color mapping using a palette.

Parameters:
input - Index value (color index).
output - Output value (scalar range from 0 to max).
max - Maximal output value.

transfer

int transfer(double[] input)
Gr[A] or RGB[A] -> index (classification) function. Typical usage: color quantization.

Parameters:
input - Input value (scalar range from 0.0 to 1.0).
Returns:
Output index value (color index).

transferInv

void transferInv(int input,
                 double[] output)
Index -> Gr[A] or RGB[A] (reconstruction) function. Typical usage: color mapping using a palette.

Parameters:
input - Index value (color index).
output - Output value (scalar range from 0.0 to 1.0).