motris.data
Class DerivativeImage

java.lang.Object
  extended bymotris.data.MotrisImage
      extended bymotris.data.DerivativeImage
All Implemented Interfaces:
java.lang.Cloneable

public class DerivativeImage
extends MotrisImage

Image containing the derivative of an Image (x,y, and t derivative).

Author:
ottlik

Field Summary
(package private)  double[][][] data
          The derivative data.
static int DTIndex
           
static int DXIndex
          Constants for access of elements
static int DYIndex
           
 
Fields inherited from class motris.data.MotrisImage
Clipping, COLOR, DERIVATION, frameNr, GRAY, OF, type
 
Constructor Summary
DerivativeImage(int width, int height)
           
DerivativeImage(int width, int height, int framenum)
           
DerivativeImage(int x, int y, int width, int height)
           
DerivativeImage(int x, int y, int width, int height, int framenum, boolean initWholeData)
           
 
Method Summary
 double get2DNorm(int x, int y)
           
 double getAngle(int x, int y)
          returns the angle in the 2d x/y plane Range: 0 to 2*PI
 double[][][] getData()
           
 double getSquared2DNorm(int x, int y)
           
 
Methods inherited from class motris.data.MotrisImage
getClipping, getDoubleDataArray, getFrameNr, getHeight, getIntDataArray, getType, getWidth, getX, getY, setFrameNr, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DXIndex

public static final int DXIndex
Constants for access of elements

See Also:
Constant Field Values

DYIndex

public static final int DYIndex
See Also:
Constant Field Values

DTIndex

public static final int DTIndex
See Also:
Constant Field Values

data

double[][][] data
The derivative data. [x][y][dx/dy/dt] The last dimension describes the derivative vector. Thus to get the t-derivative at the position [10,10]: data[10][10][2] or better: data[10][10][DTIndex]

Constructor Detail

DerivativeImage

public DerivativeImage(int width,
                       int height,
                       int framenum)

DerivativeImage

public DerivativeImage(int width,
                       int height)

DerivativeImage

public DerivativeImage(int x,
                       int y,
                       int width,
                       int height,
                       int framenum,
                       boolean initWholeData)

DerivativeImage

public DerivativeImage(int x,
                       int y,
                       int width,
                       int height)
Method Detail

getData

public double[][][] getData()
Returns:
the data

getAngle

public final double getAngle(int x,
                             int y)
returns the angle in the 2d x/y plane Range: 0 to 2*PI


get2DNorm

public double get2DNorm(int x,
                        int y)

getSquared2DNorm

public final double getSquared2DNorm(int x,
                                     int y)