edge

package
v0.0.0-...-1cb3710 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2015 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Canny

func Canny(dst *image.Gray, src image.Image) error

Canny detects and returns edges from the given image. Each dst pixel is given one of three values:

0xff: an edge
0x80: possibly an edge
0x00: not an edge

func DifferenceOfGaussians

func DifferenceOfGaussians(dst *image.Gray, src image.Image, sd0, sd1 float64)

DifferenceOfGaussians produces the difference of Gaussians sd0 and sd1.

func LaplacianOfGaussian

func LaplacianOfGaussian(dst *image.Gray, src image.Image)

LaplacianOfGaussian approximates a 2D laplacian of gaussian with a convolution kernel.

func Prewitt

func Prewitt(mag, dir *image.Gray, src image.Image) error

Prewitt returns the magnitude and direction of the Prewitt operator.

func Scharr

func Scharr(mag, dir *image.Gray, src image.Image) error

Scharr returns the magnitude and direction of the Scharr operator. This is very similar to Sobel, with less angular error.

func Sobel

func Sobel(mag, dir *image.Gray, src image.Image) error

Sobel returns the magnitude and direction of the Sobel operator. dir pixels hold the rounded direction value either 0, 45, 90, or 135.

Types

This section is empty.

Jump to

Keyboard shortcuts

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