vibrance

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: 6 Imported by: 0

Documentation

Overview

Package vibrance provides functions to adjust the "vibrancy" of images.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Adjust

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

Adjust increases the saturation of the least saturated parts of the image while also reducing the lightness of these parts.

func AdjustC

func AdjustC(amount float64) utils.Composable

AdjustC returns a Composable function that increases the saturation and decreases the lightness of unsaturated colours.

Uses the same method as Darktable: https://github.com/darktable-org/darktable/blob/24c4a087fd020df587b5260f438bfaf494203cec/src/iop/vibrance.c

func Exp

func Exp(img image.Image, amount float64) image.Image

Exp increases the saturation of the least saturated parts of an image.

func ExpC

func ExpC(amount float64) utils.Composable

ExpC returns a Composable function that increases the saturation of unsaturated colours.

Types

This section is empty.

Jump to

Keyboard shortcuts

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