Skip to content

Conversation

vincentsarago
Copy link
Member

@vincentsarago vincentsarago commented Jul 4, 2025

This PR does:

The alpha_mask has to be an numpy array in form of (height x width) with the same datatype as the data array. Values can be have to be between the min/max data type value (uint8: 0,255; int16: -32768, 32767, ....).

If present, the alpha_mask will be returned by the.mask property (used in .render() method) breaking change

  • refactor the .mask property to make sure the array has the same datatype as the data

  • add more tests for mask datatype and imageData array copy

ToDo

  • add more tests for alpha_mask
  • update docs

@vincentsarago vincentsarago force-pushed the feature/imagedata-add-alpha-mask branch from 474e3f1 to de03f54 Compare July 4, 2025 11:22
@vincentsarago vincentsarago marked this pull request as ready for review July 21, 2025 08:05
@vincentsarago vincentsarago force-pushed the feature/imagedata-add-alpha-mask branch from de03f54 to c9906de Compare July 22, 2025 07:19
@vincentsarago vincentsarago merged commit 21d462a into main Jul 22, 2025
8 checks passed
@vincentsarago vincentsarago deleted the feature/imagedata-add-alpha-mask branch July 22, 2025 07:49
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.

1 participant