Class AbstractDistanceMetric

    • Constructor Detail

      • AbstractDistanceMetric

        public AbstractDistanceMetric()
    • Method Detail

      • create

        public double[][] create​(int masksize)
        Creates a distance metric mask with given masksize
        Parameters:
        masksize - masksize of the distance metric must be odd and >= 3 (because a distance metric of 1 is always 0)
        Returns:
        distance metric
      • calculateMaskValue

        protected abstract double calculateMaskValue​(int x,
                                                     int y)
        Method which calculates the mask value at the given position
        Parameters:
        x - x position
        y - y position
        Returns:
        mask value for the given position