featureextract

package
v0.0.0-...-b04e0d9 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const BLOCK_SIZE = 15

Variables

View Source
var Analyzer = 16
View Source
var Searcher = 6

Functions

func DistanceLab

func DistanceLab(c1, c2 colorful.Color) (float64, error)

func Float64Dist

func Float64Dist(a, b []float64) float64

func GetFeature

func GetFeature(filename string) ([]float64, []colorful.Color)

func GetFeatureFile

func GetFeatureFile(r io.Reader) ([]float64, []colorful.Color)

func HclDist

func HclDist(a, b []colorful.Color) float64

Types

type SortableStruct

type SortableStruct struct {
	Filename string
	// contains filtered or unexported fields
}

func FindKNN

func FindKNN(target []float64, numNeighbor int, db []TrainingData) []SortableStruct

type TrainingData

type TrainingData struct {
	Signature []float64
	Filename  string
}

Jump to

Keyboard shortcuts

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