Documentation ¶
Index ¶
Constants ¶
View Source
const (
// DefaultTileSize — default tile size px
DefaultTileSize = 50
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AvgColor ¶
type AvgColor [3]float64
AvgColor is average color of image
func NewAvgColor ¶
NewAvgColor returns average color of the img
type DistanceCalculator ¶
Color distance calculator
var ( ColorDistanceEuclidean DistanceCalculator = euclideanDistance ColorDistanceRedmean DistanceCalculator = redMeanDistance )
type Library ¶
type Library struct {
// contains filtered or unexported fields
}
func NewLibrary ¶
func NewLibrary(tilesDir string, tileSize int, dc DistanceCalculator) (*Library, error)
Click to show internal directories.
Click to hide internal directories.