Documentation ¶
Overview ¶
Package contrast implements functions to adjust the contrast of an image.
Index ¶
- Constants
- func Adjust(img image.Image, value float64) image.Image
- func AdjustC(value float64) utils.Composable
- func Linear(img image.Image, value float64) image.Image
- func LinearC(value float64) utils.Composable
- func Sigmoidal(img image.Image, factor, midpoint float64) image.Image
- func SigmoidalC(factor, midpoint float64) utils.Composable
Constants ¶
View Source
const Epsilon = 1.0e-10
Variables ¶
This section is empty.
Functions ¶
func AdjustC ¶
func AdjustC(value float64) utils.Composable
func Linear ¶
Linear adjusts the contrast using a linear function. A value of 1 has no effect, and a value of 0 will return a grey image.
func LinearC ¶
func LinearC(value float64) utils.Composable
func Sigmoidal ¶
Sigmoidal adjusts the contrast in a non-linear way. Factor sets how much to increase the contrast, midpoint sets where midtones fall in the resultant image.
func SigmoidalC ¶
func SigmoidalC(factor, midpoint float64) utils.Composable
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.