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

paint bucket (flood-fill) module #541

Closed
jywarren opened this issue Dec 13, 2018 · 3 comments
Closed

paint bucket (flood-fill) module #541

jywarren opened this issue Dec 13, 2018 · 3 comments
Labels
enhancement module New Module idea

Comments

@jywarren
Copy link
Member

Breaking out of #165, this would take inputs of:

  • a color to fill with
  • x, y coordinate starting pixel to begin filling at
  • (not in first version) - threshold -- see below

It would paint bucket fill starting at the given pixel and expanding outward.

Threshold means that the fill would fill any adjacent pixel of the same color OR within threshold value of that starting pixel color. It's expressed as a percentage difference from the original pixel color.

@gitmate gitmate bot added the module New Module idea label Dec 13, 2018
@gitmate
Copy link

gitmate bot commented Dec 13, 2018

GitMate.io thinks the contributor most likely able to help you is @ccpandhare.

Possibly related issues are #434 (Rotate module), #108 (Math Module), #112 (Scale module), #5 (image cropping module), and #488 (White balance module).

1 similar comment
@gitmate
Copy link

gitmate bot commented Dec 13, 2018

GitMate.io thinks the contributor most likely able to help you is @ccpandhare.

Possibly related issues are #434 (Rotate module), #108 (Math Module), #112 (Scale module), #5 (image cropping module), and #488 (White balance module).

@jywarren
Copy link
Member Author

https://github.com/hughsk/flood-fill should be usable for this until we want to do thresholds!

require('flood-fill')(ndarray, x, y, fillValue)

We should make the default fillValue be white, for starters, i guess?

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

No branches or pull requests

1 participant