edu.jhu.cs.cisst.algorithms.optimize.fmg.grid
Class FixedBoundaryGrid
java.lang.Object
edu.jhu.cs.cisst.algorithms.optimize.fmg.grid.Grid
edu.jhu.cs.cisst.algorithms.optimize.fmg.grid.BoundaryGrid
edu.jhu.cs.cisst.algorithms.optimize.fmg.grid.FixedBoundaryGrid
- All Implemented Interfaces:
- ConstBoundaryGrid, ConstGrid, java.lang.Cloneable
public final class FixedBoundaryGrid
- extends BoundaryGrid
An implementation of BoundaryGrid where all the boundary elements are set once at construction time to a
single, common value and remain fixed thereafter.
- Author:
- Gerald Loeffler (Gerald.Loeffler@univie.ac.at)
Fields inherited from class edu.jhu.cs.cisst.algorithms.optimize.fmg.grid.Grid |
g, level, sx, sy, sz |
Constructor Summary |
FixedBoundaryGrid(int sx,
int sy,
int sz,
int level,
double interiorValue,
double boundaryValue)
construct from size, initial value for all elements in the interior and initial value for all elements
at the boundary. |
Method Summary |
protected double |
getBoundary(int x,
int y,
int z)
implements method from Grid. |
Grid |
newInstance(int sx,
int sy,
int sz,
int level,
double value)
implements method from ConstGrid. |
Methods inherited from class edu.jhu.cs.cisst.algorithms.optimize.fmg.grid.Grid |
add, add, clone, get, getCols, getLevel, getRows, getSlices, isBoundary, isInterior, set, setLevel |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface edu.jhu.cs.cisst.algorithms.optimize.fmg.grid.ConstGrid |
add, clone, get, getCols, getLevel, getRows, getSlices, isBoundary, isInterior, set, setLevel |
FixedBoundaryGrid
public FixedBoundaryGrid(int sx,
int sy,
int sz,
int level,
double interiorValue,
double boundaryValue)
- construct from size, initial value for all elements in the interior and initial value for all elements
at the boundary.
- Parameters:
sx
- the dimension in Xsy
- the dimension in Ysz
- the dimension in Zlevel
- the resolution levelinteriorValue
- the value to which all interior grid elements will be setboundaryValue
- the value to which all boundary grid elements will be set
newInstance
public Grid newInstance(int sx,
int sy,
int sz,
int level,
double value)
- implements method from ConstGrid.
- Parameters:
sx
- the dimension in Xsy
- the dimension in Ysz
- the dimension in Zlevel
- the resolution levelvalue
- the value
- Returns:
- the grid
- See Also:
ConstGrid.newInstance(int, int, int, int, double)
getBoundary
protected double getBoundary(int x,
int y,
int z)
- implements method from Grid.
the given grid element must lie at the boundary of the grid
- Specified by:
getBoundary
in class Grid
- Parameters:
x
- the xy
- the yz
- the z
- Returns:
- the boundary
- See Also:
Grid.getBoundary(int, int, int)