conv2

package
v0.0.0-...-b3c1e68 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package conv2 contains various implementations of two-dimensional convolutions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FullFFT

func FullFFT(f, g *mat.Dense) *mat.Dense

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

func FullFillC(f, g *mat.Dense) *mat.Dense

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

func FullFillOpt(f, g *mat.Dense) *mat.Dense

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

func FullFillSlow(f, g *mat.Dense) *mat.Dense

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

func FullWrapSlow(f, g *mat.Dense) *mat.Dense

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

func SameFillSlow(f, g *mat.Dense) *mat.Dense

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

func SameWrapSlow(f, g *mat.Dense) *mat.Dense

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

func ValidFillC(f, g *mat.Dense) *mat.Dense

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

func ValidFillOpt(f, g *mat.Dense) *mat.Dense

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

func ValidFillSlow(f, g *mat.Dense) *mat.Dense

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

func ValidWrapSlow(f, g *mat.Dense) *mat.Dense

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.

Jump to

Keyboard shortcuts

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