Versions in this module Expand all Collapse all v1 v1.0.0 Dec 7, 2020 Changes in this version + var DeltaThreshold = 0.05 + func CalculatePalette(obs clusters.Observations, nColors int) (clusters.Clusters, error) + func ColorsFromClusters(cs clusters.Clusters) []colorful.Color + func ImageToObservation(img image.Image) clusters.Observations + func OpenImage(imgPath string) (image.Image, error) + func WriteHTML(imgPath string, outFileName string, colors []colorful.Color) error + func WriteImage(imgPath string, outFileName string, colors []colorful.Color) error + type ColorLab struct + A float64 + B float64 + L float64 + func (c ColorLab) Coordinates() clusters.Coordinates + func (c ColorLab) Distance(pos clusters.Coordinates) float64 + type Palette []ColorLab + func (p Palette) Len() int + func (p Palette) Less(i, j int) bool + func (p Palette) Swap(i, j int)