gabor

package
v1.1.13 Latest Latest
Warning

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

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

Documentation

Overview

package gabor provides a gabor filter for visual and other forms of signal processing

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter struct {
	On         bool    `desc:"is this filter active?"`
	Wt         float32 `viewif:"On" desc:"how much relative weight does this filter have when combined with other filters"`
	Gain       float32 `` /* 159-byte string literal not displayed */
	Size       int     `` /* 217-byte string literal not displayed */
	WvLen      float32 `` /* 219-byte string literal not displayed */
	Spacing    int     `` /* 189-byte string literal not displayed */
	SigLen     float32 `` /* 162-byte string literal not displayed */
	SigWd      float32 `` /* 154-byte string literal not displayed */
	Phase      float32 `` /* 128-byte string literal not displayed */
	CircleEdge bool    `` /* 138-byte string literal not displayed */
	NAngles    int     `` /* 132-byte string literal not displayed */
}

gabor.Filter specifies a gabor filter function, i.e., a 2d Gaussian envelope times a sinusoidal plane wave. By default it produces 2 phase asymmetric edge detector filters.

func (*Filter) Defaults

func (gf *Filter) Defaults()

func (*Filter) SetSize

func (gf *Filter) SetSize(sz, spc int)

SetSize sets the size and WvLen to same value, and also sets spacing these are the main params that need to be varied for standard V1 gabors

func (*Filter) ToTable

func (gf *Filter) ToTable(tab *etable.Table)

ToTable renders filters into the given etable.Table setting a column named Angle to the angle and a column named Gabor to the filter for that angle. This is useful for display and validation purposes.

func (*Filter) ToTensor

func (gf *Filter) ToTensor(tsr *etensor.Float32)

ToTensor renders filters into the given etable etensor.Tensor, setting dimensions to [angle][Y][X] where Y = X = Size

func (*Filter) Update

func (gf *Filter) Update()

Jump to

Keyboard shortcuts

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