Class AlgorithmNetworkSnake.ContractingSnakeNode

  • All Implemented Interfaces:
    java.lang.Comparable
    Enclosing class:
    AlgorithmNetworkSnake

    public class AlgorithmNetworkSnake.ContractingSnakeNode
    extends java.lang.Object
    implements java.lang.Comparable
    • Constructor Detail

      • ContractingSnakeNode

        public ContractingSnakeNode()
    • Method Detail

      • getX

        public int getX()
      • setX

        public void setX​(int x)
      • getY

        public int getY()
      • setY

        public void setY​(int y)
      • 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 interface java.lang.Comparable
      • clamp

        private int clamp​(int val,
                          int lowerBound,
                          int upperBound)