Documentation ¶
Overview ¶
Package effect provides the functionality to manipulate images to achieve various looks.
Index ¶
- func EdgeDetection(src image.Image, radius float64) *image.RGBA
- func Emboss(src image.Image) *image.RGBA
- func Grayscale(img image.Image) *image.Gray
- func Invert(src image.Image) *image.RGBA
- func Median(img image.Image, size int) *image.RGBA
- func Sharpen(src image.Image) *image.RGBA
- func Sobel(src image.Image) *image.RGBA
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EdgeDetection ¶
EdgeDetection returns a copy of the image with it's edges highlighted.
func Emboss ¶
Emboss returns a copy of the image in which each pixel has been replaced either by a highlight or a shadow representation.
func Grayscale ¶
Grayscale returns a copy of the image in Grayscale using the weights 0.3R + 0.6G + 0.1B as a heuristic.
func Median ¶
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.