Improve conversion of QuPath objects to/from ImageJ Rois#2034
Merged
petebankhead merged 5 commits intoqupath:mainfrom Nov 10, 2025
Merged
Improve conversion of QuPath objects to/from ImageJ Rois#2034petebankhead merged 5 commits intoqupath:mainfrom
petebankhead merged 5 commits intoqupath:mainfrom
Conversation
- 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.
Contributor
My gut reaction to this was one of exasperated confusion but it does make sense given the existence of complex numbers, NaN, etc. |
This allows objects of a specified type to be created from a Roi (usually annotation or detection).
Remove deprecated methods
Member
Author
|
When an overlay is saved on a TIFF, it's now possible to specify the type of an object that will be imported. For example, to test I applied this macro in ImageJ to Importing resulted in a detection, rather than an annotation, being created. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
IJTools, returnSortedMap<Integer, PathObjectinstead ofSortedMap<Number, PathObject>because it turns out thatNumberdoes not implementComparable.IJTools.setObjectTypemethods to standardize how an object type can be saved as aRoiproperty.