From 828133004464ddacd7cb0b608385c2e0e701f817 Mon Sep 17 00:00:00 2001 From: Adrian Sieber Date: Thu, 8 Oct 2015 21:46:03 +0200 Subject: [PATCH] Use correct datatype for binarization type --- src/Matrix.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Matrix.cc b/src/Matrix.cc index 8af505d..ea2338b 100755 --- a/src/Matrix.cc +++ b/src/Matrix.cc @@ -1642,16 +1642,16 @@ NAN_METHOD(Matrix::Threshold) { // Uses default value } else if (strcmp(*typstr, "Binary Inverted") == 0) { - typ = 1; + typ = cv::THRESH_BINARY_INV; } else if (strcmp(*typstr, "Threshold Truncated") == 0) { - typ = 2; + typ = cv::THRESH_TRUNC; } else if (strcmp(*typstr, "Threshold to Zero") == 0) { - typ = 3; + typ = cv::THRESH_TOZERO; } else if (strcmp(*typstr, "Threshold to Zero Inverted") == 0) { - typ = 4; + typ = cv::THRESH_TOZERO_INV; } else { char *typeString = *typstr;