Class GreyscaleLuminosityConverter
- java.lang.Object
-
- science.aist.imaging.core.imageprocessing.conversion.greyscale.GreyscaleLuminosityConverter
-
- All Implemented Interfaces:
ColorToGreyScaleConverter
public class GreyscaleLuminosityConverter extends Object implements ColorToGreyScaleConverter
Calculates Greycsale using Luminosity
- Since:
- 1.0
- Author:
- Andreas Pointner
-
-
Constructor Summary
Constructors Constructor Description GreyscaleLuminosityConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doubletoGreyscale(double r, double g, double b)Converts a color pixel into a greyscale pixel
-
-
-
Method Detail
-
toGreyscale
public double toGreyscale(double r, double g, double b)Description copied from interface:ColorToGreyScaleConverterConverts a color pixel into a greyscale pixel- Specified by:
toGreyscalein interfaceColorToGreyScaleConverter- 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]
-
-