Package gov.nih.mipav.model.algorithms
Class AlgorithmNetworkSnake.ContractingSnakeNode
java.lang.Object
gov.nih.mipav.model.algorithms.AlgorithmNetworkSnake.ContractingSnakeNode
- All Implemented Interfaces:
Comparable
- Enclosing class:
AlgorithmNetworkSnake
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate intclamp(int val, int lowerBound, int upperBound) intprotected byte[][]findThresholdedRegion(int x, int y, byte[] imageBuffer, int bufferWidth, int bufferHeight, int radius, boolean thresholding, int[] offsetX, int[] offsetY) intgetX()intgetY()booleaniterate(float alpha, float beta, float gamma, float d, byte[] imageBuffer, int bufferWidth, int bufferHeight, int m, boolean imaging) voidsetNeighbourLink(ArrayList<Boolean> neighbourLink) voidsetNeighbours(ArrayList neighbours) voidsetX(int x) voidsetY(int y)
-
Field Details
-
x
protected int x -
y
protected int y -
neighbours
-
neighbourLink
-
-
Constructor Details
-
ContractingSnakeNode
public ContractingSnakeNode()
-
-
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
-
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
- Specified by:
compareToin interfaceComparable
-
clamp
private int clamp(int val, int lowerBound, int upperBound)
-