Package gov.nih.mipav.model.algorithms
Class AlgorithmNetworkSnake.SnakeNode
- java.lang.Object
-
- gov.nih.mipav.model.algorithms.AlgorithmNetworkSnake.SnakeNode
-
- All Implemented Interfaces:
java.lang.Comparable
- Enclosing class:
- AlgorithmNetworkSnake
public class AlgorithmNetworkSnake.SnakeNode extends java.lang.Object implements java.lang.Comparable
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.ArrayList<java.lang.Boolean>
neighbourLink
private java.util.ArrayList<AlgorithmNetworkSnake.SnakeNode>
neighbours
protected int
x
protected int
y
-
Constructor Summary
Constructors Constructor Description SnakeNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(java.lang.Object obj)
private double[][]
createDoGOperator(int radius, double sigma1, double K, double scale1, double scale2)
private double[][]
createGOperator(int radius, double sigma1)
float
findAverageDistance()
protected int
findJunctionAppearanceWeight(int x, int y, byte[][] thresholdBuffer, int Rmax, int Rmin)
java.util.ArrayList<AlgorithmNetworkSnake.SnakeNode>
findJunctionNeighbours()
protected byte[][]
findThresholdedRegion(int x, int y, byte[] imageBuffer, int bufferWidth, int bufferHeight, int radius, boolean thresholding, int[] offsetX, int[] offsetY)
java.util.ArrayList<AlgorithmNetworkSnake.SnakeNode>
findWall()
java.util.ArrayList<AlgorithmNetworkSnake.SnakeNode>
findWall(AlgorithmNetworkSnake.SnakeNode destination)
java.util.ArrayList<java.lang.Boolean>
getNeighbourLink()
java.util.ArrayList<AlgorithmNetworkSnake.SnakeNode>
getNeighbours()
int
getX()
int
getY()
boolean
iterate(float alpha, float beta, float gamma, float d, byte[] imageBuffer, int bufferWidth, int bufferHeight, int m)
void
resetNeighbourLink(boolean value)
void
setNeighbourLink(java.util.ArrayList<java.lang.Boolean> neighbourLink)
void
setNeighbours(java.util.ArrayList<AlgorithmNetworkSnake.SnakeNode> neighbours)
void
setX(int x)
void
setY(int y)
-
-
-
Field Detail
-
x
protected int x
-
y
protected int y
-
neighbours
private java.util.ArrayList<AlgorithmNetworkSnake.SnakeNode> neighbours
-
neighbourLink
private java.util.ArrayList<java.lang.Boolean> neighbourLink
-
-
Method Detail
-
getX
public int getX()
-
setX
public void setX(int x)
-
getY
public int getY()
-
setY
public void setY(int y)
-
getNeighbours
public java.util.ArrayList<AlgorithmNetworkSnake.SnakeNode> getNeighbours()
-
setNeighbours
public void setNeighbours(java.util.ArrayList<AlgorithmNetworkSnake.SnakeNode> neighbours)
-
getNeighbourLink
public java.util.ArrayList<java.lang.Boolean> getNeighbourLink()
-
setNeighbourLink
public void setNeighbourLink(java.util.ArrayList<java.lang.Boolean> neighbourLink)
-
compareTo
public int compareTo(java.lang.Object obj)
- Specified by:
compareTo
in interfacejava.lang.Comparable
-
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
public java.util.ArrayList<AlgorithmNetworkSnake.SnakeNode> findWall()
-
findJunctionNeighbours
public java.util.ArrayList<AlgorithmNetworkSnake.SnakeNode> findJunctionNeighbours()
-
findWall
public java.util.ArrayList<AlgorithmNetworkSnake.SnakeNode> findWall(AlgorithmNetworkSnake.SnakeNode destination)
-
resetNeighbourLink
public void resetNeighbourLink(boolean value)
-
-