Skip to content

Prescribe on the exam's series and view them, as a scanner console does - #18

Closed
mcencini wants to merge 2 commits into
gateway-routes-repliesfrom
console-planning
Closed

mcencini wants to merge 2 commits into
gateway-routes-repliesfrom
console-planning

Conversation

@mcencini

@mcencini mcencini commented Oct 8, 2026

Copy link
Copy Markdown

Stacked on #.

In console mode, MaRGE now has a GE-like single screen: graphic Rx on the exam's series, a series viewer, and the sequence form split into tabs.

Planning. Three views each show an image of a series they choose, with a slider through its images.

  • Each view draws the selected sequence's prescription from the DICOM geometry, in the patient's LPS frame: the FOV as a box on a view facing the slices, each slice as the line it cuts across a view, a 3D slab as one box, and the saturation bands as shaded areas.
  • Handles move the stack, turn it into an oblique, and resize the box. A diamond at each end of the stack drags slices on or off.
  • Each band has handles that move it along its normal, set its thickness, and turn it about the view's normal.

Two-way binding. A drag writes the sequence's values, held to each entry's range and step, and shows them in the form; a typed value redraws the views. Orientation is a plane, an in-plane turn and two tilts, plus a centre along L, P and S.

Series viewer. Below the views, the exam's series can be browsed slice by slice. A run's history entry shows its series there.

Bands and slabs.

  • Saturation follows pulserver's explicit bands: up to six, each turned on by its bit of exsat_mask and placed by normal, position and thickness.
  • A 3D sequence's slab is its locations times their thickness.
  • The imaging mode a plugin states is shown read-only.

Tabs. The Image tab holds geometry and matrix, the Sequence tab acceleration and everything else, and the Others tab the user entries, by their user<N>_name. Tabs scroll when they overflow, and an empty tab is hidden.

Goes with pulserver/pulserver#241–#244 (stated imaging mode, slab, user entries, explicit bands). It reads any listing, so it works before those land.

Test plan

  • unit: test_console_geometry.py, test_console_prescribe.py, test_console_workspace.py, test_pulserver_console.py (83 passed)
  • browser suite against the dev console (7 passed), with screenshots of epi2d bands and a gre3d slab

🤖 Generated with Claude Code

mcencini and others added 2 commits October 8, 2026 14:33
In console mode the figures give way to a workspace: three views to prescribe
on, each showing an image of a series it chooses with a slider through its
images, above a viewer of the exam's series; a run's history entry shows its
series there. The views draw the selected sequence's prescription where it
lies on their image, from the DICOM geometry in the patient's LPS frame: the
field of view as a box on a view that faces the slices, each slice as the
line it cuts a view across them, a 3D slab as one box, and the saturation
bands as shaded areas. Handles move the stack in a view's plane, turn it
about the view's normal into an oblique, resize the box, drag slices onto or
off either end, and move a band or set its thickness. A drag writes the
sequence's values, held to each entry's range and step, and shows them in
the form; a value typed redraws the views.

The prescription is an orientation, an in-plane turn, two tilts and a centre
along L, P and S, beside the plugin's own geometry entries; MaRGE's fov and
dfov stay as the values it keeps with a run. The image tab holds the
geometry and the matrix, the other tab the user entries named by their
user<N>_name, and the sequence tab the rest; a tab scrolls when it overflows
and an empty one is not shown. An imaging mode the sequence states is not
offered for editing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…the slab of a 3D sequence

The console's saturation bands follow pulserver's explicit bands: up to six,
each turned on by its bit of exsat_mask and placed by its normal along the
physical axes, its centre's distance from the isocentre and its thickness. A
view shades each where it crosses the view, with handles that move it along
its normal, set its thickness and turn it about the view's normal, keeping
the point turned about on its centre plane. A 3D sequence's slab is its
locations times their thickness, as the plugins now state, and the imaging
mode they state is not offered for editing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@mcencini
mcencini deleted the branch gateway-routes-replies October 8, 2026 15:20
@mcencini mcencini closed this Oct 8, 2026
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