prominentcolor
prominentcolor copied to clipboard
Mask Problem
The following image produce the incorrect result:
Failed, no non-alpha pixels found (either fully transparent image, or the ColorBackgroundMask removed all pixels)
resizeSize := uint(prominentcolor.DefaultSize)
bgmasks := []prominentcolor.ColorBackgroundMask{prominentcolor.MaskWhite}
colours, err := prominentcolor.KmeansWithAll(
5, img, prominentcolor.ArgumentNoCropping|prominentcolor.ArgumentAverageMean|prominentcolor.ArgumentDebugImage,
resizeSize, bgmasks)
I believe all single color images have the same problem