Created
January 2, 2016 20:47
-
-
Save mcs07/7b722cfafe8bad81aa69 to your computer and use it in GitHub Desktop.
Fix OSRA use of graphicsmagick adaptiveThreshold to avoid ambiguous error
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
diff --git a/src/osra_grayscale.cpp b/src/osra_grayscale.cpp | |
index 32816ed..1b819d1 100644 | |
--- a/src/osra_grayscale.cpp | |
+++ b/src/osra_grayscale.cpp | |
@@ -266,12 +266,12 @@ bool convert_to_gray(Image &image, bool invert, bool adaptive, bool verbose) | |
image.despeckle(); | |
if (invert) | |
{ | |
- image.adaptiveThreshold(window,window,7); | |
+ image.adaptiveThreshold(window,window,7.0); | |
} | |
else | |
{ | |
image.negate(); | |
- image.adaptiveThreshold(window,window,7); | |
+ image.adaptiveThreshold(window,window,7.0); | |
image.negate(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is just awesome. Fixed the make error. Thank you for that!