agabor

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2021 License: BSD-3-Clause Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convolve added in v0.9.6

func Convolve(ch int, segmentSteps int, borderSteps int, melFilterCount int, melData *etensor.Float32, filters FilterSet, rawOut *etensor.Float32)

Convolve processes input using filters that operate over an entire segment of samples

func ToTensor added in v0.9.6

func ToTensor(specs []Filter, set *FilterSet)

ToTensor generates filters into the tensor passed by caller

Types

type Filter added in v0.9.6

type Filter struct {
	SizeX       int     `` /* 138-byte string literal not displayed */
	SizeY       int     `` /* 159-byte string literal not displayed */
	WaveLen     float32 `desc:"wavelength of the sine waves in normalized units, 1.5 and 2 are reasonable values"`
	Orientation float32 `` /* 148-byte string literal not displayed */
	SigmaLength float32 `` /* 170-byte string literal not displayed */
	SigmaWidth  float32 `` /* 157-byte string literal not displayed */
	PhaseOffset float32 `` /* 146-byte string literal not displayed */
	CircleEdge  bool    `` /* 154-byte string literal not displayed */
}

Filter, a struct of gabor filter parameters

func (*Filter) Defaults added in v0.9.6

func (f *Filter) Defaults()

Defaults sets default values for any filter fields where 0 is not a reasonable value

type FilterSet added in v0.9.6

type FilterSet struct {
	SizeX   int             `desc:"size of each filter in X"`
	SizeY   int             `desc:"size of each filter in Y"`
	StrideX int             `desc:"how far to move the filter in X each step"`
	StrideY int             `desc:"how far to move the filter in Y each step"`
	Gain    float32         `` /* 145-byte string literal not displayed */
	Filters etensor.Float32 `desc:"actual gabor filters"`
}

FilterSet, a struct holding a set of gabor filters stored as a tensor. Though individual filters can vary in size, when used as a set they should all have the same size.

Jump to

Keyboard shortcuts

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