Class GreyscaleLightnessConverter

    • Constructor Detail

      • GreyscaleLightnessConverter

        public GreyscaleLightnessConverter()
    • Method Detail

      • toGreyscale

        public double toGreyscale​(double r,
                                  double g,
                                  double b)
        Description copied from interface: ColorToGreyScaleConverter
        Converts a color pixel into a greyscale pixel
        Specified by:
        toGreyscale in interface ColorToGreyScaleConverter
        Parameters:
        r - the red value in range [0,255]
        g - the green value in range [0, 255]
        b - the blue value in range [0, 255]
        Returns:
        the resulting greyscale value in range [0, 255]