From f90aea22b12d23d17f283666382cc8f0f8f5b423 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Fri, 7 Sep 2018 07:26:17 +0000 Subject: [PATCH] cuda: fix build (legacy C-API usage) --- modules/cudalegacy/src/fgd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/cudalegacy/src/fgd.cpp b/modules/cudalegacy/src/fgd.cpp index 237f1c05fa..7e5728a1c5 100644 --- a/modules/cudalegacy/src/fgd.cpp +++ b/modules/cudalegacy/src/fgd.cpp @@ -373,7 +373,7 @@ namespace // Discard under-size foreground regions: d_foreground.download(h_foreground); - IplImage ipl_foreground = h_foreground; + IplImage ipl_foreground = cvIplImage(h_foreground); CvSeq* first_seq = 0; cvFindContours(&ipl_foreground, storage, &first_seq, sizeof(CvContour), CV_RETR_LIST);