intertitle

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Intensity

func Intensity(col color.Color) float64

Intensity retrieves the L component of the Luv transformation of col.

Types

type IntensityStats

type IntensityStats struct {
	AvgIntensity       float64
	LowerAvgIntensity  float64
	MiddleAvgIntensity float64
	UpperAvgIntensity  float64
	ProportionLower    float64
	ProportionMiddle   float64
	ProportionUpper    float64
}

IntensityStats defines statistics about an image's luminosity

in various capacities

func GetIntensityStats

func GetIntensityStats(img image.Image) IntensityStats

GetIntensityStats extracts intensity statistics from an image.

func (IntensityStats) AsInput

func (is IntensityStats) AsInput() ml.Datum

AsInput maps intensity statistics to a Datum for ML purposes

Jump to

Keyboard shortcuts

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