Skip to content

Commit

Permalink
Merge pull request #916 from rouault/raster_gamma
Browse files Browse the repository at this point in the history
Document raster PROCESSING GAMMA option
  • Loading branch information
rouault authored Sep 6, 2024
2 parents 022c539 + c64fee6 commit e62e1a3
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
16 changes: 16 additions & 0 deletions en/input/raster.txt
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,22 @@ are supported in MapServer 4.0 and newer.

PROCESSING "EXTENT_PRIORITY=WORLD"

.. index::
triple: LAYER; PROCESSING; GAMMA

**GAMMA=<numeric_value>**
This directive (MapServer 8.4+) instructs the GDAL reader to apply a
`gamma correction <https://en.wikipedia.org/wiki/Gamma_correction>`__ step.
The default value is 1.0 (no gamma correction).
It is performed after classification, if any.
It does not apply to raw rendering.

Example:

::

PROCESSING "GAMMA=0.75"

.. index::
triple: LAYER; PROCESSING; LOAD_FULL_RES_IMAGE

Expand Down
3 changes: 3 additions & 0 deletions en/mapfile/layer.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1386,6 +1386,9 @@ PROCESSING [string]
that appear between adjacent polygons. A value of 0.5 is usually good
enough.

Note that starting with MapServer 8.4, a GAMMA processing option is
also available for rasters, but its default value is 1.0.

.. code-block:: mapfile

PROCESSING "GAMMA=0.5"
Expand Down

0 comments on commit e62e1a3

Please sign in to comment.