blur

package
v0.0.0-...-f7ef437 Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoxGray

func BoxGray(img *image.Gray, kernelSize image.Point, anchor image.Point, border padding.Border) (*image.Gray, error)

BoxGray applies average blur to a grayscale image. The amount of bluring effect depends on the kernel size, where both width and height can be specified. The anchor point specifies a point inside the kernel. The pixel value will be updated after the convolution was done for the given area. Border types supported: see convolution package.

func BoxRGBA

func BoxRGBA(img *image.RGBA, kernelSize image.Point, anchor image.Point, border padding.Border) (*image.RGBA, error)

BoxRGBA applies average blur to an RGBA image. The amount of bluring effect depends on the kernel size, where both width and height can be specified. The anchor point specifies a point inside the kernel. The pixel value will be updated after the convolution was done for the given area. Border types supported: see convolution package.

func GaussianBlurGray

func GaussianBlurGray(img *image.Gray, radius float64, sigma float64, border padding.Border) (*image.Gray, error)

GaussianBlurGray applies average blur to a grayscale image. The amount of bluring effect depends on the kernel radius and sigma value. The anchor point specifies a point inside the kernel. The pixel value will be updated after the convolution was done for the given area. For border types see convolution package.

func GaussianBlurRGBA

func GaussianBlurRGBA(img *image.RGBA, radius float64, sigma float64, border padding.Border) (*image.RGBA, error)

GaussianBlurRGBA applies average blur to an RGBA image. The amount of bluring effect depends on the kernel radius and sigma value. The anchor point specifies a point inside the kernel. The pixel value will be updated after the convolution was done for the given area. For border types see convolution package.

Types

This section is empty.

Jump to

Keyboard shortcuts

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