# Window width/level range calculation

**URL:** <https://discourse.slicer.org/t/window-width-level-range-calculation/19010>\
**Category:** Support\
**Tags:** python\
**Created:** [August 1, 2021, 7:16am UTC](https://discourse.slicer.org/t/window-width-level-range-calculation/19010 "2021-08-01T07:16:27Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Post date:** [August 1, 2021, 7:33pm UTC](https://discourse.slicer.org/t/window-width-level-range-calculation/19010/3 "2021-08-01T19:33:46Z")

</div>

Window/Level based on selection area is discussed at [Feedback requested: How to improve mouse interaction in views? - #12 by lassoan](https://discourse.slicer.org/t/feedback-requested-how-to-improve-mouse-interaction-in-views/6420/12)

Auto Window/Level was changed from a histogram bimodal analysis to a fixed percentile based method. It was updated in Slicer as [ENH: Improved automatic scalar volume display window/level computation · Slicer/Slicer@bc0d938 · GitHub](https://github.com/Slicer/Slicer/commit/bc0d938c639cb7c3d87a816cf24b3be73542c09b)

---

_[View the full topic](https://discourse.slicer.org/t/window-width-level-range-calculation/19010)._
