How to Create Natural-Looking Sentinel-2 Images in ESA SNAP

by Teodor Costăchioiu
5 views

About this method. I developed this rendering protocol for the SENSERO dataset, where it was used to generate all true-colour and false-colour composites. The dataset is openly available on Zenodo (https://zenodo.org/records/18847390), and is described in a paper published in Remote Sensing (MDPI), which reports the parameters briefly in Section 2.3. This post goes into more detail: the complete method, the reasoning behind each parameter, how to apply it in ESA SNAP, and where it falls short.

If you use this method or its parameter values in your own work, I kindly ask you to cite the paper:

Costăchioiu, T.; Vasilescu, V.; Grivei, A.-C.; Griparis, A.; Faur, D. SENSERO: A Multi-Scale, Multi-Label Sentinel-2 Benchmark for Romania with Cross-Scale Land-Cover Classification Baselines. Remote Sens. 2026, 18, 3655. https://doi.org/10.3390/rs18213655


Summary

Default Sentinel-2 displays in ESA SNAP rely on a per-band, scene-dependent percentile stretch. This alters the relative balance of the RGB channels and makes renderings of different scenes not directly comparable. The method presented here replaces it with a fixed, scene-invariant linear stretch between reflectance limits, followed by a power-law (gamma) transfer function, applied identically to all three display channels:

CompositeBands (R–G–B)ρminρmaxγ
True colourB4 – B3 – B20.010.500.45
False colour (NIR)B8 – B4 – B30.010.600.55

The input is Level-2A bottom-of-atmosphere (BOA) surface reflectance. The output is an 8-bit rendering for visual interpretation, figures, sample selection and lightweight workflows. It is not a radiometric product.


1. The problem with the default display

1.1 What SNAP does by default

When a Sentinel-2 L2A product is opened with Open RGB Image Window → Sentinel-2 MSI Natural Colors (B4, B3, B2, all at 10 m), SNAP computes the display range of each band independently from its histogram. The factory default Percentile Range is 92 %, so the display limits are the 4th and 96th percentiles of each band. The Color Manipulation panel offers further presets:

PresetRange retainedLower percentileUpper percentileButton shown by default
Default percentile92.00 %4.000 %96.000 %—
95 % (legacy)95.00 %2.500 %97.500 %no
2σ95.45 %2.275 %97.725 %yes
3σ99.73 %0.135 %99.865 %yes
Full range100.00 %0.000 %100.000 %—

The σ-presets are percentile intervals that correspond to the coverage probabilities of a normal distribution. They are not computed as mean ± k·σ of the data. All of these settings can be changed under Tools → Options → Color Manipulation.

1.2 Why this is a problem for natural-color composites

A percentile stretch works well for exploring a single band. For color composites, it has two structural drawbacks:

  1. Channel imbalance. Each band gets its own limits, so the same reflectance maps to different display values in R, G, and B. The composite’s white point shifts with the scene content. A scene dominated by vegetation, bare soil, or water gets a different color cast, even when the surfaces themselves are spectrally similar.
  2. No comparability across scenes. The limits depend on each scene’s statistics, so identical reflectance values give different RGB intensities in scenes from different areas or dates. That matters when composites are used side by side in a dataset, a time series, or a figure panel.

Switching to the 2σ or 3σ presets changes how hard the stretch clips, but both problems remain, because the stretch is still per-band and scene-dependent.


2. The rendering transform

2.1 Definition

For each display channel c with input reflectance ρ, the protocol applies

xc=clip⁡(ρ−ρmin⁡ρmax⁡−ρmin⁡,0,1),Dc=255⋅xc,γx_c = \operatorname{clip}\left(\frac{\rho – \rho_{\min}}{\rho_{\max} – \rho_{\min}}, 0, 1\right), \qquad D_c = 255 \cdot x_c^{,\gamma}

with the same ρmin, ρmax and γ for all three channels. Because the transform is identical across channels, two pixels with equal reflectance in all three bands always get the same colour, whatever scene they come from. A spectrally flat surface renders as neutral grey.

This is exactly what SNAP computes when the Gamma non-linearity field is set. In ImageManager.createByteIndexedImage(), the band is first rescaled linearly from [ρmin, ρmax] to an 8-bit range, and then passed through a 256-entry lookup table built by MathUtils.createGammaCurve(γ), which evaluates y = pow(i/255, γ). With γ < 1 the curve is concave: shadows and mid-tones are lifted and highlights are compressed.

2.2 Rationale for the parameter values

  • γ = 0.45 (true color). This is ≈ 1/2.2, the power-law exponent that approximates standard display encoding (sRGB). BOA reflectance behaves like a linear-light quantity, so a linear stretch puts most land surfaces, which reflect only a few percent to a few tens of percent in the visible, into the dark end of the display range. The 1/2.2 gamma redistributes those values in a way that is closer to perceptual uniformity. This is why vegetation, water and soils look closer to what an observer sees from an aircraft.
  • ρmax = 0.50 (true color). Most vegetated, agricultural, water and urban surfaces reflect well below 0.5 in B2–B4. The limit leaves headroom for bright soils, built-up surfaces and dry vegetation without compressing the bulk of the distribution. Clouds, snow and some bright artificial surfaces saturate above this limit, which is intended, and is a limitation of this method.
  • ρmin = 0.01. This sets a common black point slightly above zero. Very dark pixels, such as deep water, topographic shadow, and near-zero or slightly negative values left by atmospheric correction, map to black instead of taking up part of the display range.
  • ρmax = 0.60, γ = 0.55 (false color). In B8, healthy vegetation commonly reflects 0.3–0.5 or more, so the upper limit is raised to keep NIR from saturating over dense canopies. A slightly weaker gamma keeps contrast between vegetation types and stops the composite looking washed out. In this composite (NIR→R, Red→G, Green→B), vigorous vegetation appears in saturated reds. Here the aim is good separability and balanced tones, not a faithful reproduction of human color perception.

2.3 Note on the Sentinel-2 radiometric offset

The display limits are reflectance values, not digital numbers. From Processing Baseline 04.00 onwards, L2A products carry an additive offset of −1000 DN, so reflectance is ρ = (DN − 1000) / 10 000 and not DN / 10 000. SNAP’s Sentinel-2 reader applies the scaling and offset when it opens the product, so the values typed in the Color Manipulation panel are already in reflectance units. The ρmin = 0.01 limit is a display black point. It is not an offset correction. If you reproduce the transform outside SNAP from raw DN, you must apply the offset first, or every channel will carry a +0.1 reflectance bias.


3. Implementation in ESA SNAP

The procedure below was tested with ESA SNAP v12.0.1, the version used to build SENSERO, and confirmed to work up to the latest 14.0.2 version.

Open a Sentinel-2 Level-2A product. In Product Explorer, right-click it and choose Open RGB Image Window, then select the Sentinel-2 MSI Natural Colors profile (B4/B3/B2).

Open the Color Manipulation tool window. Expand More Options at the bottom of the panel (double up-arrow) to show the Gamma non-linearity field.

RGB color composite in ESA SNAP

Select the red channel (B4) and set the minimum to 0.01 and the maximum to 0.50. To enter a value, click the number shown under the slider on each side of the histogram. This opens an input field where you can type it.

Then set the Gamma non-linearity field to 0.45. The white transfer curve over the histogram should change from a straight line to a concave curve.

Repeat for the green (B3) and blue (B2) channels with the same values.

Check that all three channels show the same transfer curve. The image should now look much like the view from an aircraft window: agricultural fields look natural, and building rooftops keep much of their detail. If the scene has clouds, they will be overexposed and appear as flat, saturated white with no visible detail.

3.1 Known interface issue: gamma not re-applied on channel switch

After switching channels, the Gamma non-linearity field will keep showing the previous value (e.g., 0.45) while the newly selected channel is still rendered linearly. You can spot this because the white line over the histogram stays straight. I have seen this behavior across several SNAP versions, so don’t trust the numeric field alone.

Workaround: for each channel, type gamma = 1, confirm by pressing Enter, then type the target value (0.45, or 0.55 for the NIR composite) and press Enter again. The curve should bend immediately, which confirms that the new transfer function is active.

3.2 False-color NIR composite

Open an RGB window with B8 → R, B4 → G, B3 → B. Apply ρmin = 0.01, ρmax = 0.60 and γ = 0.55 to all three channels with the same procedure, including the γ = 1 workaround.


4. Limitations and scope

  • Visualization, not radiometry. The clip and gamma steps cannot be inverted. The composites are meant for visual inspection, figures, manual annotation, and lightweight workflows. Quantitative work (indices, classification, change detection) should use the 16-bit reflectance bands. SENSERO distributes the composites and the 12-band reflectance cubes side by side for this reason.
  • “Natural-looking” is not colorimetric. The protocol produces renderings that look plausible, balanced, and visually pleasing. It does not convert Sentinel-2 spectral responses into a colorimetrically calibrated color space.
  • Saturation of bright targets. Clouds, snow, and some bright soils or artificial surfaces exceed ρmax and render as flat white with no detail. The protocol works best on scenes that are cloud-free or nearly so, which is also how SENSERO scenes were selected.
  • Shadow quantization. SNAP applies the gamma after the 8-bit quantization of the linear stretch, so the darkest levels are spread out. With γ = 0.45, linear levels 1, 2 and 3 map to 21, 28 and 34. Smooth dark gradients, such as deep water or shaded slopes, may therefore show slight banding.
  • Scene dependence. The parameters are fixed by design. They will not be the best values for every season, biome, or illumination condition. Very dark scenes (winter, high latitudes) or very bright ones (arid areas) may call for different limits. If you change them, report the values you used.

Data credits

The satellite images shown in this post contain modified Copernicus Sentinel data [2026], processed with ESA SNAP v14.0.2 using the rendering method described above. Copernicus Sentinel data are provided free of charge under the Copernicus data policy (Regulation (EU) No 377/2014 and Commission Delegated Regulation (EU) No 1159/2013). The use of this data does not imply endorsement by the European Union or the European Space Agency.

Source product (for reproducibility):

FieldValue
ProductS2C_MSIL2A_20260618T090551_N0512_R050_T35TMK_20260618T125010
Processing levelLevel-2A (BOA reflectance)
Acquisition date2026-06-18
TileT35TMK
SourceCopernicus Data Space Ecosystem (https://dataspace.copernicus.eu)

To reproduce the figure, download the product listed above and apply the parameters in Section 2 to the B4–B3–B2 (true colour) or B8–B4–B3 (false colour) composite.

Leave a Comment