|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.jhu.ece.iacl.jist.pipeline.AbstractCalculation edu.jhu.cs.cisst.algorithms.segmentation.gac.GradientVectorFlow2D
public class GradientVectorFlow2D
The Class GradientVectorFlowField2D extends a gradient field using vector field diffusion.
Nested Class Summary | |
---|---|
static class |
GradientVectorFlow2D.Method
The Enum Method. |
Field Summary | |
---|---|
protected double |
coarsestLevelResolution
The coarsest level resolution. |
protected int |
cols
The cols. |
protected double |
diffusionWeight
The diffusion weight. |
protected int |
maxIterations
The max iterations. |
protected int |
multiGridCycles
The multi-grid cycles. |
protected int |
multiGridIterations
The multi-grid iterations. |
protected int |
multiGridResolutions
The multi-grid resolutions. |
protected int |
multiGridThreads
The multigrid threads. |
protected boolean |
normalize
The normalize. |
protected int |
rows
The rows. |
protected int |
smoothIterations
The smooth iterations. |
protected double |
stdDeviation
The std. |
Fields inherited from class edu.jhu.ece.iacl.jist.pipeline.AbstractCalculation |
---|
monitor |
Constructor Summary | |
---|---|
GradientVectorFlow2D()
Instantiates a new gradient vector flow field2 d. |
|
GradientVectorFlow2D(double stdDeviation,
double diffusionWeight,
boolean normalize)
Instantiates a new gradient vector flow field2 d. |
Method Summary | |
---|---|
double |
getDiffusionWeight()
Gets the diffusion weight. |
protected int |
getIndex(int i,
int j)
Gets the index. |
protected int |
getIndex(int i,
int j,
int k,
int rows,
int cols,
int slices)
Gets the index. |
int |
getMaxIterations()
Gets the max iterations. |
double |
getStandardDeviation()
Gets the standard deviation. |
static java.lang.String |
getVersion()
Gets the version. |
void |
monitor(double err,
int iter)
|
void |
monitor(double err,
Vector res,
int iter)
|
void |
setCoarsestLevelResolution(double coarsestLevelResolution)
Sets the coarsest level resolution. |
void |
setDiffusionWeight(double diffusionWeight)
Sets the diffusion weight. |
void |
setMaxIterations(int maxIterations)
Sets the max iterations. |
void |
setMultiGridCycles(int numMultigridCycles)
Sets the multigrid cycles. |
void |
setMultiGridIterations(int numMultiGridIterations)
Sets the multi grid iterations. |
void |
setMultiGridResolutions(int numMultiGridLevels)
Sets the multi grid resolutions. |
void |
setMultiGridSmoothIterations(int numMultiGridSmoothIterations)
Sets the multi grid smooth iterations. |
void |
setMultiGridThreads(int numMultiGridThreads)
Sets the multi grid threads. |
void |
setNormalize(boolean normalize)
Sets the normalize. |
void |
setStandardDeviation(double stdDeviation)
Sets the standard deviation. |
ImageDataFloat |
solve(ImageDataFloat image,
GradientVectorFlow2D.Method method)
Solve using either multigrid or a sparse matrix method. |
protected ImageDataFloat |
solveLinear(ImageDataFloat image,
GradientVectorFlow2D.Method method)
Solve using a sparse matrix method. |
protected ImageDataFloat |
solveMultiGrid(ImageDataFloat image)
Solve using multi-grid. |
Methods inherited from class edu.jhu.ece.iacl.jist.pipeline.AbstractCalculation |
---|
add, addTotalUnits, decrementCompletedUnits, decrementCompletedUnits, getCompletedUnits, getCurrentLabel, getCurrentProgress, getLabel, getPerformance, getProgress, getTotalUnits, incrementCompletedUnits, incrementCompletedUnits, isCompleted, markCompleted, reset, setCompletedUnits, setCompletedUnits, setLabel, setMonitor, setTotalUnits |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected double diffusionWeight
protected int rows
protected int cols
protected double stdDeviation
protected int multiGridThreads
protected int smoothIterations
protected int multiGridCycles
protected int multiGridIterations
protected int multiGridResolutions
protected double coarsestLevelResolution
protected boolean normalize
protected int maxIterations
Constructor Detail |
---|
public GradientVectorFlow2D()
public GradientVectorFlow2D(double stdDeviation, double diffusionWeight, boolean normalize)
stdDeviation
- the std deviationdiffusionWeight
- the diffusion weightnormalize
- the normalizeMethod Detail |
---|
public static java.lang.String getVersion()
public double getDiffusionWeight()
protected int getIndex(int i, int j)
i
- the ij
- the j
protected int getIndex(int i, int j, int k, int rows, int cols, int slices)
i
- the ij
- the jk
- the krows
- the rowscols
- the colsslices
- the slices
public int getMaxIterations()
public double getStandardDeviation()
public void monitor(double err, int iter)
no.uib.cipr.matrix.sparse.IterationReporter#monitor(double, int)
public void monitor(double err, Vector res, int iter)
no.uib.cipr.matrix.sparse.IterationReporter#monitor(double,
no.uib.cipr.matrix.Vector, int)
public void setCoarsestLevelResolution(double coarsestLevelResolution)
coarsestLevelResolution
- the new coarsest level resolutionpublic void setDiffusionWeight(double diffusionWeight)
diffusionWeight
- the new diffusion weightpublic void setMaxIterations(int maxIterations)
maxIterations
- the new max iterationspublic void setNormalize(boolean normalize)
normalize
- the new normalizepublic void setMultiGridCycles(int numMultigridCycles)
numMultigridCycles
- the new multigrid cyclespublic void setMultiGridIterations(int numMultiGridIterations)
numMultiGridIterations
- the new multi grid iterationspublic void setMultiGridResolutions(int numMultiGridLevels)
numMultiGridLevels
- the new multi grid resolutionspublic void setMultiGridSmoothIterations(int numMultiGridSmoothIterations)
numMultiGridSmoothIterations
- the new multi grid smooth iterationspublic void setMultiGridThreads(int numMultiGridThreads)
numMultiGridThreads
- the new multi grid threadspublic void setStandardDeviation(double stdDeviation)
stdDeviation
- the new standard deviationpublic ImageDataFloat solve(ImageDataFloat image, GradientVectorFlow2D.Method method)
image
- the image
protected ImageDataFloat solveLinear(ImageDataFloat image, GradientVectorFlow2D.Method method)
image
- the image
protected ImageDataFloat solveMultiGrid(ImageDataFloat image)
image
- the image
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |