kernel

package module
v0.0.0-...-0b6d777 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2020 License: MIT Imports: 3 Imported by: 0

README

kernel

small convolution package for images using go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convolution

func Convolution(img image.Image, kernel [][]float64, stride, dilation, padding []int, zeronegatives bool, threads bool) image.Image

Convolution does the convolution operation per channel on an image. threads will parallelize the convolution

func CrossCorelation

func CrossCorelation(img image.Image, kernel [][]float64, stride, dilation, padding []int, zeronegatives bool, threads bool) image.Image

CrossCorelation does the convolution operation per channel on an image. If the kernel is small and picture is small then don't bother setting the threads to big.

func InverseCCorelation

func InverseCCorelation(img image.Image, kernel [][]float64, stride, dilation, padding []int, zeronegatives bool) image.Image

InverseCCorelation does the reverse cross corelation operation per channel on an image. This is kind of like the back propagation of an CNN.

func InverseConvolution

func InverseConvolution(img image.Image, kernel [][]float64, stride, dilation, padding []int, zeronegatives bool) image.Image

InverseConvolution does reverse convolution operation per channel on an image. This is kind of like the back propagation of an CNN.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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