Documentation ¶
Overview ¶
Package effect provides the functionality to manipulate images to achieve various looks.
Index ¶
- func Dilate(img image.Image, radius float64) *image.RGBA
- func EdgeDetection(src image.Image, radius float64) *image.RGBA
- func Emboss(src image.Image) *image.RGBA
- func Erode(img image.Image, radius float64) *image.RGBA
- func Grayscale(img image.Image) *image.Gray
- func Invert(src image.Image) *image.RGBA
- func Median(img image.Image, radius float64) *image.RGBA
- func Sepia(img image.Image) *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 Dilate ¶ added in v0.7.0
Dilate picks the local maxima from the neighbors of each pixel and returns the resulting image. The parameter radius corresponds to the radius of the neighbor area to be searched, for example a radius of R will result in a search window length of 2R+1 for each dimension.
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 Erode ¶ added in v0.7.0
Erode picks the local minima from the neighbors of each pixel and returns the resulting image. The parameter radius corresponds to the radius of the neighbor area to be searched, for example a radius of R will result in a search window length of 2R+1 for each dimension.
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. The parameter radius corresponds to the radius of the neighbor area to be searched, for example a radius of R will result in a search window length of 2R+1 for each dimension.
Types ¶
This section is empty.