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
from @petebankhead
Yes, the object hierarchy doesn’t usually know when the properties of an object change – which is a good thing, because hierarchy updates are expensive.
You do generally need to remove/add an object if its ROI changes, but not if its classification changes.
get's called then and is probably the cause for loosing the hierarchy. we could just disable it for modifications that are not related to the ROI of the pathobject.
Easiest way would be to add a update_hierarchy kwarg to the PathObjectProxy.add which defaults to True and pass update_hierarchy=False to the callback when updating the class.
We should first add a test that reproduces the current issue though.
The text was updated successfully, but these errors were encountered:
As reported here:
https://forum.image.sc/t/paquo-detection-path-class-updates-causing-changes-in-hierarchy/101806/5
Solution is likely to be:
The relevant code paths are:
update_path_class
paquo/paquo/pathobjects.py
Lines 221 to 229 in 18ae97a
on an existing hierarchy this will call the
_update_callback
. This is set herePathObjectProxy.add
paquo/paquo/hierarchy.py
Lines 132 to 146 in 18ae97a
get's called then and is probably the cause for loosing the hierarchy. we could just disable it for modifications that are not related to the ROI of the pathobject.
Easiest way would be to add a
update_hierarchy
kwarg to thePathObjectProxy.add
which defaults to True and passupdate_hierarchy=False
to the callback when updating the class.We should first add a test that reproduces the current issue though.
The text was updated successfully, but these errors were encountered: