Skip to content

Export useful fields and functions#15

Merged
esimov merged 2 commits intoesimov:masterfrom
whereswaldon:master
Apr 12, 2021
Merged

Export useful fields and functions#15
esimov merged 2 commits intoesimov:masterfrom
whereswaldon:master

Conversation

@whereswaldon
Copy link
Copy Markdown
Contributor

This PR simply replaces this package's Point type with the stdlib equivalent (which is structurally identical) and exports a useful image format conversion helper. Both of these changes make it easier to build custom image processing pipelines atop this package.

This also enables interoperation with other image software that is
already using the stdlib image.Point type.

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
This function is really useful for doing your own image processing pipeline
using the tools in this package. I would need to reimplement it if it wasn't
exported.

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
Copy link
Copy Markdown
Owner

@esimov esimov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@whereswaldon that's a good observation. Definitely it's a better approach using a built in function which exposes other points related operations and methods, then implementing your own according to your needs. PR merged it to back to the main branch.

@esimov esimov merged commit 06fa40a into esimov:master Apr 12, 2021
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

Successfully merging this pull request may close these issues.

2 participants