contrast

package
v0.0.0-...-6cd0f2a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2015 License: MIT Imports: 5 Imported by: 4

Documentation

Overview

Package contrast implements functions to adjust the contrast of an image.

Index

Constants

View Source
const Epsilon = 1.0e-10

Variables

This section is empty.

Functions

func Adjust

func Adjust(img image.Image, value float64) image.Image

Adjust changes the contrast in the Image. A value of 0 has no effect.

func AdjustC

func AdjustC(value float64) utils.Composable

func Linear

func Linear(img image.Image, value float64) image.Image

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

func Sigmoidal(img image.Image, factor, midpoint float64) image.Image

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL