motris.data
Class OFImage

java.lang.Object
  extended bymotris.data.MotrisImage
      extended bymotris.data.OFImage
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
OFImageWithClassification

public class OFImage
extends MotrisImage
implements java.lang.Cloneable

Optical Flow Image containing a 3-dimensional direction vector at each pixel

Author:
ottlik

Field Summary
private  double[][][] data
           
static int OFX
           
static int OFY
           
private static int VERSION
           
 
Fields inherited from class motris.data.MotrisImage
Clipping, COLOR, DERIVATION, frameNr, GRAY, OF, type
 
Constructor Summary
OFImage(int framenum, double[][][] _data)
           
OFImage(int sizex, int sizey, int framenum)
           
OFImage(int framenum, int x, int y, double[][][] _data)
           
OFImage(int x, int y, int width, int height)
           
OFImage(int x, int y, int width, int height, int framenum)
           
 
Method Summary
 java.lang.Object clone()
           
private static double[][][] createDataArray(double[] data, int width, int height)
           
private  double[] getDataArray()
           
 Double2Vector getOFAt(int x, int y)
           
 double[][][] getOFDataArray()
           
 double getXOFAt(int x, int y)
           
 double getYOFAt(int x, int y)
           
static OFImage load(java.lang.String filename)
           
 void putVector(int x, int y, Double2Vector vec)
           
 void save(java.lang.String filename)
           
 
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
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION

private static final int VERSION
See Also:
Constant Field Values

OFX

public static final int OFX
See Also:
Constant Field Values

OFY

public static final int OFY
See Also:
Constant Field Values

data

private double[][][] data
Constructor Detail

OFImage

public OFImage(int sizex,
               int sizey,
               int framenum)

OFImage

public OFImage(int framenum,
               double[][][] _data)

OFImage

public OFImage(int framenum,
               int x,
               int y,
               double[][][] _data)

OFImage

public OFImage(int x,
               int y,
               int width,
               int height,
               int framenum)

OFImage

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

clone

public java.lang.Object clone()

getOFDataArray

public double[][][] getOFDataArray()

getDataArray

private double[] getDataArray()

createDataArray

private static double[][][] createDataArray(double[] data,
                                            int width,
                                            int height)

getOFAt

public Double2Vector getOFAt(int x,
                             int y)

getXOFAt

public double getXOFAt(int x,
                       int y)

getYOFAt

public double getYOFAt(int x,
                       int y)

save

public void save(java.lang.String filename)

load

public static OFImage load(java.lang.String filename)

putVector

public void putVector(int x,
                      int y,
                      Double2Vector vec)