Interface ColorToGreyScaleConverter
-
- All Known Implementing Classes:
GreyscaleAverageConverter
,GreyscaleLightnessConverter
,GreyscaleLuminosityConverter
public interface ColorToGreyScaleConverter
Interface to convert a color pixel into a greyscale one
- Since:
- 1.0
- Author:
- Andreas Pointner
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
toGreyscale(double r, double g, double b)
Converts a color pixel into a greyscale pixel
-
-
-
Method Detail
-
toGreyscale
double toGreyscale(double r, double g, double b)
Converts a color pixel into a greyscale pixel- 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]
-
-