Package gov.nih.mipav.model.algorithms
Class AlgorithmNetworkSnake.SnakeNode
java.lang.Object
gov.nih.mipav.model.algorithms.AlgorithmNetworkSnake.SnakeNode
- All Implemented Interfaces:
Comparable
- Enclosing class:
AlgorithmNetworkSnake
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ArrayList<AlgorithmNetworkSnake.SnakeNode> protected intprotected int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintprivate double[][]createDoGOperator(int radius, double sigma1, double K, double scale1, double scale2) private double[][]createGOperator(int radius, double sigma1) floatprotected intfindJunctionAppearanceWeight(int x, int y, byte[][] thresholdBuffer, int Rmax, int Rmin) protected byte[][]findThresholdedRegion(int x, int y, byte[] imageBuffer, int bufferWidth, int bufferHeight, int radius, boolean thresholding, int[] offsetX, int[] offsetY) findWall()findWall(AlgorithmNetworkSnake.SnakeNode destination) intgetX()intgetY()booleaniterate(float alpha, float beta, float gamma, float d, byte[] imageBuffer, int bufferWidth, int bufferHeight, int m) voidresetNeighbourLink(boolean value) voidsetNeighbourLink(ArrayList<Boolean> neighbourLink) voidsetNeighbours(ArrayList<AlgorithmNetworkSnake.SnakeNode> neighbours) voidsetX(int x) voidsetY(int y)
-
Field Details
-
x
protected int x -
y
protected int y -
neighbours
-
neighbourLink
-
-
Constructor Details
-
SnakeNode
public SnakeNode()
-
-
Method Details
-
getX
public int getX() -
setX
public void setX(int x) -
getY
public int getY() -
setY
public void setY(int y) -
getNeighbours
-
setNeighbours
-
getNeighbourLink
-
setNeighbourLink
-
compareTo
- Specified by:
compareToin interfaceComparable
-
findAverageDistance
public float findAverageDistance() -
iterate
public boolean iterate(float alpha, float beta, float gamma, float d, byte[] imageBuffer, int bufferWidth, int bufferHeight, int m) -
findJunctionAppearanceWeight
protected int findJunctionAppearanceWeight(int x, int y, byte[][] thresholdBuffer, int Rmax, int Rmin) -
createGOperator
private double[][] createGOperator(int radius, double sigma1) -
createDoGOperator
private double[][] createDoGOperator(int radius, double sigma1, double K, double scale1, double scale2) -
findThresholdedRegion
protected byte[][] findThresholdedRegion(int x, int y, byte[] imageBuffer, int bufferWidth, int bufferHeight, int radius, boolean thresholding, int[] offsetX, int[] offsetY) -
findWall
-
findJunctionNeighbours
-
findWall
public ArrayList<AlgorithmNetworkSnake.SnakeNode> findWall(AlgorithmNetworkSnake.SnakeNode destination) -
resetNeighbourLink
public void resetNeighbourLink(boolean value)
-