|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.jhu.cs.cisst.algorithms.optimize.fmg.pde.CachingPDE
edu.jhu.cs.cisst.algorithms.segmentation.gac.VectorFieldDiffusion2D
public class VectorFieldDiffusion2D
The Class VectorFieldDiffusion2D describes the vector field diffusion PDE for use by the multi-grid solver.
| Nested Class Summary | |
|---|---|
static class |
VectorFieldDiffusion2D.Dimension
The Enum Dimension. |
| Field Summary | |
|---|---|
protected double |
diffusionWeight
The diffusion weight. |
protected VectorFieldDiffusion2D.Dimension |
dim
The dimension. |
protected float[][][][] |
gradientPyramid
The gradient pyramid. |
protected SolverResolutionLevels |
levels
The resolution levels. |
protected int |
maxIterations
The maximum iterations. |
| Constructor Summary | |
|---|---|
VectorFieldDiffusion2D(double diffusionWeight,
VectorFieldDiffusion2D.Dimension dim,
float[][][][] gradientPyramid,
SolverResolutionLevels levels,
int maxIterations)
Instantiates a new PDE for vector field diffusion. |
|
| Method Summary | |
|---|---|
protected java.lang.Object |
actuallySampleMatrix(int sx,
int sy,
int sz,
int level)
implements method from CachingPDE. |
protected NoBoundaryGrid |
actuallySampleRHS(int sx,
int sy,
int sz,
int level)
implements method from CachingPDE. |
double |
evaluate(ConstBoundaryGrid u,
ConstNoBoundaryGrid f,
int x,
int y,
int z)
implements method from PDE. |
double |
evaluateLHS(ConstBoundaryGrid u,
ConstNoBoundaryGrid f,
int x,
int y,
int z)
implements method from PDE. |
double |
getGridSpacing(int level)
implements method from PDE. |
protected static int |
getIndex(int i,
int j,
int cols)
Gets the index. |
void |
monitor(double error,
int iter)
|
void |
monitor(double error,
Vector res,
int iter)
|
BoundaryGrid |
solve(ConstBoundaryGrid u,
ConstNoBoundaryGrid f)
Solve PDE directly at coarsest grid level. |
| Methods inherited from class edu.jhu.cs.cisst.algorithms.optimize.fmg.pde.CachingPDE |
|---|
sampleMatrix, sampleRHS |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected float[][][][] gradientPyramid
protected VectorFieldDiffusion2D.Dimension dim
protected SolverResolutionLevels levels
protected double diffusionWeight
protected int maxIterations
| Constructor Detail |
|---|
public VectorFieldDiffusion2D(double diffusionWeight,
VectorFieldDiffusion2D.Dimension dim,
float[][][][] gradientPyramid,
SolverResolutionLevels levels,
int maxIterations)
diffusionWeight - the diffusion weightdim - the dimensiongradientPyramid - the gradient pyramidlevels - the resolution levelsmaxIterations - the max iterations| Method Detail |
|---|
public double getGridSpacing(int level)
level - the level
PDE.getGridSpacing(int)
public double evaluateLHS(ConstBoundaryGrid u,
ConstNoBoundaryGrid f,
int x,
int y,
int z)
u - the uf - the fx - the xy - the yz - the z
PDE.evaluateLHS(edu.jhu.cs.cisst.algorithms.optimize.fmg.grid.ConstBoundaryGrid, edu.jhu.cs.cisst.algorithms.optimize.fmg.grid.ConstNoBoundaryGrid, int, int, int)
protected static final int getIndex(int i,
int j,
int cols)
i - the ij - the jcols - the cols
public BoundaryGrid solve(ConstBoundaryGrid u,
ConstNoBoundaryGrid f)
PDE
u - the uf - the f
edu.jhu.cs.cisst.algorithms.optimize.fmg.pde.PDE#solve(edu.jhu.cs.cisst
.algorithms.optimize.fmg.grid.ConstBoundaryGrid,
edu.jhu.cs.cisst.algorithms.optimize.fmg.grid.ConstNoBoundaryGrid)
public double evaluate(ConstBoundaryGrid u,
ConstNoBoundaryGrid f,
int x,
int y,
int z)
u - the uf - the fx - the xy - the yz - the z
PDE.evaluate(edu.jhu.cs.cisst.algorithms.optimize.fmg.grid.ConstBoundaryGrid, edu.jhu.cs.cisst.algorithms.optimize.fmg.grid.ConstNoBoundaryGrid, int, int, int)
protected NoBoundaryGrid actuallySampleRHS(int sx,
int sy,
int sz,
int level)
actuallySampleRHS in class CachingPDEsx - the sxsy - the sysz - the szlevel - the level
CachingPDE.actuallySampleRHS(int, int, int, int)
protected java.lang.Object actuallySampleMatrix(int sx,
int sy,
int sz,
int level)
actuallySampleMatrix in class CachingPDEsx - the sxsy - the sysz - the szlevel - the level
CachingPDE.sampleMatrix(int, int, int, int)
public void monitor(double error,
int iter)
no.uib.cipr.matrix.sparse.IterationReporter#monitor(double, int)
public void monitor(double error,
Vector res,
int iter)
no.uib.cipr.matrix.sparse.IterationReporter#monitor(double,
no.uib.cipr.matrix.Vector, int)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||