===> Applying FreeBSD patches for opencv-core-3.4.1_2 No file to patch. Skipping... 1 out of 1 hunks ignored--saving rejects to modules/stereo/src/descriptor.cpp.rej Can't create modules/stereo/src/descriptor.cpp.rej, output is in /tmp/patchr6xYigwcnNn: No such file or directory => FreeBSD patch patch-modules_stereo_src_descriptor.cpp failed to apply cleanly. => Patch(es) patch-modules_core_include_opencv2_core_cvdef.h patch-modules_core_include_opencv2_core_types__c.h patch-modules_core_src_utils_filesystem.cpp patch-modules_highgui_include_opencv2_highgui_highgui__c.h patch-modules_highgui_src_window.cpp patch-modules_highgui_src_window__gtk.cpp applied cleanly. *** Error code 1
16 lines
677 B
C++
16 lines
677 B
C++
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);
|