Windowing is the process of mapping Hounsfield Unit (HU) values from a CT scan to grayscale display values using a specific window width (WW) and window level (WL). The window level defines the center HU value of the display range, while the window width defines the total range of HU values mapped to the full grayscale spectrum. All HU values above the upper threshold are displayed as pure white, and all values below the lower threshold are displayed as pure black, maximizing contrast for a specific tissue type.
Glossary
Windowing

What is Windowing?
The fundamental image processing operation that maps raw CT attenuation values to visible grayscale pixels for diagnostic interpretation.
This non-linear mapping is essential because the human eye can only distinguish approximately 20-30 shades of gray, while a CT image can contain 4096 distinct HU values. By applying a narrow window width centered on the attenuation of a target structure—such as a width of 80 HU and a level of 40 HU for brain parenchyma—radiologists can suppress irrelevant anatomy and visualize subtle pathology. The same volumetric dataset can be reviewed with multiple window settings, including bone, lung, and soft tissue windows, to comprehensively assess all anatomical regions.
Key Windowing Parameters
Mastering window width and level is essential for extracting diagnostic information from CT scans. These parameters map Hounsfield Unit values to visible grayscale, selectively revealing specific tissue types.
Window Width (WW)
Defines the range of Hounsfield Units mapped to the full grayscale display. A narrow width increases contrast by spreading a small range of densities across all available gray shades, making subtle density differences visible. A wide width decreases contrast, displaying a broader range of anatomy but with less differentiation between tissues.
- Narrow Width (e.g., 50-350 HU): High contrast for soft tissue detail (brain, liver).
- Wide Width (e.g., 1500-4000 HU): Low contrast for structures with extreme density variation (lung, bone).
Window Level (WL)
Sets the center Hounsfield Unit value of the window width. It determines the midpoint of the displayed brightness range. The level should be set approximately to the average attenuation of the tissue of interest. All tissues above the upper bound of the window appear white; all below appear black.
- Adjusting the Level: Shifts the visible density range up or down.
- Tissue Targeting: Set near 40 HU for soft tissue, -700 HU for lung parenchyma.
Non-Linear Transfer Functions
Advanced windowing applies non-linear curves instead of a simple linear ramp to map HU values to grayscale. This enhances contrast in specific density ranges while compressing others, preventing saturation in bright or dark regions.
- Sigmoid Curves: Smooth roll-off at extremes to preserve detail in overexposed areas.
- S-Curves: Boost mid-range contrast for soft tissue while maintaining bone visibility.
- Application: Useful in trauma scans where both soft tissue and bone must be evaluated simultaneously.
Histogram Equalization
An automated, adaptive windowing technique that analyzes the voxel intensity histogram of a volume to redistribute brightness values. It maximizes global contrast without manual parameter tuning.
- Adaptive Histogram Equalization (AHE): Computes histograms for local image regions to prevent over-amplification of noise.
- Contrast Limited AHE (CLAHE): Clips the histogram at a predefined limit to avoid excessive contrast enhancement in homogeneous areas.
Multi-Planar Windowing
Applies windowing parameters consistently across multi-planar reconstructions (MPR). When a radiologist adjusts the window on an axial slice, the same mapping is instantly applied to the corresponding sagittal and coronal views.
- Real-Time Synchronization: Ensures diagnostic continuity when scrolling through orthogonal planes.
- Volumetric Consistency: Prevents mismatched tissue appearance that could lead to misdiagnosis when comparing different anatomical planes.
Frequently Asked Questions
Clear, technically precise answers to the most common questions about mapping Hounsfield Units to grayscale values for optimal diagnostic display.
Windowing is the process of mapping a specific range of Hounsfield Unit (HU) values from a CT scan's full dynamic range to the available grayscale display values. A CT scanner captures 4096 to 65536 possible HU values, but the human eye can only distinguish roughly 30-90 shades of gray. The window width (WW) defines the range of HU values mapped to the full grayscale, while the window level (WL) sets the center of that range. Any voxel with an HU value above the window ceiling is displayed as pure white, and any below the floor as pure black. This non-linear mapping is a critical post-processing step that optimizes contrast for specific anatomical structures, allowing a radiologist to toggle between a 'lung window' (WW: 1500, WL: -600) and a 'bone window' (WW: 2000, WL: 300) to visualize entirely different tissue types from the same acquisition data.
Common CT Window Presets
Standard window width (WW) and window level (WL) settings in Hounsfield Units (HU) for optimizing contrast across different anatomical structures and pathologies.
| Preset Name | Window Width (WW) | Window Level (WL) | Primary Application |
|---|---|---|---|
Brain (Head) | 80 HU | 40 HU | Supratentorial parenchyma evaluation |
Subdural/Stroke | 200 HU | 75 HU | Acute hemorrhage and ischemia detection |
Bone (Sharp) | 2000 HU | 500 HU | Cortical bone and fracture assessment |
Lung | 1500 HU | -600 HU | Pulmonary parenchyma and nodules |
Mediastinum | 350 HU | 50 HU | Soft tissue and lymph node evaluation |
Liver | 150 HU | 80 HU | Hepatic parenchyma and lesion characterization |
Abdomen (Soft Tissue) | 400 HU | 40 HU | General abdominal organ survey |
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Mastering windowing requires understanding the underlying data structures, processing techniques, and visualization methods that interact with the grayscale mapping of Hounsfield Units.
Hounsfield Unit (HU)
The quantitative scale describing radiodensity, calibrated such that water is 0 HU and air is -1000 HU. Windowing maps a specific range of these values to the display's grayscale. Without understanding HU, window width and level selection is arbitrary.
- Typical values: Bone (+400 to +1000 HU), Soft Tissue (+40 to +80 HU), Fat (-100 to -50 HU)
- The linear attenuation coefficient relative to water defines the scale
DICOM Window Center & Width Tags
The DICOM standard encodes default window settings directly in the image header using tags (0028,1050) Window Center and (0028,1051) Window Width. These values represent the manufacturer's recommended initial display mapping for optimal diagnostic viewing.
- Allows PACS workstations to auto-apply correct contrast
- Multiple window presets (lung, bone, brain) can be stored in a single series
Partial Volume Effect
An imaging artifact where a single voxel contains a mixture of tissue types, resulting in an averaged HU value. Aggressive narrowing of the window width amplifies this artifact, making boundaries appear blurred or stair-stepped.
- Directly limits the effective spatial resolution of the display
- Windowing cannot recover information lost to volume averaging
Bias Field Correction
A preprocessing step, often using the N4 algorithm, that removes low-frequency intensity non-uniformity in MRI. Since MRI does not use a calibrated HU scale, windowing is highly sensitive to these shading artifacts.
- Correcting the bias field ensures consistent tissue contrast across the image
- Essential before applying fixed window settings in automated diagnostic pipelines
Deep Learning Reconstruction (DLR)
A class of algorithms using neural networks to reconstruct CT images from raw projection data. DLR outputs often exhibit altered noise textures and edge characteristics compared to Filtered Back Projection, requiring radiologists to adjust their standard window width and level presets.
- Standard window presets may need recalibration for DLR outputs
- Enables ultra-low-dose scans with maintained diagnostic quality

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us