# Recent improvements in window/level management

**URL:** <https://discourse.slicer.org/t/recent-improvements-in-window-level-management/7284>\
**Category:** Support\
**Tags:** feature\
**Created:** [June 23, 2019, 1:48pm UTC](https://discourse.slicer.org/t/recent-improvements-in-window-level-management/7284 "2019-06-23T13:48:33Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [June 23, 2019, 1:48pm UTC](https://discourse.slicer.org/t/recent-improvements-in-window-level-management/7284/1 "2019-06-23T13:48:33Z")

</div>

This is a quick summary of image window/level (brightness/contrast) adjustment changes introduced in recent Slicer Preview (formerly known as “Nightly”) releases.

1. Improved automatic window/level algorithm

Images that do not contain preferred window/level information are displayed with automatically computed values. The complex automatic computation algorithm that had been used in Slicer worked marginally better for some images, but sometimes generated too bright images and overall the results were somewhat unpredictable.

The algorithm is replaced by a simpler one, which adjust the window to display intensity values between 0.1 and 99.9 percentiles.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/f/4/f49ecd148e343b274b506e69cf3a305e0a939c0f.jpeg)

1. Improved manual window/level adjustment

New mouse mode is added for window/level adjustment. This prevents accidental modification of window/level when interacting in slice views and allows new window/level adjustment methods. Click on the corresponding icon on the toolbar to activate the new mode. The icon consists of color and grayscale gradients and a mouse pointer:

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/c/b/cb0efdef9970062e2f46839e8477554354ad1b11.png)

Window/level setting options:

- Click-and-drag adjusts window/level (same as before)
- Ctrl + left-click-and-drag sets optimal window/level for the selected region. Pressing Escape or right-click during the drag cancels the operation.
- Double-click resets window/level (using automatic window/level algorithm, for the entire image)

Region-based auto window/level example:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/c/f/cf742af441a06e4c27815d5340b9571a7037101c.jpeg)

Demo video:

[![](https://img.youtube.com/vi/u1B0F1KcVsk/maxresdefault.jpg "3D Slicer - new mouse mode for window/level") ](https://www.youtube.com/watch?v=u1B0F1KcVsk)

---

_[View the full topic](https://discourse.slicer.org/t/recent-improvements-in-window-level-management/7284)._
