mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 15:53:03 +04:00
cuda: fix build
use cv::AutoBuffer::data() to get data pointer
This commit is contained in:
@@ -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) );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user