effect

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2016 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package effect provides the functionality to manipulate images to achieve various looks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EdgeDetection

func EdgeDetection(src image.Image, radius float64) *image.RGBA

EdgeDetection returns a copy of the image with it's edges highlighted.

func Emboss

func Emboss(src image.Image) *image.RGBA

Emboss returns a copy of the image in which each pixel has been replaced either by a highlight or a shadow representation.

func Grayscale

func Grayscale(img image.Image) *image.Gray

Grayscale returns a copy of the image in Grayscale using the weights 0.3R + 0.6G + 0.1B as a heuristic.

func Invert

func Invert(src image.Image) *image.RGBA

Invert returns a negated version of the image.

func Median

func Median(img image.Image, size int) *image.RGBA

Median returns a new image in which each pixel is the median of it's neighbors. Size sets the amount of neighbors to be searched.

func Sharpen

func Sharpen(src image.Image) *image.RGBA

Sharpen returns a sharpened copy of the image by detecting it's edges and adding it to the original.

func Sobel

func Sobel(src image.Image) *image.RGBA

Sobel returns an image emphasising edges using an approximation to the Sobel–Feldman operator.

Types

This section is empty.

Jump to

Keyboard shortcuts

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