-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
Add find_objects #96
Comments
Have done a little bit of work in PR ( #97 ) and have some more work locally. Though am struggling a bit as I'm unclear the use cases people intend to apply this on. For instance, with the This raises the question. What are we intending to do with the result from |
@jakirkham ideally we want the ie we do indeed want to slice into a dask array. I think. |
Thanks for the pointer. So that is within the |
Yes, the goal is to use dask-image's |
btw, you mentioned,
Is this a hard constraint? Or a not-yet-implemented constraint? |
What would it mean to slice a Dask Array by a Delayed object? What should happen to the shape of the Dask Array or its chunks? How should we differentiate between different objects usable for slicing that could be in a Delayed object (e.g. an At least for me it's difficult to think what the right answer would be for all of these cases. That doesn't mean there isn't one though. |
Mmm, it's true that for a generic Delayed object, you don't know whether you're returning an array or a scalar. When you know it's slices, you know it'll be an array, but you don't know the shape. What I don't know is how bad it is to not know the shape of an output array. In this case, we at least know the dimensionality. So, perhaps it could be the same trick as we used elsewhere: slicing with a Delayed gives a Delayed, which we can manually convert to an array. But I guess this requires rechunking to a single chunk? Which would be a massive problem. |
FWICT we don't actually need a clone of |
Would be useful to have an implementation of
find_objects
for dask-image. Based on a conversation with @jni, we should be able to do this by performingfind_objects
withmap_blocks
and then resolving any large spanning objects across chunks in a subsequent step. Would also need to handle the cases where a label is missing from a chunk (i.e.find_objects
returnsNone
instead of a bounding box).The text was updated successfully, but these errors were encountered: