-
Notifications
You must be signed in to change notification settings - Fork 17
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
Implementation of poly2mask from matlab #56
Comments
It might be interesting. However, what was the inspiration for this code? If you looked at the Matlab implementation then you are license-contaminated, and we can't accept it. |
Could be possibly added to ImageDraw.jl with a new field Lines 19 to 22 in d0324f8
I guess struct Polygon <: Drawable
vertices::Vector{Point}
fill::Bool
end |
It was python scikit-image. Looks like they use a variation of the MIT license.
If you think people would use it for other purposes.. Otherwise, changing an existing class for such tiny functionality seems like over-kill to me. Though I agree that having both |
Adding an extra |
Yes, scikit-image is not a problem with regards to licenses, and the plan you've come up with seems fine to me. |
But maybe |
Just realized that it does not exactly work, as the current |
Generally, we require functions accepting The type annotations in your example codes seem to be quite too restrictive. |
Hi,
I was looking for implementation of a function, which would fill an image region based on the provided polygon. It exists in Matlab (
poly2mask
) and also was re-implemented in python (see the discussion).The implementation is almost trivial (see below), and the function seems generally useful. Would you be interested in me making a PR?
The text was updated successfully, but these errors were encountered: