|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.jhu.cs.cisst.algorithms.optimize.fmg.interpolator.InterpolatorByStencil
public class InterpolatorByStencil
An interpolator that operates according to an interpolation stencil.
A stencil is a means of defining the relationship of a grid element and its 26 nearest neighbors. In this case the interpolation stencil defines how to distribute the values of a coarse grid to the values of a fine grid during the process of interpolation.
Stencil
Field Summary | |
---|---|
static Stencil |
BILINEAR
|
protected int[] |
coarseSize
The coarse size. |
protected int[] |
fineSize
The fine size. |
protected Stencil |
s
The stencil. |
protected IntRange1D |
totalRange
The total range. |
static Stencil |
TRILINEAR
the stencil that characterises trilinear interpolation where every element of the fine grid that does not coincide with an element of the coarse grid is calculated by linear interpolation between its nearest neighbors. |
Constructor Summary | |
---|---|
InterpolatorByStencil(Stencil stencil)
construct from interpolation stencil. |
Method Summary | |
---|---|
BoundaryGrid |
interpolate(ConstBoundaryGrid grid,
SolverResolutionLevels levels)
implements method from Interpolator. |
void |
interpolateProper(BoundaryGrid fine,
ConstBoundaryGrid coarse,
int myNum,
int totalNum)
implements the parallel part of interpolate(). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Stencil TRILINEAR
public static final Stencil BILINEAR
protected Stencil s
protected int[] coarseSize
protected int[] fineSize
protected IntRange1D totalRange
Constructor Detail |
---|
public InterpolatorByStencil(Stencil stencil)
stencil
- the stencil that defines interpolationMethod Detail |
---|
public BoundaryGrid interpolate(ConstBoundaryGrid grid, SolverResolutionLevels levels)
interpolate
in interface Interpolator
grid
- the gridlevels
- the levels
Interpolator.interpolate(edu.jhu.cs.cisst.algorithms.optimize.fmg.grid.ConstBoundaryGrid, edu.jhu.cs.cisst.algorithms.optimize.fmg.SolverResolutionLevels)
public void interpolateProper(BoundaryGrid fine, ConstBoundaryGrid coarse, int myNum, int totalNum)
fine
- the finecoarse
- the coarsemyNum
- the current indextotalNum
- the number of parallel jobs
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |