Package gov.nih.mipav.model.algorithms
Class AlgorithmNetworkSnake.NetworkSnake
- java.lang.Object
-
- gov.nih.mipav.model.algorithms.AlgorithmNetworkSnake.NetworkSnake
-
- All Implemented Interfaces:
AlgorithmNetworkSnake.IMetadataProvider
- Enclosing class:
- AlgorithmNetworkSnake
public class AlgorithmNetworkSnake.NetworkSnake extends java.lang.Object implements AlgorithmNetworkSnake.IMetadataProvider
-
-
Field Summary
Fields Modifier and Type Field Description private float
alpha
private float
beta
private AlgorithmNetworkSnake.Metadata
data
private float
gamma
private boolean
isInitialised
private java.util.ArrayList<AlgorithmNetworkSnake.SnakeNode>
nodes
private int
spacing
-
Constructor Summary
Constructors Constructor Description NetworkSnake()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.ArrayList<java.awt.Point>
createAndRedistributePoints(java.util.ArrayList<java.awt.Point> originalPoints, int recordRate)
float
getAlpha()
float
getBeta()
AlgorithmNetworkSnake.Metadata
getData()
private float
getGamma()
boolean
getIsInitialised()
java.util.ArrayList<AlgorithmNetworkSnake.SnakeNode>
getNodes()
void
Initialise(AlgorithmNetworkSnake.SnakeInitialiser snakeInitialiser, int spacing)
void
InitialiseData()
void
iterate(byte[] imageBuffer, int bufferWidth, int bufferHeight, int m, int timeout)
void
setAlpha(float alpha)
void
setBeta(float beta)
void
setData(AlgorithmNetworkSnake.Metadata data)
void
setGamma(float gamma)
void
setNodes(java.util.ArrayList<AlgorithmNetworkSnake.SnakeNode> nodes)
-
-
-
Field Detail
-
data
private AlgorithmNetworkSnake.Metadata data
-
isInitialised
private boolean isInitialised
-
nodes
private java.util.ArrayList<AlgorithmNetworkSnake.SnakeNode> nodes
-
alpha
private float alpha
-
beta
private float beta
-
gamma
private float gamma
-
spacing
private int spacing
-
-
Method Detail
-
InitialiseData
public void InitialiseData()
- Specified by:
InitialiseData
in interfaceAlgorithmNetworkSnake.IMetadataProvider
-
getData
public AlgorithmNetworkSnake.Metadata getData()
- Specified by:
getData
in interfaceAlgorithmNetworkSnake.IMetadataProvider
-
setData
public void setData(AlgorithmNetworkSnake.Metadata data)
- Specified by:
setData
in interfaceAlgorithmNetworkSnake.IMetadataProvider
-
getIsInitialised
public boolean getIsInitialised()
-
getNodes
public java.util.ArrayList<AlgorithmNetworkSnake.SnakeNode> getNodes()
-
setNodes
public void setNodes(java.util.ArrayList<AlgorithmNetworkSnake.SnakeNode> nodes)
-
getAlpha
public float getAlpha()
-
setAlpha
public void setAlpha(float alpha)
-
getBeta
public float getBeta()
-
setBeta
public void setBeta(float beta)
-
getGamma
private float getGamma()
-
setGamma
public void setGamma(float gamma)
-
Initialise
public void Initialise(AlgorithmNetworkSnake.SnakeInitialiser snakeInitialiser, int spacing)
-
iterate
public void iterate(byte[] imageBuffer, int bufferWidth, int bufferHeight, int m, int timeout)
-
createAndRedistributePoints
public java.util.ArrayList<java.awt.Point> createAndRedistributePoints(java.util.ArrayList<java.awt.Point> originalPoints, int recordRate)
-
-