diff --git a/openbr/plugins/imgproc/adaptivethreshold.cpp b/openbr/plugins/imgproc/adaptivethreshold.cpp index 6927d95..21a02cc 100644 --- a/openbr/plugins/imgproc/adaptivethreshold.cpp +++ b/openbr/plugins/imgproc/adaptivethreshold.cpp @@ -42,7 +42,7 @@ class AdaptiveThresholdTransform : public UntrainableTransform dst = src; Mat mask; - adaptiveThreshold(src, mask, maxValue, ADAPTIVE_THRESH_GAUSSIAN_C, THRESH_BINARY, blockSize, C); + adaptiveThreshold(src, mask, maxValue, method, type, blockSize, C); dst.file.set("Mask",QVariant::fromValue(mask)); }