cuda: fix build
authorAlexander Alekhin <alexander.alekhin@intel.com>
Fri, 6 Jul 2018 12:31:25 +0000 (15:31 +0300)
committerAlexander Alekhin <alexander.alekhin@intel.com>
Fri, 6 Jul 2018 12:32:36 +0000 (15:32 +0300)
use cv::AutoBuffer::data() to get data pointer

modules/cudaimgproc/src/hough_circles.cpp
modules/cudastereo/src/stereocsbp.cpp

index b706967..2a5c025 100644 (file)
@@ -215,8 +215,8 @@ namespace
             AutoBuffer<ushort2> newBuf_(centersCount);
             int newCount = 0;
 
-            ushort2* oldBuf = oldBuf_;
-            ushort2* newBuf = newBuf_;
+            ushort2* oldBuf = oldBuf_.data();
+            ushort2* newBuf = newBuf_.data();
 
             cudaSafeCall( cudaMemcpy(oldBuf, centers, centersCount * sizeof(ushort2), cudaMemcpyDeviceToHost) );
 
index ded5fa2..bc5a230 100644 (file)
@@ -172,7 +172,7 @@ namespace
 
         // compute sizes
         AutoBuffer<int> buf(levels_ * 3);
-        int* cols_pyr = buf;
+        int* cols_pyr = buf.data();
         int* rows_pyr = cols_pyr + levels_;
         int* nr_plane_pyr = rows_pyr + levels_;