Skip to content

Commit

Permalink
Document raster PROCESSING GAMMA option
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed May 31, 2024
1 parent 8137e8a commit c64fee6
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 @@ -1383,6 +1383,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 c64fee6

Please sign in to comment.