From b51805e245a19ec332f60bbf2161ea6617d08043 Mon Sep 17 00:00:00 2001 From: exeltior Date: Mon, 16 Feb 2015 18:17:41 +0100 Subject: [PATCH] Update mser.cpp Need to initialize boolean variable pass2Only, otherwise the result is not predictable --- modules/features2d/src/mser.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/features2d/src/mser.cpp b/modules/features2d/src/mser.cpp index f5c08d1a16..7b920465f4 100644 --- a/modules/features2d/src/mser.cpp +++ b/modules/features2d/src/mser.cpp @@ -67,6 +67,7 @@ public: areaThreshold = _area_threshold; minMargin = _min_margin; edgeBlurSize = _edge_blur_size; + pass2Only = false; } int delta;