Add greyscale option to threshold operation (#480)

This commit is contained in:
Matt Hirsch
2016-07-03 14:32:07 -04:00
committed by Lovell Fuller
parent 4b98dbb454
commit 85f20c6e1b
8 changed files with 55 additions and 3 deletions

View File

@@ -58,6 +58,7 @@ struct PipelineBaton {
double sharpenFlat;
double sharpenJagged;
int threshold;
bool thresholdGrayscale;
double gamma;
bool greyscale;
bool normalize;
@@ -113,6 +114,7 @@ struct PipelineBaton {
sharpenFlat(1.0),
sharpenJagged(2.0),
threshold(0),
thresholdGrayscale(true),
gamma(0.0),
greyscale(false),
normalize(false),