Class AbstractFitnessFunction

    • Field Detail

      • isLowerErrorValueBetter

        protected boolean isLowerErrorValueBetter
    • Constructor Detail

      • AbstractFitnessFunction

        public AbstractFitnessFunction()
    • Method Detail

      • applyFitness

        protected abstract double applyFitness​(ImageWrapper<?> imageWrapper,
                                               ImageWrapper<?> imageWrapper2,
                                               int startX,
                                               int startY,
                                               int endX,
                                               int endY,
                                               int channels)
        abstract method for applying the actual fitness implementation
        Parameters:
        imageWrapper - image1 to compare
        imageWrapper2 - image2 to compare
        startX - start x position of the region of interest
        startY - start y position of the region of interest
        endX - end x position of the region of interest
        endY - end y position of the region of interest
        channels - number of channels
        Returns:
        fitnessvalue
      • getBestPossibleError

        public abstract double getBestPossibleError()
        Returns:
        the best possible fitness value