You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Filtering blobs when only one blob is detected #17
Hey,
I noticed that when I apply filters to the list of detected blobs and only one blob is in the list, this blob will not be returned even though it is within the filter criteria. I am not sure if that behavior is intended, but for my applications at least it's unfortunate.
So even though the blob has an area > 100 it is not returned from the filtering.
When applying the same filter with two detected blobs, everything works fine.
A potential fix is in ImageBlobs.py, Line 482 to flatten the mask variable m: return self[m] -> return self[m.flatten()]
Thank you for your interest in MVTB, and for the clear repro and suggested fix — you were exactly right about m.flatten(). A fix is up for review in #35, including regression tests built from your example. I'll leave this open until it merges, at which point it'll close automatically.
Activity
petercorke commentedon Aug 2, 2026
Thank you for your interest in MVTB, and for the clear repro and suggested fix — you were exactly right about
m.flatten(). A fix is up for review in #35, including regression tests built from your example. I'll leave this open until it merges, at which point it'll close automatically.dschaele commentedon Aug 5, 2026
Cool! thanks! 🙂