We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f368d83 + 4e10bc5 commit 89a7e84Copy full SHA for 89a7e84
modules/stereo/src/descriptor.cpp
@@ -226,8 +226,8 @@ namespace cv
226
//integral image computation used in the Mean Variation Census Transform
227
void imageMeanKernelSize(const Mat &image, int windowSize, Mat &cost)
228
{
229
- CV_Assert(image.size > 0);
230
- CV_Assert(cost.size > 0);
+ CV_Assert(!image.empty());
+ CV_Assert(!cost.empty());
231
CV_Assert(windowSize % 2 != 0);
232
int win = windowSize / 2;
233
float scalling = ((float) 1) / (windowSize * windowSize);
0 commit comments