gamma

package
v0.0.0-...-6905684 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2019 License: MIT Imports: 5 Imported by: 1

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Adjust

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

Adjusts the gamma of the Image by the given value. A value less than 1.0 darkens the image, whilst a gamma of greater than 1.0 lightens an image.

func AdjustC

func AdjustC(value float64) utils.Composable

func Auto

func Auto(img image.Image) image.Image

Auto calculates the mean values of an image, then applies a gamma adjustment so that the mean colour in the image has a value of half.

Types

This section is empty.

Jump to

Keyboard shortcuts

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