|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcz.cuni.jagrlib.DefaultProperty
cz.cuni.jagrlib.Piece
cz.cuni.jagrlib.DefaultValueTransferFunction
public abstract class DefaultValueTransferFunction
Default implementation of ValueTransferFunction interface.
| Field Summary |
|---|
| Fields inherited from class cz.cuni.jagrlib.Piece |
|---|
channels, info, pl, plugs, reg, TEMPLATE_TYPE, userBreak |
| Fields inherited from interface cz.cuni.jagrlib.iface.Property |
|---|
LOGGING, STATISTICS, TEXT_DESCRIPTION |
| Constructor Summary | |
|---|---|
DefaultValueTransferFunction()
|
|
| Method Summary | |
|---|---|
boolean |
loadData(byte[] data)
Loads instance parameters from (previously stored) binary data. |
byte[] |
storeData()
Pack instance parameters into binary format. |
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 class cz.cuni.jagrlib.Piece |
|---|
className, connect, findPlug, findPlug, getInfo, getInterface, getInterface, getPlug, getReg, init, isCompatible, isCompatible, isConnected, logError, logWarning, myInterface, newInputPlug, newOptOutputPlug, newOutputPlug, newPlug, noTemplates, propBegin, propBounds, propDefault, propEnd, propEnum, propManipulator, propManipulator, setProgressListener, setRegStrings, setTemplate, setTemplateDynamic, stop |
| Methods inherited from class cz.cuni.jagrlib.DefaultProperty |
|---|
booleanProperty, booleanProperty, colorDoubleProperty, colorProperty, commit, doubleProperty, doubleProperty, doubleProperty, enumProperty, floatProperty, floatProperty, floatProperty, get, intProperty, intProperty, intProperty, longProperty, longProperty, longProperty, set, set, stringProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface cz.cuni.jagrlib.iface.Property |
|---|
commit, get, set |
| Constructor Detail |
|---|
public DefaultValueTransferFunction()
| Method Detail |
|---|
public int transfer(int value,
int max)
transfer in interface ValueTransferFunctionvalue - Input value (range from 0 to max).max - Maximal input/output value.
public int transferInv(int value,
int max)
transferInv in interface ValueTransferFunctionvalue - Input value (range from 0 to max).max - Maximal input/output value.
public double transfer(double value)
transfer in interface ValueTransferFunctionvalue - Input value (range from 0.0 to 1.0).
public double transferInv(double value)
transferInv in interface ValueTransferFunctionvalue - Input value (range from 0.0 to 1.0).
public void transfer(int[] input,
int[] output,
int max)
transfer in interface ValueTransferFunctioninput - 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.
public void transferInv(int[] input,
int[] output,
int max)
transferInv in interface ValueTransferFunctioninput - 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.
public void transfer(double[] input,
double[] output)
transfer in interface ValueTransferFunctioninput - 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).
public void transferInv(double[] input,
double[] output)
transferInv in interface ValueTransferFunctioninput - 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).
public int transfer(int[] input,
int max)
transfer in interface ValueTransferFunctioninput - Input value (scalar range from 0 to max).max - Maximal input value.
public void transferInv(int input,
int[] output,
int max)
transferInv in interface ValueTransferFunctioninput - Index value (color index).output - Output value (scalar range from 0 to max).max - Maximal output value.public int transfer(double[] input)
transfer in interface ValueTransferFunctioninput - Input value (scalar range from 0.0 to 1.0).
public void transferInv(int input,
double[] output)
transferInv in interface ValueTransferFunctioninput - Index value (color index).output - Output value (scalar range from 0.0 to 1.0).public byte[] storeData()
storeData in interface PersistentParamsBinaryloadData(byte[])public boolean loadData(byte[] data)
loadData in interface PersistentParamsBinarydata - Binary data to be interpreted. Can be null.
storeData()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||