edu.stanford.rsl.konrad.data
Class Grid

java.lang.Object
  extended by edu.stanford.rsl.konrad.data.Grid
Direct Known Subclasses:
Grid1D, Grid2D, Grid3D

public abstract class Grid
extends java.lang.Object

The Grid*D classes are to be used as wrappers for already allocated float buffers. A Grid then defines the properties of such a buffer (like the spacing and origin of the grid, how much of it is a boundary, ...) and provides some methods like interpolation and boundary filling. The Grids also keep a reference to their buffer. Note that a Grid's buffer, as well as its number of boundary pixels are fixed after the creation of this object. Therefore, whenever any size parameter should change, a new Grid has to be instantiated.

Author:
Andreas Keil

Constructor Summary
Grid()
           
 
Method Summary
 int[] getBoundary()
           
 double[] getOrigin()
           
 int[] getSize()
           
 double[] getSpacing()
           
 void setOrigin(double... origin)
           
 void setSpacing(double... spacing)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Grid

public Grid()
Method Detail

getSize

public int[] getSize()
Returns:
The array's size (excluding borders).

getBoundary

public int[] getBoundary()
Returns:
The array boundaries' sizes.

getSpacing

public double[] getSpacing()

setSpacing

public void setSpacing(double... spacing)

getOrigin

public double[] getOrigin()

setOrigin

public void setOrigin(double... origin)