-
Notifications
You must be signed in to change notification settings - Fork 5
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
Unable to convert ImgLib2 BooleanType image to numpy/xarray bool #13
Comments
With @hinerm we determined that To resolve this bug we need to:
|
Technically this is an imglib2 BitType. Adding support for this conversion requires:
This runs into several challenges including:
At the moment we have logic to catch upsupported types and default them to |
There currently is no `bool` convert method registered in imglyb.util. See: * imglib/imglyb#13 * https://github.com/imglib/imglyb/blob/master/imglyb/util.py#L39-L69
@hinerm It looks like NumPy For converting a So then the plan to implement this initially would be:
|
This issue has been mentioned on Image.sc Forum. There might be relevant details there: https://forum.image.sc/t/show-a-binary-image-in-pyimagej/58031/2 |
I noticed this issue completely ignorant of this one, and just filed imglib/imglib2-unsafe#8
But, now seeing this, I wonder if that is the correct fix... I don't know that it is an issue with the code, but I do think that it doesn't help with this issue. Anyways, I'm going to try and fix this, as imagej/napari-imagej#69 doesn't do much for us without this feature. The only way to get a |
imglyb
does not support convertingbool
type images to numpy. This means that users are unable to convert masks/thresholded images into python numpy/xarray objects.Here is a minimal example:
Returns the traceback:
The text was updated successfully, but these errors were encountered: