|
|||||||||
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.GeodesicActiveContour2D
public class GeodesicActiveContour2D
The Class GeodesicActiveContour2D segments an image using the sparse matrix method. Regions where the level set positive are outside the segmented region, and regions where the level set is negative are inside the segmented region.
Field Summary | |
---|---|
protected java.util.LinkedList<GridPoint2D> |
activePoints
The active points. |
protected int |
cols
The columns. |
protected double |
diceThreshold
The dice threshold. |
protected float[][] |
distField
The distance field. |
protected ImageDataFloat |
distFieldImage
The distance field image. |
protected java.util.LinkedList<ActiveContourForce2D> |
forces
The forces. |
protected GridPoint2D[][] |
gridPoints
The grid points. |
protected ImageData |
image
The reference image. |
protected int |
innerIterations
The inner iterations. |
protected int |
insideCount
The inside point count. |
protected java.util.LinkedList<GridPoint2D>[] |
insidePoints
The inside points. |
protected int |
maxLayers
The maximum number of layers. |
protected double |
maxSpeed
The max speed. |
protected int |
negToPosCount
The negative to positive transition count. |
protected static int[] |
neighborsX
The 6-connected neighbors x. |
protected static int[] |
neighborsY
The 6-connected neighbors y. |
protected int |
outerIterations
The outer iterations. |
protected java.util.LinkedList<GridPoint2D>[] |
outsidePoints
The outside points. |
protected int |
posToNegCount
The positive to negative transition count. |
protected int |
rows
The rows. |
Fields inherited from class edu.jhu.ece.iacl.jist.pipeline.AbstractCalculation |
---|
monitor |
Constructor Summary | |
---|---|
GeodesicActiveContour2D(ImageData referenceImage)
Instantiates a new geodesic active contour. |
Method Summary | |
---|---|
void |
add(ActiveContourForce2D force)
Adds the force. |
java.util.LinkedList<ActiveContourForce2D> |
getForces()
Gets the forces. |
ImageDataFloat |
getLevelSet()
Gets the level set. |
static java.lang.String |
getVersion()
Gets the version. |
protected void |
init(ImageData referenceImage)
Initializes the solver. |
protected void |
initNarrowBand(ImageDataFloat initialLevelSet)
Initializes the narrow band. |
void |
setDiceThreshold(double diceThreshold)
Sets the dice threshold. |
void |
setInnerIterations(int innerIterations)
Sets the inner iterations. |
void |
setMaxLayers(int maxLayers)
Sets the maximum number of layers. |
void |
setOuterIterations(int outerIterations)
Sets the outer iterations. |
ImageDataFloat |
solve(ImageDataFloat initialLevelset)
Solve. |
ImageDataFloat |
solveVerbose(ImageDataFloat initialLevelSet)
Solve and generate verbose output. |
protected void |
updateNarrowBand()
Update narrow band. |
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 int maxLayers
protected java.util.LinkedList<GridPoint2D>[] insidePoints
protected java.util.LinkedList<GridPoint2D>[] outsidePoints
protected java.util.LinkedList<GridPoint2D> activePoints
protected ImageData image
protected GridPoint2D[][] gridPoints
protected float[][] distField
protected ImageDataFloat distFieldImage
protected int rows
protected int cols
protected int insideCount
protected double diceThreshold
protected double maxSpeed
protected int innerIterations
protected int outerIterations
protected int posToNegCount
protected int negToPosCount
protected static int[] neighborsX
protected static int[] neighborsY
protected java.util.LinkedList<ActiveContourForce2D> forces
Constructor Detail |
---|
public GeodesicActiveContour2D(ImageData referenceImage)
referenceImage
- the reference imageMethod Detail |
---|
public static java.lang.String getVersion()
public void setDiceThreshold(double diceThreshold)
diceThreshold
- the new dice thresholdpublic void setMaxLayers(int maxLayers)
maxLayers
- the new max layerspublic void setInnerIterations(int innerIterations)
innerIterations
- the new inner iterationspublic void setOuterIterations(int outerIterations)
outerIterations
- the new outer iterationspublic ImageDataFloat getLevelSet()
public void add(ActiveContourForce2D force)
force
- the forcepublic java.util.LinkedList<ActiveContourForce2D> getForces()
protected void init(ImageData referenceImage)
referenceImage
- the reference imagepublic ImageDataFloat solve(ImageDataFloat initialLevelset)
initialLevelset
- the initial level set
public ImageDataFloat solveVerbose(ImageDataFloat initialLevelSet)
initialLevelSet
- the initial level set
protected void updateNarrowBand()
protected void initNarrowBand(ImageDataFloat initialLevelSet)
initialLevelSet
- the initial level set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |