ini.trakem2.vector
Interface VectorString

All Known Implementing Classes:
VectorString2D, VectorString3D

public interface VectorString


Field Summary
static int X_AXIS
           
static int Y_AXIS
           
static int Z_AXIS
           
 
Method Summary
 double distance(int i, VectorString vs, int j)
           
 double getDelta()
           
 double getDiffVectorLength(int i, int j, VectorString vs)
           
 int getDimensions()
           
 double getPoint(int dim, int i)
          Get the value at index i for dimension dim; dimensions start at 0 and go up to n-dimensions -1, for example for VectorString3D, 0=X, 1=Y, 2=Z; to get y[32] call getPoint(1, 32);
 double[] getPoints(int dim)
          Get the array at dimension dim which ranges from 0 to n-dimensions -1; 0=X, 1=Y, 2=Z, et cetera depending on how many dimensions this VectorString supports.
 double getVector(int dim, int i)
           
 double[] getVectors(int dim)
           
 boolean isClosed()
           
 int length()
           
 void reorder(int min_j)
           
 void resample(double delta)
           
 void resample(double delta, boolean with_source)
           
 void reverse()
           
 VectorString subVectorString(int first, int last)
           
 

Field Detail

X_AXIS

static final int X_AXIS
See Also:
Constant Field Values

Y_AXIS

static final int Y_AXIS
See Also:
Constant Field Values

Z_AXIS

static final int Z_AXIS
See Also:
Constant Field Values
Method Detail

resample

void resample(double delta,
              boolean with_source)

resample

void resample(double delta)

reorder

void reorder(int min_j)

length

int length()

getPoints

double[] getPoints(int dim)
Get the array at dimension dim which ranges from 0 to n-dimensions -1; 0=X, 1=Y, 2=Z, et cetera depending on how many dimensions this VectorString supports.


getVectors

double[] getVectors(int dim)

getPoint

double getPoint(int dim,
                int i)
Get the value at index i for dimension dim; dimensions start at 0 and go up to n-dimensions -1, for example for VectorString3D, 0=X, 1=Y, 2=Z; to get y[32] call getPoint(1, 32);


getVector

double getVector(int dim,
                 int i)

isClosed

boolean isClosed()

getDiffVectorLength

double getDiffVectorLength(int i,
                           int j,
                           VectorString vs)

distance

double distance(int i,
                VectorString vs,
                int j)

subVectorString

VectorString subVectorString(int first,
                             int last)
                             throws java.lang.Exception
Throws:
java.lang.Exception

reverse

void reverse()

getDimensions

int getDimensions()

getDelta

double getDelta()