agabor

package
v0.9.12 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2021 License: BSD-3-Clause Imports: 5 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 */
	SigmaWidth  float32 `` /* 157-byte string literal not displayed */
	SigmaLength float32 `` /* 170-byte string literal not displayed */
	PhaseOffset float32 `` /* 146-byte string literal not displayed */
	CircleEdge  bool    `` /* 154-byte string literal not displayed */
	Circular    bool    `desc:"is the gabor circular? orientation, phase, sigmalength and circleedge not used for circular gabor"`
}

Filter, a struct of gabor filter parameters

func (*Filter) Defaults added in v0.9.6

func (f *Filter) Defaults(i int)

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 */
	Distribute bool            `desc:"if multiple horiz or vertical distribute evenly"`
	Filters    etensor.Float64 `view:"no-inline" desc:"actual gabor filters"`
	Table      etable.Table    `view:"no-inline" desc:"simple gabor filter table (view only)"`
}

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.

func (*FilterSet) ToTable added in v0.9.10

func (fs *FilterSet) ToTable(set FilterSet, tab *etable.Table)

ToDo: don't renorm ToTable renders filters into the given etable.Table This is useful for display and validation purposes.

Jump to

Keyboard shortcuts

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