Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added homogenizeGeometryCollection #1526

Merged
merged 1 commit into from
May 20, 2024

Conversation

Rylern
Copy link
Contributor

@Rylern Rylern commented May 20, 2024

In the RoiTools.intersection(Collection<? extends ROI> rois) function (see here), the GeometryTools.geometryToROI(Geometry geometry, ImagePlane plane) (see here) is called with the first and plane local variables.

In some situations, the first variable is a non homogeneous geometry collection, which triggers a warning in GeometryTools.geometryToROI().

This PR simply homogenizes the first parameter before calling GeometryTools.geometryToROI(). This only prevents the warning log from appearing and doesn't change anything else, as the geometry was homogenized anyway.

@petebankhead petebankhead added this to the v0.6.0 milestone May 20, 2024
@petebankhead
Copy link
Member

Thanks, looks good!

@petebankhead petebankhead merged commit 7641510 into qupath:main May 20, 2024
3 checks passed
@Rylern Rylern deleted the intersection-geometry-same-type branch May 20, 2024 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants