org.cybertory.MSS
Class GradientFunction

java.lang.Object
  extended byorg.cybertory.MSS.SimpleFunction
      extended byorg.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 org.cybertory.MSS.SimpleFunction
getElements, getElements, getNumElements, isComplex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GradientFunction

public GradientFunction(double gradientAngle,
                        double centerIntensity,
                        double rateOfIntensityChange)
Method Detail

calcValue

public double calcValue(double x,
                        double y)
Specified by:
calcValue in class SimpleFunction

getScaled

public java.lang.Object getScaled(float pixelSize)