Package gov.nih.mipav.model.algorithms
Class AlgorithmNetworkSnake.ContractingSnakeNode
- java.lang.Object
-
- gov.nih.mipav.model.algorithms.AlgorithmNetworkSnake.ContractingSnakeNode
-
- All Implemented Interfaces:
java.lang.Comparable
- Enclosing class:
- AlgorithmNetworkSnake
public class AlgorithmNetworkSnake.ContractingSnakeNode extends java.lang.Object implements java.lang.Comparable
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.ArrayList<java.lang.Boolean>
neighbourLink
protected java.util.ArrayList<AlgorithmNetworkSnake.ContractingSnakeNode>
neighbours
protected int
x
protected int
y
-
Constructor Summary
Constructors Constructor Description ContractingSnakeNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private int
clamp(int val, int lowerBound, int upperBound)
int
compareTo(java.lang.Object obj)
protected byte[][]
findThresholdedRegion(int x, int y, byte[] imageBuffer, int bufferWidth, int bufferHeight, int radius, boolean thresholding, int[] offsetX, int[] offsetY)
java.util.ArrayList<java.lang.Boolean>
getNeighbourLink()
java.util.ArrayList<AlgorithmNetworkSnake.ContractingSnakeNode>
getNeighbours()
int
getX()
int
getY()
boolean
iterate(float alpha, float beta, float gamma, float d, byte[] imageBuffer, int bufferWidth, int bufferHeight, int m, boolean imaging)
void
setNeighbourLink(java.util.ArrayList<java.lang.Boolean> neighbourLink)
void
setNeighbours(java.util.ArrayList neighbours)
void
setX(int x)
void
setY(int y)
-
-
-
Field Detail
-
x
protected int x
-
y
protected int y
-
neighbours
protected java.util.ArrayList<AlgorithmNetworkSnake.ContractingSnakeNode> 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.ContractingSnakeNode> getNeighbours()
-
setNeighbours
public void setNeighbours(java.util.ArrayList neighbours)
-
getNeighbourLink
public java.util.ArrayList<java.lang.Boolean> getNeighbourLink()
-
setNeighbourLink
public void setNeighbourLink(java.util.ArrayList<java.lang.Boolean> neighbourLink)
-
iterate
public boolean iterate(float alpha, float beta, float gamma, float d, byte[] imageBuffer, int bufferWidth, int bufferHeight, int m, boolean imaging)
-
findThresholdedRegion
protected byte[][] findThresholdedRegion(int x, int y, byte[] imageBuffer, int bufferWidth, int bufferHeight, int radius, boolean thresholding, int[] offsetX, int[] offsetY)
-
compareTo
public int compareTo(java.lang.Object obj)
- Specified by:
compareTo
in interfacejava.lang.Comparable
-
clamp
private int clamp(int val, int lowerBound, int upperBound)
-
-