mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 14:13:15 +08:00
cuda: fix build
use cv::AutoBuffer::data() to get data pointer
This commit is contained in:
parent
3b01777c98
commit
fc59498b2b
@ -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) );
|
||||
|
||||
|
@ -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_;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user