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

cast data to uint8 #766

Merged
merged 1 commit into from
Nov 14, 2024
Merged

cast data to uint8 #766

merged 1 commit into from
Nov 14, 2024

Conversation

vincentsarago
Copy link
Member

closes #763

# we cast the output array to Uint8.
if data.min() >= 0 and data.max() <= 255:
data = data.astype("uint8")

Copy link
Member Author

Choose a reason for hiding this comment

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

The data will be Uint8 and the Lut is also uint8 so there is no need for this

@vincentsarago vincentsarago merged commit 4663e21 into main Nov 14, 2024
8 checks passed
@vincentsarago vincentsarago deleted the patch/issue763 branch November 14, 2024 21:56
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.

Cast data to colormap datatype
1 participant