-
Notifications
You must be signed in to change notification settings - Fork 321
Open
Description
Bug report
Describe the bug
Objects → Annotations → Simplify shape... does not correctly handle lines. It always connects the endpoints to form an area ROI, which can also result in the ROI being empty (and then removed).
To Reproduce
Steps to reproduce the behavior:
- Open an image
- Draw an annotation with the 'polyline' tool
- Run Objects → Annotations → Simplify shape...
- Run the simplification - the polyline has become closed
Expected behavior
The endpoints of the polyline should be unchanged and unconnected. Only points falling between the endpoints should be removed.
Desktop (please complete the following information):
- OS: All
- QuPath Version: v0.6.0 (and probably earlier)
Additional context
For a (poly)line with only 2 endpoints, Simplify shape... entirely removes the ROI... which is also a (related) bug.