-
-
Notifications
You must be signed in to change notification settings - Fork 361
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7069 from rouault/raster_gamma_correction
GDAL/raster rendering: add a GAMMA processing option
- Loading branch information
Showing
9 changed files
with
156 additions
and
9 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# | ||
# Test GAMMA correction on a greyscale image with an alpha band | ||
# | ||
MAP | ||
|
||
NAME TEST | ||
STATUS ON | ||
SIZE 400 300 | ||
EXTENT 0.5 0.5 399.5 299.5 | ||
IMAGECOLOR 255 255 0 | ||
|
||
IMAGETYPE png24_t | ||
|
||
OUTPUTFORMAT | ||
NAME png24_t | ||
DRIVER "GDAL/PNG" | ||
IMAGEMODE RGBA | ||
END | ||
|
||
LAYER | ||
NAME test | ||
TYPE raster | ||
STATUS default | ||
DATA data/greyalpha.vrt | ||
PROCESSING "GAMMA=0.75" | ||
END | ||
|
||
END # of map file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# | ||
# Test GAMMA correction on a image with a color table | ||
# | ||
MAP | ||
|
||
NAME TEST | ||
STATUS ON | ||
SIZE 200 150 | ||
EXTENT 0.5 0.5 399.5 299.5 | ||
IMAGECOLOR 255 255 0 | ||
|
||
IMAGETYPE png24 | ||
|
||
LAYER | ||
NAME test | ||
TYPE raster | ||
STATUS default | ||
DATA data/pct22.tif | ||
PROCESSING "GAMMA=0.75" | ||
END | ||
|
||
END # of map file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# | ||
# Test GAMMA correction on a RGB dataset | ||
# | ||
MAP | ||
|
||
NAME TEST | ||
STATUS ON | ||
SIZE 400 300 | ||
EXTENT 0.5 0.5 399.5 299.5 | ||
IMAGECOLOR 255 255 0 | ||
|
||
IMAGETYPE png24 | ||
|
||
# | ||
# Start of layer definitions | ||
# | ||
|
||
LAYER | ||
NAME test | ||
TYPE raster | ||
STATUS default | ||
DATA data/rgb.tif | ||
PROCESSING "GAMMA=0.75" | ||
END | ||
|
||
END # of map file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# | ||
# Test GAMMA correction on a RGBA dataset | ||
# | ||
MAP | ||
|
||
NAME TEST | ||
STATUS ON | ||
SIZE 400 300 | ||
EXTENT 0.5 0.5 399.5 299.5 | ||
IMAGECOLOR 255 255 0 | ||
|
||
IMAGETYPE png24_t | ||
|
||
OUTPUTFORMAT | ||
NAME png24_t | ||
DRIVER "GDAL/PNG" | ||
IMAGEMODE RGBA | ||
TRANSPARENT ON | ||
END | ||
|
||
# | ||
# Start of layer definitions | ||
# | ||
|
||
LAYER | ||
NAME test | ||
TYPE raster | ||
STATUS default | ||
DATA data/rgba.tif | ||
PROCESSING "GAMMA=0.75" | ||
END | ||
|
||
END # of map file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters