features

package
v0.0.0-...-2854290 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2019 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const XMassCenter = 0
View Source
const YMassCenter = 1

Variables

View Source
var FeatureFlags = map[FeatureType]bool{
	LengthFeatureType:      true,
	GradientFeatureType:    true,
	AspectFeatureType:      true,
	HOGFeatureType:         true,
	CornersFeatureType:     false,
	MassCenterXFeatureType: true,
	MassCenterYFeatureType: true,
}

Functions

This section is empty.

Types

type Feature

type Feature struct {
	// contains filtered or unexported fields
}

func NewAspectFeature

func NewAspectFeature() *Feature

func NewCornersFeature

func NewCornersFeature() *Feature

func NewGradientFeature

func NewGradientFeature() *Feature

func NewHOGFeature

func NewHOGFeature() *Feature

func NewLengthFeature

func NewLengthFeature() *Feature

func NewMassCenterFeature

func NewMassCenterFeature(pos int) *Feature

func (*Feature) Max

func (f *Feature) Max() float64

func (*Feature) Min

func (f *Feature) Min() float64

func (*Feature) Score

func (f *Feature) Score(other *Feature) float64

func (*Feature) Std

func (f *Feature) Std() float64

func (*Feature) String

func (f *Feature) String() string

func (*Feature) Update

func (f *Feature) Update(sample *samples.Sample, nSamples int)

func (*Feature) Value

func (f *Feature) Value() float64

func (*Feature) Var

func (f *Feature) Var() float64

type FeatureMap

type FeatureMap map[FeatureType]*Feature

func (FeatureMap) GoString

func (m FeatureMap) GoString() string

type FeatureType

type FeatureType int
const (
	LengthFeatureType FeatureType = iota
	GradientFeatureType
	AspectFeatureType
	HOGFeatureType
	CornersFeatureType
	MassCenterXFeatureType
	MassCenterYFeatureType
)

func (FeatureType) String

func (t FeatureType) String() string

Jump to

Keyboard shortcuts

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