Repository navigation
ShapesOut: outlines as annotations - #7
Merged
Merged
Conversation
…perties as measurements, Replace); GUI test body Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y2SN8SuEakTdiWy3F2WUqN
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.
Host side of
ShapesOut(Tools PR CellMigrationLab/LabConstrictor-Tools#31, merged). GeoJSON outlines become annotations named<app>:<output> <label>on the image they were found in (when that was the image open in QuPath): holes and parts are kept (JTS geometry), numeric properties become measurements,Replace()removes the previous annotations of the output, up to 50 000 are added and the message says how many were left out. Pixel centres are respected (+0.5).Two Groovy traps found and fixed on the way (commented in the code): on a Gson map
feature.propertiesandfeature["properties"]return Groovy's bean properties, not the JSON key (use.get), and Gson reads every number as a double (labels are printed as integers).New GUI test body
gui_test_shapes_body.groovy(6 checks: one annotation per blob, names, measurements, hole kept, on the image, Replace). All suites re-run (earlier bodies plus widgets, copy and shapes): 71 PASS, no failures.🤖 Generated with Claude Code
https://claude.ai/code/session_01Y2SN8SuEakTdiWy3F2WUqN
Generated by Claude Code