Repository navigation
Conversation
✅ Deploy Preview for volview-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This was referenced Nov 17, 2026
PaulHax
force-pushed
the
volume-fitted-defaults
branch
from
November 21, 2026 21:59
1962e3f to
5589385
Compare
… percentiles Volumes without a fitting declared modality now default to a visible 3D rendering instead of the CT-AAA Hounsfield preset. - DICOM MR defaults to MR-Default. Other images default to CT-AAA when their minimum is at or below -500 (untagged CT), otherwise to Grayscale. - Presets without an absolute range map onto the image's 1st to 99th percentile range from the image statistics, falling back to the data range until those are computed. A preset applied on the fallback is refit once they arrive, unless its color or opacity was edited meanwhile. - MR presets map their effective range onto that fitted range, since MR intensities have no standard scale. Hounsfield presets are unchanged. - Grayscale ramps from transparent at the bottom of the fitted range to opaque at and above its top, and is listed in a Generic group. - The opacity editor keeps the data range as its axis for every preset and holds the end values past the end points, matching the 3D rendering. - Preset thumbnails use the fitted range and rerender once it is known.
PaulHax
force-pushed
the
volume-fitted-defaults
branch
from
November 21, 2026 22:30
5589385 to
3a663cf
Compare
Adds a reset button beside the Shift and Width sliders in the 3D Rendering panel. It reapplies the selected preset, restoring the opacity curve, Shift, and Width for the current image while keeping the palette and lighting settings.
…range The Shift and Width sliders took their step from the image data range and Width had a fixed minimum of 1. For data narrower than 1, such as normalized floats, Width was pinned and could not narrow the range, and Shift showed a nonzero value when unshifted. Step and bounds now come from the preset's color range: the step is at most 1/256 of it, Width starts at one step, and Shift bounds are whole steps either side of zero. Ranges 256 or wider keep a step of 1.
PaulHax
force-pushed
the
volume-fitted-defaults
branch
from
November 22, 2026 03:06
3a663cf to
ce0be3c
Compare
This branch has not been deployed
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.
Replaces #1027, #1028, #1029, #1030 and #1031 with a smaller design.
Problem
The default 3D preset assumes CT. Any volume without a DICOM CT, MR or US tag gets
CT-AAA, whose color and opacity are pinned to Hounsfield units, and DICOM MR getsCT-Coronary-Arteries-2, also a Hounsfield preset. MR, PET, NIfTI, normalized floats and similar data mostly fall outside those values, so the 3D view often opens empty or unreadable. The presets that do follow the data (Grayscaleand the colormaps) stretch over the full min to max, so a few outlier voxels wash the rest out.Default preset
CT-AAAUS-FetalCT-Coronary-Arteries-2MR-Default, fittedCT-AAACT-AAAGrayscale, fittedFitted presets
Grayscale, the colormaps, and now the MR presets) map onto the image's 1st to 99th percentile range instead of its min to max. The percentiles come from the image statistics already computed for window/level. Until they exist, as while a series streams, the data range is used, and the preset is refit when they arrive unless the user has edited color or opacity in the meantime.Grayscalegets an opacity ramp, transparent at the bottom of the fitted range and opaque at and above its top, and moves to a new Generic group.Smaller fixes in the 3D Rendering panel
State files
The state file format is unchanged. The fitted range is recomputed from the image when a session loads, not saved. State files saved with an MR preset keep their color range, but their opacity curve now follows the image's fitted range rather than fixed units.