-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add Numpy, PIL, Scikit-Image support #59
Comments
Let me try to write the pytest cases for input-output conversion in pure Python / Numpy to the various toolkits and code the conversion operations in C/Python when they work... (scaffolding in the biological cellular sense).. |
An early presets design specification (premute, interleave) config tuples has been submitted for RFC in our lab: I might push this sheet on Twitter and Pixls.us for more RFC, when there are working examples for each preset (eg. pure Python transposes from vanilla from_/to_numpy_array() calls in order to reach a display in PIL/ScikitImage/Numpy-Matplot). |
In gmic-2.9.1-alpha1, presets and options are mixing up their effects. Will be fixed (checkbox added in the TODO above) |
Created an editable RFC of conversion presets on Google Colab, also backed up here on Github. It both gives preset specifications and code blocks exemplify and testing them. |
gmic-py 2.9.1 alpha 2 with PIL I/O and solidified numpy I/O is released at: https://pypi.org/project/gmic/2.9.1a2/
|
Rearranged TODO list into 3 distinct numpy, PIL, scikit sections at the top of this issue |
|
Come on come on!!! A few TODO checkboxes remaining and we are close to the goal!!! |
Matrix layout and (de)interleaving presets:
- [x] add presets to G'MIC module and add validator GmicImage class method- [x] parameters mutual-exclusion: prevent from/to_numpy_array parameters tuning (except for as_type) if a preset is used, raise GmicException in such casesNumpy I/O support
- [x] add 'a': a third letter for the 'i'/'d' (de)interleaving option to have no effect on channels pixel format. 'a' for agnosticfrom_numpy() - deinterleaving input
to_numpy() - interleaving output
solidify GmicImage.to_numpy_helper()
solidify GmicImage.from_numpy_helper()
Scikit-image I/O support
PIL I/O support
The text was updated successfully, but these errors were encountered: