Documentation ¶
Overview ¶
Package greyscale implements various functions to convert an image to greyscale.
Index ¶
- Variables
- func AverageC() utils.Composable
- func BlueC() utils.Composable
- func GreenC() utils.Composable
- func GreyscaleC() utils.Composable
- func LightnessC() utils.Composable
- func LuminosityC() utils.Composable
- func MaximalC() utils.Composable
- func MinimalC() utils.Composable
- func RedC() utils.Composable
Constants ¶
This section is empty.
Variables ¶
var Average = utils.Map(AverageC)
Average creates a greyscale version of the Image using the average method; it simply averages the RGB values.
var Blue = utils.Map(BlueC)
Blue creates a greyscale version of the Image using the values of the blue channel.
var Green = utils.Map(GreenC)
Green creates a greyscale version of the Image using the values of the green channel.
var Greyscale = utils.Map(GreyscaleC)
Greyscale creates a greyscale version of the Image by using a mixture of the colour channels. It accounts for human sensitivity to green above other colours by weighting the amount mixed in.
var Lightness = utils.Map(LightnessC)
Lightness creates a grayscale version of the Image using the lightness method. That is, it averages the most prominent and least prominent colours.
var Luminosity = utils.Map(LuminosityC)
Luminosity creates a greyscale version of the Image using a different weighting from the Default method.
var Maximal = utils.Map(MaximalC)
Maximal creates a greyscale version of the Image by taking the maximum of the RGB channels and using that value for each channel. Produces a lighter image.
var Minimal = utils.Map(MinimalC)
Minimal creates a greyscale version of the Image by taking the minimum value of the RGB channels and using that for each channel. Produces a darker image.
var Red = utils.Map(RedC)
Red creates a greyscale version of the Image using the values of the red channel.
Functions ¶
func AverageC ¶
func AverageC() utils.Composable
func BlueC ¶
func BlueC() utils.Composable
func GreenC ¶
func GreenC() utils.Composable
func GreyscaleC ¶
func GreyscaleC() utils.Composable
func LightnessC ¶
func LightnessC() utils.Composable
func LuminosityC ¶
func LuminosityC() utils.Composable
func MaximalC ¶
func MaximalC() utils.Composable
func MinimalC ¶
func MinimalC() utils.Composable
func RedC ¶
func RedC() utils.Composable
Types ¶
This section is empty.