-
Notifications
You must be signed in to change notification settings - Fork 32
Coords opts #7
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
Coords opts #7
Conversation
lightning/types/utils.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tolist()
is not in place, make sure to call it on the object that will be returned.
@d-v-b this looks great! I think it would be nice to add one more output type, a mask for each region, of 0s and 1s with 1s where the region was defined. As we'll then have three options, I would suggest the following change to the name / function definition:
Where the three options are
Want to give this a try? |
@freeman-lab yep, I can work those suggestions in. Expect something along those lines in a few hours |
A list of boundary points for each polygon are returned when Given A list of lists of points internal to each polygon is returned when The argument |
lightning/types/utils.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove line break
@d-v-b looking very close! Made a couple formatting suggestions, only other thing is that I'd rather use the |
@freeman-lab now for consistency in naming, I also re-named the mask-generating function to |
@d-v-b Terrific, LGTM, really nice work! Merging it in. |
Add addition output options for getting coordinates
This addition adds the ability to get the set of (x,y) points inside a polygon drawn in an instance of
lightning.image
To test this new functionality, draw a region on an image and call the following: