fixed bug in cv::LUT (multi-channel source array and single-channel table)

added missing cudaSafeCall
This commit is contained in:
Vladislav Vinogradov
2011-05-10 06:11:03 +00:00
parent 4c7a8f8d24
commit 58e26313dd
2 changed files with 23 additions and 22 deletions

View File

@@ -590,7 +590,7 @@ void cv::gpu::ensureSizeIsEnough(int rows, int cols, int type, GpuMat& m)
bool cv::gpu::CudaMem::canMapHostMemory()
{
cudaDeviceProp prop;
cudaGetDeviceProperties(&prop, getDevice());
cudaSafeCall( cudaGetDeviceProperties(&prop, getDevice()) );
return (prop.canMapHostMemory != 0) ? true : false;
}
@@ -625,7 +625,7 @@ void cv::gpu::CudaMem::create(int _rows, int _cols, int _type, int _alloc_type)
if (_alloc_type == ALLOC_ZEROCOPY)
{
cudaDeviceProp prop;
cudaGetDeviceProperties(&prop, getDevice());
cudaSafeCall( cudaGetDeviceProperties(&prop, getDevice()) );
step = alignUp(step, prop.textureAlignment);
}
int64 _nettosize = (int64)step*rows;