if (_alloc_type == ALLOC_ZEROCOPY && !canMapHostMemory())
cv::gpu::error("ZeroCopy is not supported by current device", __FILE__, __LINE__);
- _type &= TYPE_MASK;
+ _type &= Mat::TYPE_MASK;
if( rows == _rows && cols == _cols && type() == _type && data )
return;
if( data )
ASSERT_EQ(gold_count, count);
- cv::Mat gold_background(model->background);
- cv::Mat gold_foreground(model->foreground);
+ cv::Mat gold_background = cv::cvarrToMat(model->background);
+ cv::Mat gold_foreground = cv::cvarrToMat(model->foreground);
if (out_cn == 3)
d_model.background.download(h_background3);
#include <iterator>
#include <stdexcept>
+#include "opencv2/core/private.hpp"
+
#ifdef HAVE_CUDA
#include <cuda.h>
#include <cuda_runtime.h>
#ifdef HAVE_OPENGL
if (window->useGl)
{
- CvMat stub;
- CvMat* mat = cvGetMat(arr, &stub);
- cv::Mat im(mat);
- cv::imshow(name, im);
+ cv::imshow(name, cv::cvarrToMat(arr));
return;
}
#endif
#include "opencv2/imgproc.hpp"
#include "opencv2/core/utility.hpp"
+#include "opencv2/core/private.hpp"
#include "opencv2/opencv_modules.hpp"
#include "opencv2/core/utility.hpp"
#include "opencv2/imgproc.hpp"
#include "opencv2/video/tracking.hpp"
+#include "opencv2/core/private.hpp"
#ifdef HAVE_OPENCV_GPU
#include "opencv2/gpu.hpp"