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

Output dtype #39

Open
dy opened this issue Sep 23, 2018 · 1 comment
Open

Output dtype #39

dy opened this issue Sep 23, 2018 · 1 comment

Comments

@dy
Copy link
Member

dy commented Sep 23, 2018

Would be nice to provide various output data formats, not necessarily ndarray:

  • array, float32array with 0..1 values
  • uint8array directly

For example:
getPixels(src, { dtype: 'uint8' }, cb)

@dy dy changed the title Output format/dtype Output dtype Sep 23, 2018
@roborourke
Copy link

Just ran into this use case when trying to use apply-cube-lut with this package. When converting RGBA channels to 0-1 values they were being rounded down.

Would be good to support the same values as the 2nd argument for ndarray-from-image.

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

No branches or pull requests

2 participants