Class AlgorithmNetworkSnake.SnakeNode

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

    public class AlgorithmNetworkSnake.SnakeNode
    extends java.lang.Object
    implements java.lang.Comparable
    • Field Detail

      • x

        protected int x
      • y

        protected int y
      • neighbourLink

        private java.util.ArrayList<java.lang.Boolean> neighbourLink
    • Constructor Detail

      • SnakeNode

        public SnakeNode()
    • Method Detail

      • getX

        public int getX()
      • setX

        public void setX​(int x)
      • getY

        public int getY()
      • setY

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

        public void resetNeighbourLink​(boolean value)