diff --git a/modules/cudaimgproc/src/hough_circles.cpp b/modules/cudaimgproc/src/hough_circles.cpp index b706967671..2a5c025d43 100644 --- a/modules/cudaimgproc/src/hough_circles.cpp +++ b/modules/cudaimgproc/src/hough_circles.cpp @@ -215,8 +215,8 @@ namespace AutoBuffer 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) ); diff --git a/modules/cudastereo/src/stereocsbp.cpp b/modules/cudastereo/src/stereocsbp.cpp index ded5fa20e1..bc5a230f63 100644 --- a/modules/cudastereo/src/stereocsbp.cpp +++ b/modules/cudastereo/src/stereocsbp.cpp @@ -172,7 +172,7 @@ namespace // compute sizes AutoBuffer 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_;