cuda: fix build (legacy C-API usage)

This commit is contained in:
Alexander Alekhin 2018-09-07 07:26:17 +00:00
parent bd98ed46bd
commit f90aea22b1

View File

@ -373,7 +373,7 @@ namespace
// Discard under-size foreground regions: // Discard under-size foreground regions:
d_foreground.download(h_foreground); d_foreground.download(h_foreground);
IplImage ipl_foreground = h_foreground; IplImage ipl_foreground = cvIplImage(h_foreground);
CvSeq* first_seq = 0; CvSeq* first_seq = 0;
cvFindContours(&ipl_foreground, storage, &first_seq, sizeof(CvContour), CV_RETR_LIST); cvFindContours(&ipl_foreground, storage, &first_seq, sizeof(CvContour), CV_RETR_LIST);