Versions in this module Expand all Collapse all v1 v1.0.0 May 10, 2019 Changes in this version + const ArgumentAverageMean + const ArgumentDebugImage + const ArgumentDefault + const ArgumentLAB + const ArgumentNoCropping + const ArgumentSeedRandom + const DefaultK + const DefaultSize + var MaskBlack = ColorBackgroundMask + var MaskGreen = ColorBackgroundMask + var MaskWhite = ColorBackgroundMask + func IsBitSet(bitset int, lookingfor int) bool + func ProcessImg(arguments int, bgmasks []ColorBackgroundMask, img image.Image) draw.Image + func ProcessImgOutline(bgmask ColorBackgroundMask, imgDraw *draw.Image) + type ColorBackgroundMask struct + B bool + G bool + PercDiff float32 + R bool + Treshold uint32 + func GetDefaultMasks() []ColorBackgroundMask + type ColorItem struct + Cnt int + Color ColorRGB + func Kmeans(orgimg image.Image) (centroids []ColorItem, err error) + func KmeansWithAll(k int, orgimg image.Image, arguments int, imageReSize uint, ...) ([]ColorItem, error) + func KmeansWithArgs(arguments int, orgimg image.Image) (centroids []ColorItem, err error) + func (c *ColorItem) AsString() string + type ColorRGB struct + B uint32 + G uint32 + R uint32