Documentation ¶
Overview ¶
Package conv2 contains various implementations of two-dimensional convolutions.
Index ¶
- func FullFFT(f, g *mat.Dense) *mat.Dense
- func FullFillC(f, g *mat.Dense) *mat.Dense
- func FullFillOpt(f, g *mat.Dense) *mat.Dense
- func FullFillSlow(f, g *mat.Dense) *mat.Dense
- func FullWrapSlow(f, g *mat.Dense) *mat.Dense
- func SameFillSlow(f, g *mat.Dense) *mat.Dense
- func SameWrapSlow(f, g *mat.Dense) *mat.Dense
- func ValidFillC(f, g *mat.Dense) *mat.Dense
- func ValidFillOpt(f, g *mat.Dense) *mat.Dense
- func ValidFillSlow(f, g *mat.Dense) *mat.Dense
- func ValidWrapSlow(f, g *mat.Dense) *mat.Dense
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FullFFT ¶
FullFFT returns the 2-dimensional convolution of f and g. Outputs are equivalent to FullFillSlow() and FullFillC.
Implemented using a FFT. It is equivalent to scipy.signal.signal.fftconvolve(f, g, mode='full') but works only for 2-dim inputs. See https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.convolve2d.html.
func FullFillC ¶
FullFillC returns the 2-dimensional convolution of f and g.
Implemented in C (cgo). It is equivalent to scipy.signal.convolve2d(f, g, mode="full", boundary="fill", fillvalue=0). See https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.convolve2d.html.
func FullFillOpt ¶
FullFillOpt returns the 2-dimensional convolution of f and g.
Slightly optimized Go implementation. It is equivalent to scipy.signal.convolve2d(f, g, mode="full", boundary="fill", fillvalue=0). See https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.convolve2d.html.
func FullFillSlow ¶
FullFillSlow returns the 2-dimensional convolution of f and g.
Naive Go implementation, slow. It is equivalent to scipy.signal.convolve2d(f, g, mode="full", boundary="fill", fillvalue=0). See https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.convolve2d.html.
func FullWrapSlow ¶
FullWrapSlow returns the 2-dimensional convolution of f and g.
Naive Go implementation, slow. It is equivalent to scipy.signal.convolve2d(f, g, mode="full", boundary="wrap", fillvalue=0). See https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.convolve2d.html.
func SameFillSlow ¶
SameFillSlow returns the 2-dimensional convolution of f and g.
Naive Go implementation, slow. It is equivalent to scipy.signal.convolve2d(f, g, mode="same", boundary="fill", fillvalue=0). See https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.convolve2d.html.
func SameWrapSlow ¶
SameWrapSlow returns the 2-dimensional convolution of f and g.
Naive Go implementation, slow. It is equivalent to scipy.signal.convolve2d(f, g, mode="same", boundary="wrap", fillvalue=0). See https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.convolve2d.html.
func ValidFillC ¶
ValidFillC returns the 2-dimensional convolution of f and g.
Implemented in C (cgo). It is equivalent to scipy.signal.convolve2d(f, g, mode="valid", boundary="fill", fillvalue=0). See https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.convolve2d.html.
func ValidFillOpt ¶
ValidFillOpt returns the 2-dimensional convolution of f and g.
Slightly optimized Go implementation. It is equivalent to scipy.signal.convolve2d(f, g, mode="valid", boundary="fill", fillvalue=0). See https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.convolve2d.html.
func ValidFillSlow ¶
ValidFillSlow returns the 2-dimensional convolution of f and g.
Naive Go implementation, slow. It is equivalent to scipy.signal.convolve2d(f, g, mode="valid", boundary="fill", fillvalue=0). See https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.convolve2d.html.
func ValidWrapSlow ¶
ValidWrapSlow returns the 2-dimensional convolution of f and g.
Naive Go implementation, slow. It is equivalent to scipy.signal.convolve2d(f, g, mode="valid", boundary="wrap", fillvalue=0). See https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.convolve2d.html.
Types ¶
This section is empty.