Skip to content

Spine Contour v1.7.0

Choose a tag to compare

@github-actions github-actions released this 15 Nov 16:32
4eea101

Spine Contour 1.7.0

This release carries PR #84. Auto detect now finds the cervical and lumbar regions with a region detector and reads
the crops it frames; the orientation search and the whole-film view classifier are gone. A new Mark crops tool lets
a person frame the crops by hand when the detector misses a region.

Auto detect: the region detector, then the models

  • A two-class YOLO26-s region detector (cervical, lumbar) replaces the crop detector. Its boxes, at a score of at least
    0.15, route the film: both regions found reads it as full spine, one region reads that region, and neither asks for a
    region.
  • On a full-spine film the same boxes frame the crops: four square cervical crops for the anatomical cervical model,
    and seven lumbar crops, each extended 15% upward as in 1.6.1, followed by the same crop agreement and S1 check. The
    femoral crop is framed from the S1 endplate at 1.6.1's proportions.
  • The anterior side comes from the landmark models' own anterior and posterior labels. A film read as right-facing is
    mirrored once and read again, since the models are more accurate facing left; if the mirrored read finds nothing
    that agrees, the first read is kept.
  • Removed: the two-orientation mirrored crop search and its "orientation is uncertain" stop, the whole-film view
    classifier with Settings → Automatic view selection and the "Check film type…" button, and Settings → Crop method.

When the detector misses a region

  • If the detector gives no box for a region, or the crops around its box disagree, that region is searched for as
    1.6.1 did: the neck on the upper film with the cervical detector and the anatomical cervical model, the lumbar spine
    with the S1 localizer. A film set to Full spine by hand therefore reads what 1.6.1 read. Films that read from the
    boxes never run these searches.

Mark crops

  • A new tool on the Analysis toolbar. Click S1's two superior corners to frame the lumbar crop, and/or the top of C2
    and the bottom of C7 to frame the neck (a neck mark runs the film as full spine). The stage shows the crops the last
    run used and the crop each mark will give.
  • Run with marks saves the marks with the study and segments the film again. Changing the region clears them.
  • Marks only frame the crops; crop agreement and the S1 detector still decide the anatomy.

Verification

The merged tree is identical to PR #84's head, whose Windows and macOS release builds passed (each runs the backend and
renderer suites and verifies the packaged models). On a Windows workstation, on that tree: 1,265 desktop tests passed;
734 backend tests passed and 3 were skipped; every packaged model, the new region detector included, loaded and matched
its recorded checksum. The build was also tried by hand in a separate profile before release.

PR #84 reports, against four human readers on 99 full-spine films (mean absolute difference to the reader mean, on the
films both versions measured):

Measure Films 1.6.1 1.7.0
C2–C7 Cobb 74 5.23° 4.87°
C2–C7 SVA 77 1.47 cm 1.35 cm
L1–S1 lordosis 85 3.63° 3.23°
Sacral slope 85 2.61° 2.53°
Pelvic tilt 79 1.24° 1.19°
Pelvic incidence 79 2.82° 3.08°
Global SVA 73 2.97 cm 3.03 cm

Pelvic incidence and Global SVA are slightly worse. All seven measurements are read on 86 of the 99 films (1.6.1: 87).
The detector routes 95% of 157 annotated public (PMC) films correctly, and 70 of the 194 public full-spine films 1.6.1
stopped on now read. These are software checks, not clinical validation. Merging the release PR to main publishes
v1.7.0.

Compatibility

  • A library written by 1.6.1 loads unchanged, and a film segmented by 1.6.1 keeps its result until it is run again.
  • Crop marks are a new optional field on the study record (no store version change). 1.6.1 opening a 1.7.0 library
    ignores the marks and loses them the next time it saves the library. Results record the marks they were run with.
  • The retired Automatic view selection and Crop method preferences are dropped from saved settings. The backend still
    accepts their form fields from older clients and ignores them.
  • No change to the label record or the CSV exports. The macOS build remains unsigned.

Source: 4eea1015ee337aa6f79bef503bd51a9b0d435031 on main.