Repository navigation
Conversation
… 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.
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.
✅ 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
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.
Volumes without a fitting declared modality now render visibly in 3D by default, and the 3D Rendering panel can reset color and opacity to the selected preset.
Default preset
MR-Defaultinstead ofCT-Coronary-Arteries-2. CT and US are unchanged.CT-AAAwhen their minimum is at or below -500, as for untagged CT such as NIfTI, and otherwise toGrayscale.Fitted presets
Grayscale, the colormaps, and now the MR presets) map onto the image's 1st to 99th percentile range, from the image statistics already computed for window/level auto ranges. Until those exist, as while a series streams, the data range is used, and the preset is refit when they arrive unless its color or opacity was edited in the meantime.Grayscalegets an opacity ramp, transparent at the bottom of the fitted range and opaque at and above its top, and is listed in a new Generic group.Controls
Opacity points in the state file gain an optional
fitRange. State files saved with an MR preset keep their color range, but their opacity curve is now read relative to the image instead of in fixed units.