Skip to content

Fix persistent approval highlights - #13

Merged
KneeKin-crtl merged 3 commits into
collagen-baselinefrom
fix-persistent-approval-highlights
Nov 19, 2026
Merged

KneeKin-crtl merged 3 commits into
collagen-baselinefrom
fix-persistent-approval-highlights

Conversation

@KneeKin-crtl

Copy link
Copy Markdown
Owner

Summary

Fix left-click approvals that saved successfully but left the fiber red. The overlay previously depended on measurement eligibility rather than the saved approval decision.

Changes

  • Display approved masks using a bright green (#00FF00) tint at 60% opacity.
  • Highlight the exact segmentation mask while preserving the original image beneath it.
  • Preserve approvals through redraws, zooming, panning and reopening saved reviews.
  • Support multiple approved fibers without changing neighboring objects.
  • Preserve right-click rejection, toggle mode and Undo/Redo.
  • Clearly display the active Review or Outline mode.
  • Add optional click diagnostics and improved browser-test failure reporting.
  • Export review_approved separately from numerical measurement inclusion.
  • Add review_overlay.tiff while retaining the measurement-based count_overlay.tiff.

Measurement safeguards

Green confirms approval; an approved object with unavailable or ambiguous geometry remains NOT counted, with its QC reason preserved.

Segmentation, fiber IDs, calibration, length and diameter calculations remain unchanged. Missing measurements are never fabricated.

Validation

  • 190 tests passed on Python 3.12 and Python 3.15.2.
  • Latest Windows build and packaged browser checks passed.
  • Verified exact-mask selection, background handling, multiple approvals, zoom/pan, redraws, reopening, repeated approval/rejection and exports.
  • Tested the reported fibers 1190 and 1855: both retain green approval while their unavailable measurements remain excluded.
  • Confirmed original pixels and raw measurements remain unchanged.

These checks verify software behavior; scientific measurement accuracy still requires independent validation.

@KneeKin-crtl
KneeKin-crtl merged commit 49956af into collagen-baseline Nov 19, 2026
7 checks passed
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.

1 participant