Applied a deliberately constrained VOI range #2579
Open
+5
−2
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.
Context
bugfix for #2458
I went through the code and saw that
1.Neither button changes window width/center
2.Neither button resets or constrains the VOI range
3.The WindowLevelTool continues to dominate visual behaviour ( Window/Level interaction is enabled by default via WindowLevelTool)
So visually:
Buttons don't change anything upon clicked
Dragging causes contrast change in all cases
The difference between linear and sigmoid LUTs is subtle
Users reasonably conclude “nothing changed”
Why does no button appear “active”?
Button state is not tracked , No UI feedback exists , No overlay or label indicates the active VOI mode
So even though internal state does change, the UI gives zero confirmation.
Changes & Results
User get the direct feed back of change when explicitly setting voiRange: Input range becomes fixed. Only the mapping function changes. The effect of the LUT becomes observable
It makes Sigmoid VOI perceptually distinguishable
By constraining voiRange:
Linear VOI → harsh clipping + uniform contrast
Sigmoid VOI → smooth transitions + mid-range emphasis
It creates an immediate, visible response to button clicks
Testing
User can go to the same volumesigmoidexample and click either buttons .Change is directly visible and they can still do drag operations
Checklist
semantic-release format and guidelines.
Code
etc.)
Tested Environment
OS:Winodws
Browser :Chrome and edge