summaryrefslogtreecommitdiff
path: root/graphics/opencv/files/patch-modules_stereo_src_descriptor.cpp
blob: 58b3753ad8325637d046aaf4e792e74d11c749df (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
https://github.com/opencv/opencv_contrib/pull/1715

--- modules/stereo/src/descriptor.cpp.orig	2018-02-22 13:38:31 UTC
+++ modules/stereo/src/descriptor.cpp
@@ -226,8 +226,8 @@ namespace cv
         //integral image computation used in the Mean Variation Census Transform
         void imageMeanKernelSize(const Mat &image, int windowSize, Mat &cost)
         {
-            CV_Assert(image.size > 0);
-            CV_Assert(cost.size > 0);
+            CV_Assert(*image.size > 0);
+            CV_Assert(*cost.size > 0);
             CV_Assert(windowSize % 2 != 0);
             int win = windowSize / 2;
             float scalling = ((float) 1) / (windowSize * windowSize);