Class CalculateForegroundColorRatioFunction<T>

  • All Implemented Interfaces:
    ToDoubleFunction<ImageWrapper<T>>

    public class CalculateForegroundColorRatioFunction<T>
    extends Object
    implements ToDoubleFunction<ImageWrapper<T>>

    Calculates the ratio of a specific foreground color. Therefore it counts how many pixels equals foregroundColor. Then it returns count(pixels) / (width * height)

    Since:
    1.0
    Author:
    Andreas Pointner
    • Constructor Detail

      • CalculateForegroundColorRatioFunction

        public CalculateForegroundColorRatioFunction()