htpp

htrdr-image post-processing
git clone git://git.meso-star.fr/htpp.git
Log | Files | Refs | README | LICENSE

commit 4514baace016476895d4cecea332b79d100e995f
parent 47f359cd275251bc097f1703c91f7da324fc767c
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Thu,  5 Dec 2019 16:43:58 +0100

Fix comments and man page

Diffstat:
Mdoc/htpp.1.txt | 2+-
Msrc/htpp.c | 4++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/doc/htpp.1.txt b/doc/htpp.1.txt @@ -35,7 +35,7 @@ standard input. *htpp* tone maps the high dynamic range colors of the _input_ image with the following filmic tone mapping operator [2]: - out-color = f(in-color) / white-scale * exposure + out-color = f(in-color) / f(white-scale) * exposure with: diff --git a/src/htpp.c b/src/htpp.c @@ -568,10 +568,10 @@ main(int argc, char** argv) double* row = (double*)(img.pixels + img.pitch*y); double* pixel = row + x*3; - filmic_tone_mapping(pixel, args.exposure, Ymax); /* Tone map the RGB pixel */ + filmic_tone_mapping(pixel, args.exposure, Ymax); /* Tone map the XYZ pixel */ if(args.pixdata == PIXEL_RADIANCE) { XYZ_to_sRGB(pixel); /* Convert in RGB color space */ - sRGB_gamma_correct(pixel); /* Convert in sRGB color space (i.e. gamma correction) */ + sRGB_gamma_correct(pixel); /* Gamma correction */ } }