Documentation ¶
Overview ¶
Package levels provides functions to alter the distibution of values of a color channel in an image.
Index ¶
- Constants
- func Auto(img image.Image, ch channel.Channel) image.Image
- func AutoBlack(img image.Image, ch channel.Channel) image.Image
- func AutoWhite(img image.Image, ch channel.Channel) image.Image
- func Equalise(img image.Image) image.Image
- func SetBlack(img image.Image, ch channel.Channel, darkest float64) image.Image
- func SetBlackC(ch channel.Channel, darkest float64) utils.Composable
- func SetCurve(img image.Image, ch channel.Channel, curve *Curve) image.Image
- func SetCurveC(ch channel.Channel, curve *Curve) utils.Composable
- func SetWhite(img image.Image, ch channel.Channel, lightest float64) image.Image
- func SetWhiteC(ch channel.Channel, lightest float64) utils.Composable
- type Curve
- type Point
- Bugs
Constants ¶
View Source
const ( VALUE_DELIM = "," POINT_DELIM = " " )
Variables ¶
This section is empty.
Functions ¶
func AutoBlack ¶
AutoBlack finds the darkest colour in the image and makes it black, adjusting the colours of every other point to achieve the same distribution.
Types ¶
Notes ¶
Bugs ¶
Only uses linear interpolation.
Click to show internal directories.
Click to hide internal directories.