Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mask Problem #8

Open
terzano opened this issue Mar 29, 2022 · 0 comments
Open

Mask Problem #8

terzano opened this issue Mar 29, 2022 · 0 comments

Comments

@terzano
Copy link

terzano commented Mar 29, 2022

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)

test

I believe all single color images have the same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant