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

sgext_image: from_pyarray(input_array) should raise error if dtype of input array is incorrect #61

Open
phcerdan opened this issue Feb 26, 2021 · 0 comments

Comments

@phcerdan
Copy link
Owner

phcerdan commented Feb 26, 2021

sgext internal wrapped images are either binary (unsigned char, dtype=uint8) sgext.itk.IUC3P or float (dtype=float32) sgext.itk.IF3P.

sgext.itk.IUC3P().from_pyarray(input_array) should raise error if input_array dtype is not uint8.

Raised here: #60

@phcerdan phcerdan changed the title sgext_image: from_pyarray(input_array) should check the dtype of the input array to warn the user if it is invalid sgext_image: from_pyarray(input_array) should raise error if dtype of input array is incorrect Feb 26, 2021
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

1 participant