Repository navigation
Conversation
This was referenced Nov 13, 2026
PaulHax
force-pushed
the
volume-opacity-histogram-range
branch
from
November 13, 2026 03:53
325940a to
20be1f3
Compare
PaulHax
force-pushed
the
volume-opacity-histogram-range
branch
2 times, most recently
from
November 14, 2026 20:17
7098eb5 to
9c80581
Compare
…ity range The opacity editor binned its histogram, and drew its color bar, over the raw scalar range while the curve spans the opacity mapping range. Fitted presets map onto a narrower robust range, so a far outlier collapsed the histogram into one bin. Bin a fixed-size sample over the opacity range instead, which also replaces the per-image worker pass that stalled the main thread on large volumes and could finish after a newer request.
An integer range narrower than the editor's 256 bins left empty bins between levels, drawing the histogram as a comb.
PaulHax
force-pushed
the
volume-opacity-histogram-range
branch
from
November 15, 2026 09:33
9c80581 to
cdfdb82
Compare
✅ Deploy Preview for volview-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
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.
Builds on #1029. Part of the series replacing #1003.
The opacity editor drew its histogram and color bar over the raw data range while the opacity curve uses the opacity mapping range. With #1028 those can differ, so an outlier could flatten the histogram and leave the color bar a single color.
The histogram is now binned over the opacity mapping range from a fixed-size sample of the scalars, and it updates when the image, preset, or range changes. Sampling also removes the full-array pass that blocked the main thread on large volumes, and the synchronous update cannot be overwritten by an older result.
On volumes larger than the sample size the histogram is an estimate from the sample.