org.cybertory.MSS
Class PointModifyFunction
java.lang.Object
org.cybertory.MSS.PointModifyFunction
- Direct Known Subclasses:
- PolynomialNoiseFunction
- public class PointModifyFunction
- extends java.lang.Object
In spirit, this class is an abstract class; subclasses must override
either modifyValues(float[])
or getModifiedValue(float)
methods.
But it can't use the 'abstract' keyword because neither method must be
overridden, but rather the subclass can choose which method to override.
If the channels are independent of each other, it's easier to override
modifyValues(float[])
.
Method Summary |
float |
getModifiedValue(float srcValue)
Override this method if the values for different channels are
independent of each other. |
void |
modifyValues(float[] values)
Override this method if the values for different channels are not
independent of each other. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PointModifyFunction
public PointModifyFunction()
modifyValues
public void modifyValues(float[] values)
- Override this method if the values for different channels are not
independent of each other. The values are modified in place.
- Parameters:
values
- input and output array of channel values for a pixel.
getModifiedValue
public float getModifiedValue(float srcValue)
- Override this method if the values for different channels are
independent of each other.
- Parameters:
srcValue
- input source value for a channel in one pixel
- Returns:
- the modified intensity value for the input value