Skip to content

Releases

Spine Contour v1.8.0

Choose a tag to compare

@github-actions github-actions released this 17 Nov 20:25
5df84e0

Spine Contour 1.8.0

This release adds flags on films, and carries PR #86 (set the region of several studies at once) and PR #85 (a new
README). The models and the backend are unchanged.

Flags on films

  • A flag is a short label of your own on a film: 1 to 40 characters, up to 20 per film. A comma, a semicolon or a line
    break ends one, a leading # is dropped, and two flags that differ only in capitals are the same flag.
  • Find tab. A new FLAGS column, last in the list. Click a film's cell to edit its flags in place: type to add, pick
    from the flags already in use, Esc cancels. The column's header menu filters the list by flag (films with any ticked
    flag, or with every one, and No flags); the list also sorts by FLAGS and the search box finds a flag.
  • Flag N selected on the Find bar opens a list for every ticked film: each flag in use shows how many of them hold
    it, a tick puts it on all of them or takes it off, and a new flag can be typed. A segmentation run does not block it.
  • Analysis screen. A flags block above the comment in the side panel, with the same editor.
  • Parameters tab. A read-only FLAGS column and a flag dropdown (All flags, each flag in use, No flags) that
    narrows the grid and so both exports.
  • Comments are as they were.

Flags in the exports, bundles and the label record

  • Export CSV gains a Flags column after Note: the film's flags in the order they were added, joined with ; ,
    empty for a film with none. It is always written, so every column after Note sits one place further right than
    in 1.7.0.
  • Export paired CSV gains a <visit> flags column for every visit, after the film dates.
  • Bundles carry each film's flags. An import adds the incoming flags to the film's own and never removes one; a
    flag that matches one already in the library takes the library's spelling.
  • The label record gains an optional flags list after comment. A change to a film's flags rewrites only that
    list in an existing record: saved_at, app_version and the annotation are left as they were.

Set the region of several studies at once (PR #86)

  • The Find bar gets Set region of N… beside Delete, Export and Flag. It sets Auto detect, Lumbar, Cervical or Full
    spine on every ticked, visible study, as the Analysis screen's Region select does on one film.
  • A changed study loses its result, so Segment N selected runs it again with the new region. Studies already set to
    that region are left as they are, results included. A film's flags are kept.
  • A change that would clear saved results asks first; one that clears nothing applies at once with a message.
  • It is unavailable during a run, a batch, a delete or an import, and when studies are not being saved.
  • Two changes on top of the pull request: a changed study also loses its crop marks, as 1.7.0's Region select clears
    them; and the prompt reads "1 of their saved results", not "result".

README (PR #85)

  • The README has the website's logo, a table of what each film type measures, an accuracy summary, download and
    quick-start sections, and the detailed usage reference folded into collapsible blocks.

Verification

On a Windows workstation, on the release tree, from source: 1,328 desktop tests passed. The in-app suites, driven over
the DevTools protocol on a scratch profile with invented films, each on its own launch, all passed: the Find list and
its bar (309 checks), reviewer navigation (180), the Parameters tab (87), the level editor (202), persistence (46, then
60 after a restart), bundles across two profiles (19, 24 and 37), the Region select (16) and a 400-film scale probe
(35). At 400 invented films a keystroke in a FLAGS cell took about as long as one in the search box (61 ms against
59 ms), and a 300-film bulk change reached the list in under a tenth of a second and its 300 label records in under a
second.

Not run on this tree: the backend suite (no backend file changed; the release build runs it), a packaged build, and
anything on real radiographs. These are software checks, not clinical validation. Merging the release PR to main
publishes v1.8.0.

Compatibility

  • A library written by 1.7.0 loads unchanged. Flags are a new optional field on the study record (no store version
    change).
  • An earlier version drops flags. 1.7.0 opening a 1.8.0 library removes its flags the next time it saves, and
    ignores a bundle's flags on import.
  • CSV readers that count columns see every column after Note move by one, and the paired file gains a
    <visit> flags column per visit.
  • Label records keep the schema id spinecontour.segmentation-label/1 and gain the optional flags list. The
    published schema file (docs/design/level-editor/label-record.schema.json) allows it; a validator still using the
    earlier file rejects a record that has flags until it takes the new one.
  • The bundle format (spinecontour.bundle/1) is unchanged. The macOS build remains unsigned.

Known limits

  • An import that would take a film past 20 flags keeps the first 20, the film's own first, and does not say so.
  • Text left in a flag box is saved as a flag when the window loses focus, as a subject typed in place is.
  • A quit partway through a large bulk change can leave some label records with their earlier flags; the library is
    right, and each record is corrected the next time that film's flags change or its record is saved.
  • There is no rename: a misspelt flag is fixed by filtering to it and using the Flag list.

Source: 5df84e0af578e8faabab30b24e655735c3663ad4 on main.

Current Windows build (v1.8.0)

Choose a tag to compare

@github-actions github-actions released this 09 Sep 16:28
5df84e0

Windows installer from v1.8.0. Source commit: 5df84e0.

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.

Spine Contour v1.6.1

Choose a tag to compare

@github-actions github-actions released this 29 Oct 22:41
a889b07

Spine Contour 1.6.1

This release carries PR #79, one fix to 1.6.0: on a full-spine film the lumbar crops keep L1's superior endplate in
view again. The models, the decoders and every other path are unchanged.

Lumbar crops on full-spine films

  • To read the lumbar spine on a full-spine film, the search tries seven crops around the region it located (small
    shifts and scale changes) and keeps the ones the models agree on. 1.5.0 read the lumbar measurements from crops
    extended upward by 15% of their height, so that L1 stays inside them. 1.6.0 went back to 1.4.0's pipeline without
    that margin, and some crops cut off L1's superior endplate, which gave large lordosis errors.
  • Now every crop is extended upward by 15% of its height before the models read it; its sides and bottom stay where
    they were, and the extension stops at the top of the film. The unextended crops are no longer tried.
  • The same search runs when Auto detect classifies a film, so its orientation evidence comes from the extended crops
    too. A lumbar-only film is read by a different search and is unchanged from 1.6.0.
  • A film segmented by 1.6.0 keeps its result until it is run again.

Verification

1,258 desktop tests on the merged tree, unchanged from 1.6.0 (no desktop code changes). The merged tree is identical to
PR #79's head, whose Windows and macOS checks passed: both release builds, each running the backend and renderer
suites and verifying the packaged models. PR #79 replaces one backend test with two (the seven extended crops of a
sample window, and the extension stopping at the top of the film without moving the bottom) and reports 104 targeted
backend tests passing. On 99 real full-spine films, with four human readers and the same automatic localization, orientation and
cervical predictions before and after, it reports:

Measure 1.6.0 1.6.1
L1–S1 lordosis, mean disagreement with readers (same 93 films) 6.29° 4.49°
Films with L1–S1 lordosis 93 of 99 97 of 99
Films with all seven measurements 83 of 99 87 of 99
Global SVA, mean disagreement with readers (same 76 films) 3.15 mm 3.30 mm

The cohort has been used in earlier evaluations, and the comparison checks the crop change, not the whole automatic
run from a fresh start; some landmark outliers remain. The smoke suites and a Windows GPU run were not done. These are
software checks, not clinical validation. The release workflow runs the backend and renderer suites and builds and
verifies the Windows and macOS installers before publication; merging the release PR to main publishes v1.6.1.

Compatibility

No change to the study record, the label record, the CSV exports or the bundles. A library written by 1.6.0 loads
unchanged, and the other way round. The macOS build remains unsigned.

Source: a889b07ab1abe063f9954dbfb56a9e259fe3fd22 on main.

Spine Contour v1.6.0

Choose a tag to compare

@github-actions github-actions released this 26 Oct 11:05
5f3dfcd

Spine Contour 1.6.0

This release carries PR #77: the measurement pipeline goes back to the one 1.4.0 had, with fine-tuned models in it.
1.5.0's fixed seven-measurement pipeline is removed. A film segmented before 1.6.0 keeps its result until it is run
again; a new run uses this pipeline and these models and may give different numbers.

The pipeline

  • Lumbar, cervical and full-spine films are read by 1.4.0's regional paths: crop search, the S1 detector and the
    lumbar landmark model on a lumbar film, the anatomical cervical model on a cervical film, and both on a full-spine
    film. 1.5.0's subpixel decoders, its per-measurement routes (geometry.measurement_sources) and its graphs
    lumbar_heatmaps and cervical_slope_hrnet are removed.
  • On a full-spine film the neck is now located with the same anatomical cervical model a cervical film uses, in place
    of the image-sided cervical HRNet. Its anterior and posterior points keep their identity when the film is mirrored;
    crop agreement and the orientation thresholds are unchanged.
  • Settings → Processing → Crop localizer Off skips the crop search on a lumbar film again, and Toolbar removal
    removes a detected bottom PACS toolbar again, as before 1.5.0. A lumbar result carries the U-Net body mask again.
  • The CPU/DirectML runtime of 1.5.1 stays, with a processor saved as cuda:GPU-… read as CPU.

Models

Model 1.4.0 1.5.x 1.6.0
S1 detector (Keypoint R-CNN) original fine-tuned fine-tuned, as 1.5.x
Anatomical cervical HRNet original fine-tuned, epoch 16 fine-tuned, epoch 16, with the original decoder
Lumbar landmark HRNet original fine-tuned, epoch 1 an updated checkpoint (PR #77, 129dc01)
U-Net vertebral model original, default removed original; HRNet is the default
Femoral U-Net, cervical detector original original original
Region detector, view classifier original fine-tuned region detector original

The vertebral model is a choice in Settings again: HRNet, the default, or U-Net. The lumbar HRNet checkpoint is
different from both 1.4.0's and 1.5.x's, and PR #77 gives no training notes or measurements for it. 1.5.0's training
notes for the other fine-tuned weights are kept at the v1.5.0 tag:
annotated-data fine-tuning.

Results from 1.5.0 and 1.5.1

A film segmented by 1.5.0 or 1.5.1 keeps its stored result and reads as it did: the Analysis header labels its model
HRNET, a cervical film keeps its cervical review reasons (without this, it would have been told to check an S1 endplate
it does not have), and PT and Global SVA are drawn, and Global SVA computed, from the anchors those values were
measured with. Editing such a film measures it again from the shared S1, hip and C7 points, the only ones this
pipeline reads. Run it again to read it with 1.6.0's pipeline and models.

Verification

1,258 desktop tests on the merged tree (1,253 in 1.5.1; five new ones cover 1.5.x results: the model label, the
review reasons, the per-measurement anchors for drawing and for Global SVA, a moved anchor taking precedence, and the
re-measure dropping the anchors). PR #77's checks passed on its head: the Windows and macOS release builds, each
running the backend and renderer suites and verifying the packaged models. PR #77 reports 774 backend tests passing on
its validation server and 142 more on Python 3.12; the full-spine neck adapter matching the standalone cervical
model's coordinates on five real films; and five real full films through the API, of which one gave cervical and
lumbar landmarks, two cervical only, and two no result because the automatic orientation was uncertain. These show the
pipeline runs as intended, not that it is more accurate. Not done: the Windows GPU (DirectML) check that PR #77's
author asked for before release, a reproduction of the GPU failure reported against 1.5.0, and the smoke suites. These
are software checks, not clinical validation. The release workflow runs the backend and renderer suites and builds and
verifies the Windows and macOS installers before publication; merging the release PR to main publishes v1.6.0.

Compatibility

No store version bump. The study record, the label record, the CSV exports and the bundles keep their format, and a
library written by 1.5.1 loads with its results read as described above. Opening a library 1.6.0 has written in an
earlier build was not tested. The macOS build remains unsigned.

Source: 5f3dfcddcc2bd0d9ee8a87b84aff682204c8d569 on main.

Spine Contour v1.5.1

Choose a tag to compare

@github-actions github-actions released this 25 Oct 18:57
4836e70

Spine Contour 1.5.1

This release carries PR #74, which takes GPU processing back to the 1.4.0 runtime after reports of processing failures
with 1.5.0's GPU additions. The fine-tuned models, the subpixel decoders and the measurement routes that 1.5.0 brought
are kept unchanged, so a film gives the same result as on 1.5.0.

GPU processing

  • Removed: the CUDA runtime and its NVIDIA device list, the adaptive crop batches that halved after an out-of-memory
    error, the out-of-memory retries that released other models, and the four-image S1 detector graph
    (backend/onnx/s1_batch.onnx). backend/gpu_batch.py, backend/requirements-cuda.txt, tools/export_s1_batch.py
    and tools/probe_cuda_oom.py are gone.
  • Every model call runs one crop at a time, the lumbar heatmap and global-SVA landmark graphs included, and a
    cancelled run stops before the next call. The model session cache holds four models again, as in 1.4.0.
  • On Windows, a DirectX 12 GPU still runs the models through ONNX Runtime's DirectML build only after its outputs pass
    the parity check against the CPU, and a GPU error still runs the film again on the CPU. macOS runs on the CPU. See
    GPU processing and
    fixed measurement pipeline.
  • A processor saved as cuda:GPU-… by the 1.5.0 NVIDIA preview is read as CPU when the app starts; the other
    processing settings (mode, threads and the rest) are kept.
  • A result no longer records qc.processing.batches.
  • The Windows preview workflow builds the DirectML preview installer only. The NVIDIA preview ZIP and the workflow's
    pull-request trigger are removed.

Verification

1,253 desktop tests on the merged tree (1,252 in 1.5.0; the new one covers the cuda:GPU-… migration).
PR #74 reports, on a real full-spine film with the same saved localization before and after the rollback, identical
landmarks, measurements, framing and model identities, with every model call at batch size one; this checks that the
rollback runs the same models the same way, not their accuracy. PR #74's Windows check failed on one backend test,
test_real_directml_invalid_adapter_aborts_without_fallback, which the rollback had pointed back at
backend/onnx/vertebra.onnx, the lumbar U-Net graph 1.5.0 removed; the release branch restores it to hrnet.onnx, as
1.5.0 had it. The reported GPU failure has not been reproduced on Windows GPU hardware, and the smoke suites were not
re-run. These are software checks, not clinical validation. The release workflow runs the backend and renderer suites
and builds and verifies the Windows and macOS installers before publication; merging the release PR to main
publishes v1.5.1.

Compatibility

No change to the study record, the label record, the CSV exports, the bundles or the models. A library written by 1.5.0
loads unchanged, and the other way round. The macOS build remains unsigned.

Source: 4836e706cd011f4794a2183b9b2b9d0e4173e1c4 on main.

Spine Contour v1.5.0

Choose a tag to compare

@github-actions github-actions released this 25 Oct 13:46
9e6241e

Spine Contour 1.5.0

This release carries PR #72: fine-tuned spine models and one measurement pipeline for lumbar, cervical and full-spine
films, with an NVIDIA GPU runtime as a preview. Apart from the model list in Settings, the desktop app's screens are
unchanged. A film segmented before 1.5.0 keeps its result until it is run again; a new run uses the new models and may
give different numbers.

Fine-tuned models

  • The cervical and lumbar landmark models (HRNet), the S1 detector (Keypoint R-CNN) and the optional region detector
    start from their earlier weights and are fine-tuned on annotated films, with the original training data mixed in.
    Cervical training uses 4,506 images, 39 of them annotated cervical films and 36 annotated full-spine films; lumbar and
    S1 training use 4,423, 55 of them annotated lumbar films and 40 annotated full-spine films. Cropping, mirroring,
    rotation, scaling, translation and intensity augmentation are on; a landmark cropped out of view is left out of the
    loss. The femoral U-Net, the cervical localization models and the view classifier are unchanged.
  • The results are mixed. Against the preceding cervical checkpoint, the bundled one fits the annotated films far more
    closely (39 cervical films: landmark error 5.80 → 2.60 px, C2–C7 Cobb 3.44° → 1.43°; 36 full-spine films in saved crop
    mode: 15.52 → 3.12 px, 5.73° → 1.77°), but those films are training data, so this is fit, not accuracy on unseen
    patients. On the 20-patient cervical validation panel, which took part in checkpoint selection, the Cobb error moves
    4.60° → 4.90°; on the held-out 541-image lumbar test split, the S1 slope error falls 2.42° → 2.30° and the L1–S1
    lordosis error rises 3.38° → 3.51°. Difficult vertebral levels and obscured cervical landmarks still go wrong.
  • Data, selection rules, hashes and every figure are in annotated-data fine-tuning and
    its aggregate results.

One measurement pipeline

  • Lumbar, cervical and full-spine films go through one fixed pipeline (fixed measurement
    pipeline
    ), revision seven-measurements-20261023. Landmarks are decoded to subpixel positions
    (a 9 × 9 weighted neighbourhood around each heatmap peak) before they are mapped back to the film. The measurement
    definitions are unchanged.
  • The vertebral bodies are read by HRNet only. The lumbar U-Net segmentation model is removed, and with it the
    vertebral-model choice in Settings, which now shows each structure's model as fixed. A lumbar result, like a
    cervical or full-spine one before it, carries no segmentation mask; its outlines are drawn from the landmarks. A
    result the U-Net produced before 1.5.0 is still labelled U-Net in the Analysis header.
  • Pelvic tilt and global SVA keep their own anchors, from crops chosen for them, in geometry.measurement_sources; the
    viewer draws and the backend measures each from the same source. Moving a shared S1, hip or C7 anchor by hand makes
    that edit take precedence over the automatic source, and a reset restores the original geometry.
  • Settings → Processing → Crop localizer and Toolbar removal no longer change processing. Both are still saved
    and recorded with each result as requested (qc.processing.requested_crop_localizer,
    qc.processing.requested_toolbar_removal), but the pipeline always runs the crop search on lumbar and full-spine
    films and segments every film as uploaded, toolbar included. Both switches are still shown in Settings.

NVIDIA GPU processing (preview)

  • An NVIDIA (CUDA) runtime, backend/requirements-cuda.txt, lists each NVIDIA GPU in Settings → Processing →
    Processor
    by its UUID (cuda:GPU-…). On it, crop candidates run in batches that halve after an out-of-memory error;
    a persistent failure runs the film again on the CPU. Batch sizes and retries are recorded in qc.processing.batches.
  • This runtime ships only in a Windows preview ZIP (Spine-Contour-Preview-Windows-NVIDIA), which the preview workflow
    builds as an artifact, on pull requests that touch the GPU runtime files or on request, and never publishes. A
    packaged CUDA build has not yet been tested on NVIDIA hardware.
  • The published Windows installer keeps ONNX Runtime's DirectML build, with its parity check against the CPU, and the
    macOS build runs on the CPU, as in 1.4.0.

Build

  • Every model file (*.onnx, *.pt, *.pth, *.ckpt, *.safetensors) is now stored in Git LFS, the crop-detector
    and view-classifier graphs included. Tracked model assets total about 1,364 MB (983.5 MB in 1.4.0).
  • The Windows workflows try the Tesseract (OCR) install up to three times, 15 s apart, before failing the build.

Verification

1,252 desktop tests on the merged tree, the same count as 1.4.0; PR #72 updates three tests' expectations (the vertebral
model, the store's default and the cervical run's model) and adds none on the desktop side. PR #72 reports the backend
suite passing, 771 tests on macOS (three skipped) and 773 on Windows (one skipped), and its checks on the pull request
built and verified the Windows and macOS packages (the packaged models and OCR) and the NVIDIA preview ZIP. All 99 real
full-spine films in its validation set completed without an inference error, in 5 min 35 s across two GPUs with saved
localization and calibration; against the older AI workbook, C2–C7 Cobb is newly unavailable on 2 of them and newly
available on none, which is a change in availability, not an accuracy result (fixed-pipeline
validation
). The smoke suites were not re-run for this release, and smoke-cervical
now expects the clinical cohort's new dataset name. These are software checks, not clinical validation. The release
workflow builds and tests the Windows and macOS installers before publication; merging the release PR to main
publishes v1.5.0.

Compatibility

No store version bump: the study record, the label record, the CSV exports and the bundles keep their format, and a
library written by 1.4.0 loads unchanged. A result from 1.5.0 adds geometry.pipeline_revision,
geometry.measurement_sources, geometry.source_geometry and qc.processing.batches; opening a library a 1.5.0 build
has written in an earlier build was not tested. A processor saved as cuda:GPU-… by the NVIDIA preview runs on the CPU,
and says so, in a build without the CUDA runtime. The macOS build remains unsigned.

Source: 9e6241e25a27fb87c61bd1f050b48cbec1ca6534 on main.

Spine Contour v1.4.0

Choose a tag to compare

@github-actions github-actions released this 23 Oct 10:37
62f88cc

Spine Contour 1.4.0

A level no longer has to be all of its points or none. When only part of a vertebra is on the film, such as C7 with its
inferior endplate hidden by the shoulders, the annotator places the points that are there, finishes the level with
FINISH, and the app measures what that gives. The points that are missing can be placed later, or an endplate removed;
the label record carries the level with null corners where the points are not on the film.

Placing only some of a level's points

  • A vertebral body, C3–C7 and L1–L5, may be finished with one endplate: SA and SP, or IA and IP. C2 may be finished
    with its inferior pair or its centroid alone. T1, S1, T4 and the femoral heads are unchanged.
  • While a body or C2 is being placed, the edit bar shows FINISH right after FIT (the bar reads FIT, FINISH, UNDO,
    CANCEL, RESET TO PREDICTION, DONE). It is enabled once an endplate, or C2's pair or centroid, is whole and no part is
    half set; its title is Finish with the points placed; the rest are not on this film. A level with one corner of a
    pair cannot finish: place the other corner, or UNDO. A level with every point set still finishes by itself.
  • The level reads Manual (Edited, when the model had placed it) and Place… is still offered. On the film it draws as
    its endplate line, with the model's whole body dashed beneath it if the other endplate was removed; C2 draws as its
    line, its centroid dot, or both.
  • The measurements follow from the points: with C7's superior endplate alone, C2–C7 SVA and C6–C7 segmental lordosis
    read, and C2–C7 Cobb, C6–C7 disc angulation and C7–S1 SVA show —. With C2's centroid alone SVA reads and Cobb and
    C2–C3 show —. With L1's inferior endplate alone the L1–S1 lumbar lordosis and L1PA show —, L1–L2 disc angulation
    reads, and L2–S1 onward read.
  • A result from the model with one endplate, which the cervical segmentation can return, now reads Segmented and draws
    as its line, where it read Not placed and drew nothing.
  • The edit bar's help line box is narrower, so a long help line wraps inside its box instead of the bar taking a second
    row, in every edit-bar state.

C7's centroid

  • C7 stays a vertebral body and gains an optional third part, its centroid, like C2's. The four corner clicks still
    finish C7 by themselves; the centroid is a fifth chip, CENTROID, hollow until placed, and the bar reads
    PLACING C7 · n OF 5. Place it during the placement by choosing its chip, or later by clicking the hollow chip or
    the row's Place…. FINISH accepts a centroid alone, and Delete on the focused CENTROID removes it. A whole C7
    without its centroid counts as partial, so its row offers Place…, which resumes at the centroid step.
  • On a full-spine film the C7–S1 SVA plumb reads from the placed centroid, else from the mean of C7's four corners,
    else shows —, so it reads even when C7 is partial. The model's own C7 centroid is never read back as a placed point.
  • The label record's levels.C7 carries centroid and model_centroid (a point or null) and lists centroid in
    edited_points, under the same schema id; a record saved before this reads with the centroid null.

T1 slope and T4 pelvic angle

  • A T1 superior endplate and a T4 centroid placed by hand are now kept with the film and drawn outside edit mode (T1 as
    a line in its colour, T4 as a cross in its), on every region. They reach the study as t1_superior and t4_centroid,
    and an older study without them reads unchanged.
  • Two measurements read from them, both computed by the backend and shown as stored. T4 pelvic angle (T4PA) is L1PA's
    construction with the T4 centroid: the angle at the hip axis between the lines to the T4 centroid and to the S1
    superior endplate midpoint, unsigned, 0 to 180 degrees, on lumbar and full-spine films. T1 slope is the acute
    angle between the T1 endplate line and the image horizontal, unsigned, 0 to 90 degrees, on cervical and full-spine
    films. The Measurements panel gains T4 PELVIC ANGLE after L1 PELVIC ANGLE and T1 SLOPE after C2–C7 SVA, each
    selecting its construction on the stage; the Parameters grid gains a T4PA and a T1 slope column; the CSV and
    the paired export gain T4PA and T1 slope (deg).
  • A value is a dash (an empty cell in the CSV) whenever an input is missing: T4PA without the T4 centroid, a head or S1;
    T1 slope without the T1 endplate, or with its two points identical; either on a film outside its family. Unchecking
    T1 or T4 names the measurement that goes to a dash. No model places T1 or T4, so a prediction never produces either
    value. A T1 or T4 an older record holds (placed before 1.4.0, when they never reached the study) lands on the study
    at the first Edit, which clears the Reviewed mark like any re-measure. A point hidden, saved and reopened is not kept
    (the record holds it not visible), so it is placed again.

Completing and removing an endplate

  • The chips of a placed body or C2 list every point of its kind, the missing ones with a hollow dot. Clicking a hollow
    chip, or the row's Place…, resumes the placement for that endplate: the bar reads PLACING C7 · 3 OF 4, the
    placed points are filled in, and the next clicks complete the level. UNDO reaches only the new clicks; CANCEL or
    Escape leaves the level as it was.
  • Delete or Backspace with a point of a body or C2 focused removes that point's endplate (C2's centroid, its
    centroid), committed through the measure queue like a drag. It is refused for the level's last part (CLEAR it or
    uncheck it) and for T1, S1, T4 and the heads, and does nothing while a level is being placed, while the window /
    level panel is open or while the study's run is in flight.
  • Outside edit mode a click on a lumbar body's endplate line selects it only for a body with no quadrilateral.

The label record

  • corners of a body and of C2 are nullable by endplate: ia and ip are null for a C7 placed from its superior
    endplate, sa and sp null together for one placed from its inferior; C2's corners is null with a centroid, or
    the reverse. At least one part is present and every key is written; model_corners has the same shape.
  • edited_points of a manual entry lists the keys it holds a point for (["sa", "sp"]), of an edited entry the keys
    that differ from the model's, a removed endplate's included. A C2 placed from its centroid alone writes only
    c2_centroid into the projection and is left out of vertebrae.
  • The schema id is unchanged, spinecontour.segmentation-label/1, with a dated amendment (2026-10-21).
    A second example, label-record.partial.example.json, is a cervical film with
    C7's superior endplate alone and C2's centroid alone.
  • The backend's lumbar validator (POST /measure) accepts a body with one endplate, so a lumbar or full-spine film
    with a partial body measures instead of failing with a 422.

Fixes

  • A level hidden in the editor now stays hidden on the stage. Entering edit mode and Save edits re-apply the levels the
    editor holds hidden or unplaced to the stored geometry when they disagree, for example after a re-measure that
    failed, and the reverse: a level the record holds placed and visible that the study lacks, such as a T1 or T4 placed
    before 1.4.0, lands on the first Edit. Like any other re-measure, this clears the film's Reviewed mark.
  • The mask overlay outside edit mode no longer colours a level the study no longer holds, so an unchecked level stops
    looking segmented.
  • A femoral head cut off at the film's edge no longer blocks every edit of a full-spine film. The editor fits such a
    head to a centre beyond the edge, and the full-spine measure path refused any femoral centre outside the image, so
    the whole measure failed and nothing hand-placed on that film could land (the lumbar path never had that rule). A
    centre now needs finite values only on both paths; the anchors and the vertebral points stay bounded.

Verification

1,252 desktop tests (1,161 in 1.3.1; ninety-one across the level model, the projection and store validator, the
handles, the canvas, plates and hit test, the record, the wiring, the C7 centroid, the measure queue, the rows and
columns and the CSV exports). The levels smoke suite, smoke-levels (phase dom), read 195/195 on a fresh scratch
profile with synthetic films (154 in 1.3.1). Its section 22 holds 21 checks, 16 for the partial endplates (one pins the
Delete suffix on a whole C7's chips) and 5 for the C7 centroid; section 23, the heal, holds 5 (uncheck, Save edits, a
simulated lost /measure, Edit healing it and dropping the Reviewed mark, no unsaved change on entry, DONE without a
prompt); section 24 holds 13 for the T1 slope and the T4 pelvic angle (both heads, T1 and T4 placed by hand on the
full-spine film; the study gaining t1_superior and t4_centroid and finite T1S and T4PA, T1S equal to 11.31
degrees for the placed line; the panel's two rows reading a number outside edit mode; unchecking T4 naming T4PA,
clearing the field and the value and turning the row to a dash; checking it again in the same session returning them;
placing it again after a save; DONE and a reopen keeping both fields; an editor reading them back; the reverse heal), and section 11's T1
toggle check now reads t1_superior null on the study after the commit. smoke-seeding read 36/36 and
smoke-parameters 58/58 with the new export columns. The viewer's overlay cache behind the mask filter has no automated
coverage; its effect is checked by eye at the gate. The partial-endplate checks: a C2 placed from its centroid and
FINISH, a C7 placed from SA and SP with FINISH disabled after one corner and enabled after two, the row reading Manual
with Place… still offered, the chips SA SP filled and IA IP hollow, the study measured as cervical with C2–C7 SVA
finite and Cobb null, the record with null corners and edited_points ...

Read more

Spine Contour v1.3.1

Choose a tag to compare

@github-actions github-actions released this 21 Oct 18:14
946100f

Spine Contour 1.3.1

Three fixes to the Analysis screen: the points of the selected level are listed in the edit bar for every placed
level, not only while one is being placed by hand; a region that Auto detect got wrong can be corrected while a batch
runs over the rest of the library (issue #68); and Run segmentation sits in the same place for every region.

The selected level's points

  • Selecting a level in the Vertebral levels panel, or reaching it with Tab, now lists its points as chips in the edit
    bar, each dot in the colour its handle has on the film: SA SP IA IP for a vertebral body, IA IP CENTROID for
    C2, ANT POST for the T1 and S1 endplates, CENTROID for T4, and P1–P4 for a femoral head's rim points. Every
    dot is filled (the point is there) and the selected point sits on the accent ground. Before 1.3.1 the chips showed
    only while a level was being placed by hand, so a level the model had found, such as L5, listed nothing when
    selected.
  • Clicking a chip arms that point: the bar reads PLACING L5 · SA, the help line names the click, and the next
    click on the film places the point there, committed like a drag. Escape, or the chip again, keeps the point where
    it is; either way the point stays selected, so the arrow keys nudge it (1 px; Shift, 10 px). The help line
    otherwise reads L5 selected — drag a handle to adjust it, or pick a point and nudge it with the arrow keys.
  • Nothing is listed with no level selected, for a level that is unchecked or not yet placed, and while the window /
    level panel is open. A placement in progress keeps its own step chips, which still choose the point the next click
    sets, and once the level is placed the row goes on listing its points.

Correcting a wrong region (issue #68)

  • When Auto detect labels a film wrongly, a cervical film read as lumbar for instance, the Region select on the
    Analysis screen is the way to say so: choosing Cervical clears that result, lists the cervical parameters in the
    Measurements panel and offers Run segmentation. Before 1.3.1 that select, and the Orientation select beside it,
    were disabled with no tooltip whenever any run or batch was in flight anywhere in the library, so a reviewer
    stepping through a library while its batch ran could neither change the region nor the parameters shown.
  • Now only the film's own turn locks the two selects (its run in flight, or next up in the running batch), along with
    edit mode and a demo study, each with a tooltip that says so. A run or batch over other films leaves them live.
    Changing the region still clears the film's result and asks for a run, as before; Run segmentation keeps waiting
    for the batch or the current run to finish, and its tooltip now says which.

Run segmentation in one place

  • Since 1.3.0 an unsegmented lumbar film opened on its X-ray with the UNSEGMENTED strip and its Run segmentation along
    the bottom of the stage, while a cervical, full-spine or Auto detect film showed its preview with the button up on
    the region bar. Now every unsegmented film whose film is on the stage, the preview included, shows the strip with
    the button in it, and the region bar keeps View original and the Region and Orientation selects only. A Failed
    film with its film on the stage shows a FAILED strip the same way (its reason stays in the region note, in red),
    so the toolbar's Edit segmentation stays reachable and the film can be placed by hand; before, the full card's
    scrim covered the toolbar. A film whose preview or X-ray cannot be read keeps the full card with its button, as
    before, so the stage always offers the run.

Verification

1,161 desktop tests (1,147 in 1.3.0; five cover the chips for every kind of level, the selected point and the empty
cases; five cover arming a point and the click that places it, in the level model, the handles and the editor's wiring
through the real store; and four cover what locks the Region and Orientation selects: idle, a demo study, edit mode,
this film's run, another film's run, a batch over other films, the film next up, done, later in the queue, and a
stopping batch). The levels smoke suite, smoke-levels (phase dom), read 154/154 on a fresh scratch profile with
synthetic films, by DOM and store reads only (145 in 1.3.0; the new checks read the chips after a level is placed by
hand, a chip click arming its point, a row selection disarming it, a model-placed level's chips with its first point
selected, an armed chip's label and help, the film click that places the point and commits it, Escape disarming,
REVERT, and a failed Auto detect film opening in edit mode over its FAILED strip). A new suite,
smoke-region-change, read 16/16 on a fresh launch: the Region pick on an Auto detect film with a lumbar result when
idle (the preview on the stage and the strip's Run segmentation enabled, the bar offering View original only) and
under a batch over other films (the strip's button waiting with its tooltip), the lock during the film's own turn,
its run, a stopping batch and edit mode, with batches and runs simulated in the store. The reviewer-navigation suite,
smoke-reviewer, which covers the rest of the Analysis screen, the lumbar strip and the full card of an unreadable
film included, was re-run on the same launch; its count is in the pull request. The other suites,
the backend and the models are unchanged from 1.3.0 and were not re-run. These are software checks, not clinical
validation. The release workflow builds and tests the Windows and macOS installers before publication; merging the
release PR to main publishes v1.3.1.

Compatibility

No change to the study record, the label record, the CSV exports, the bundle or the backend. A library written by
1.3.0 loads unchanged, and the other way round. The macOS build remains unsigned.

Source: 946100f9a7ba58564a837fd2ef6773da612fd222 on main.

Spine Contour v1.3.0

Choose a tag to compare

@github-actions github-actions released this 19 Oct 23:36
eac0eb9

Spine Contour 1.3.0

This release is for reviewing a library of films one after another. The arrow keys step through the Find list from the
Analysis screen, the list filters from its column headers with several ticks at once, a REGION column says what each
film is, an imported film's view is Unknown until someone sets it, and an unsegmented lumbar film opens on its X-ray.

Previous and next

  • On the Analysis screen, Left or Up opens the previous film and Right or Down the next, in exactly
    the order the Find list shows under its search, its header filters and its sort. Beside Back the header carries
    Previous and Next buttons with the film's place between them, 3 / 42, so the mouse can do the same and you
    can see where you are; the two are greyed at the ends, and nothing wraps.
  • A film the filters hide, such as the one you just marked reviewed while the Status menu was ticked for Needs review,
    reads an en dash in place of its number, and its next and previous still step from where it sat, so marking and
    pressing Right goes straight on down the list. The keys are left alone while a text field, a dropdown or a slider
    has focus and in edit mode, where they nudge handles; with focus left on the Region or Orientation select they
    navigate rather than changing the region, which would have wiped the result.

Filters in the column headers

  • Every Find header but STUDY and DATE has a funnel. It opens a menu of the values in your library with a checkbox
    each, All and None above them, and the two sort directions below; several ticks at once are allowed (two
    regions, three statuses), within a column any ticked value matches and across columns every column must match.
    SUBJECT's menu is a text box. An active funnel is coloured and shows its number of ticks, with the ticked values on
    its tooltip. Escape, the menu's close button, a click elsewhere or opening a film closes it; the bar's Workspace,
    Folder and Status dropdowns are gone, and the bar keeps the search box, Delete, Export and Segment.
  • The Status and Region menus always list every status and every region, so a tick stays put when its last
    film changes: with Needs review ticked, marking the last Needs review film reviewed leaves an empty list reading
    No studies match these filters. with Next greyed, not the whole library. The View, Workspace and Folder menus list
    what the library holds. The filters last for the session, like the sort: a trip to a film and back keeps them, and
    previous / next follow them.

The REGION column

  • Between SUBJECT and VIEW, reading Unknown, Lumbar, Cervical or Full spine: the region you set on the
    Analysis screen or in the import table, else the one the run detected, else Unknown. It fills in the moment a run
    finishes, sorts (Unknown last) and filters like the rest. Both CSV exports' Spine region cell reads the same
    label, Unknown for a film with no run. The Analysis header's meta line agrees.

The Unknown view

  • A film's view — the patient position, Standing lateral, Supine lateral, Flexion lateral and so on — used to default
    to Standing lateral on import, which read wrongly on a cervical film and was too much to set per folder. It is now
    Unknown until a folder or file name, the CSV, the import table or the drawer sets it: the import table's VIEW
    selects default to Unknown, the VIEW column, the Parameters grid, the drawer, the Analysis header and the sidebar's
    open-study line read Unknown, the grid's View filter offers Unknown, the CSV writes an empty view cell and reads a
    blank or Unknown cell as Unknown. Films already in your library keep whatever view they have.
  • An Unknown view no longer blocks segmentation. Only a view you set to something non-lateral is refused before a run;
    the run works out whether the film is cervical, lumbar or full spine, and a film it cannot place fails with its
    reason, as before. The run fills in the region, never the view.

Unsegmented films

  • An unsegmented lumbar film opens on its X-ray, decoded from the original at its default window, with the
    UNSEGMENTED notice and its Run segmentation button as a strip along the bottom of the stage instead of a card
    over a dark stage, and window / level available. Auto detect, cervical and full-spine films show the original's
    preview with the run button on the region bar, as before. The region note says when the original cannot be read.
  • Opening a film no longer keeps its file bytes for the session, and the preview or decode starts only once you have
    settled on a film, so stepping quickly through many unsegmented films neither fills memory nor queues work for the
    films you passed.

Fixes

  • Ticking a row far down the Studies list scrolled the whole app off the window: the tick box's hidden input sat at
    the list's content coordinates, outside the list's own clipping, and focusing it scrolled the document. Fixed in the
    tick box's style; the document never scrolls now.
  • Back from a film lands on that film's row, centred in the list, instead of at the top.
  • The REGION column had pushed the Find table past the page column's width, cutting off the Delete control at every
    window (the owner's gate found it). The columns' minimum widths are tightened so the table fits again, and on a
    window narrower than the columns the Delete control stays at the table's right edge instead of behind the scrollbar
    at the bottom of the list.

Verification

1,147 desktop tests (1,110 in 1.2.0; the new ones cover the list's filters, options, normalisation and matching, the
neighbour and position rules, the region key and label, the Unknown view through the gate, the store's validation,
the seeding, the CSV both ways, the batch planner and the bundle's update). A new CDP smoke suite for this screen,
smoke-reviewer, read 131/131 on fresh scratch profiles with synthetic films, by DOM and store reads only: the scroll
fix, the header menus (open, tick, All, None, sort, Escape, a click elsewhere, the active count, the end of a filtered
queue), previous / next by key and by button over the list's own order, the region-bar selects yielding the keys, the
REGION column after a run, the import table's Unknown default, the X-ray and its strip, the missing-film note. On
their own fresh launches the other suites read studies 157/157, parameters 58/58, workspace 100/100, seeding 36/36,
persist 42/42 then 55/55, levels (dom) 145/145 and bundle 17/17, 18/18 and 9/9; the global-sva, cervical, accuracy,
onnx-localizer, processing and partial-segmentation suites and the levels film phase need real films or model runs and
were not re-run. The branch had a whole-branch review whose four findings were fixed and re-reviewed before the gate.
The owner's gate on real films passed, with one round of feedback (the table's width) fixed and re-verified. The
backend is unchanged from 1.2.0, so its suite was not re-run. These are software and integration checks, not clinical
validation. The release workflow builds and tests the Windows and macOS installers before publication; merging the
release PR to main publishes v1.3.0.

Compatibility

The study record's view may now be absent (null) with no store version bump: a store written by 1.2.0 loads
unchanged, and its films keep their views. In the other direction, a library this version has saved with an Unknown
view cannot be opened by 1.2.0, which refuses a record without a view; the same holds for a 1.2.0 library in which a
view had been cleared in the drawer, once this version has saved it. Bundles exported with Unknown views import only
into this version or later (1.2.0 skips those films as malformed); a bundle update keeps your film's view when the
bundle's is Unknown. The list's filters are session-only and never written. The label record and the backend are
unchanged. The macOS build remains unsigned.

Source: eac0eb976f214e8d75cf1f9ea06ba39ee673f202 on main.