Improve conversion of QuPath objects to/from ImageJ Rois by petebankhead · Pull Request #2034 · qupath/qupath

added 2 commits

November 6, 2025 12:27
- In `IJTools`, return `SortedMap<Integer, PathObject` instead of `SortedMap<Number, PathObject>` because it turns out that `Number` does not implement `Comparable`.
- Add `IJTools.setObjectType` methods to standardize how an object type can be saved as a `Roi` property
Fixes qupath#2005 by providing a way to distinguish between Roi names that are set on the QuPath side from those that are set elsewhere.
This allows objects of a specified type to be created from a Roi (usually annotation or detection).
Remove deprecated methods

@petebankhead