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

Handle ASSOCALPHA and UNASSALPHA (associated and unassociated transparency values) #7

Open
GenevieveBuckley opened this issue Jun 26, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@GenevieveBuckley
Copy link
Collaborator

Handle ASSOCALPHA and UNASSALPHA (associated and unassociated transparency values)

https://github.com/GenevieveBuckley/napari-tifffile/blob/155ea1318b0f5156900f6cda898042776b984fc4/napari_tifffile/napari_tifffile.py#L153

From the docs at hyperspy tifffile

extrasamples (tuple of {'UNSPECIFIED', 'ASSOCALPHA', 'UNASSALPHA'}) – Defines the interpretation of extra components in pixels.

  • ‘UNSPECIFIED’: no transparency information (default).
  • ‘ASSOCALPHA’: single, true transparency with pre-multiplied color.
  • ‘UNASSALPHA’: independent transparency masks.
@GenevieveBuckley GenevieveBuckley added the enhancement New feature or request label Jun 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant