org.cybertory.MSS
Class GradientFunction
java.lang.Object
org.cybertory.MSS.SimpleFunction
org.cybertory.MSS.GradientFunction
- All Implemented Interfaces:
- javax.media.jai.ImageFunction
- public class GradientFunction
- extends SimpleFunction
This function assumes the target image has an origin of (0,0) and
a lower left corner of (1,1).
Constructor Summary |
GradientFunction(double gradientAngle,
double centerIntensity,
double rateOfIntensityChange)
|
Method Summary |
double |
calcValue(double x,
double y)
|
java.lang.Object |
getScaled(float pixelSize)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GradientFunction
public GradientFunction(double gradientAngle,
double centerIntensity,
double rateOfIntensityChange)
calcValue
public double calcValue(double x,
double y)
- Specified by:
calcValue
in class SimpleFunction
getScaled
public java.lang.Object getScaled(float pixelSize)