fixed compilation

This commit is contained in:
Vladislav Vinogradov 2013-06-24 16:19:37 +04:00
parent 59edad5a00
commit 39a25115e0
2 changed files with 5 additions and 4 deletions

View File

@ -48,6 +48,7 @@
#include "opencv2/core/cuda/common.hpp"
#include "opencv2/core/cuda/emulation.hpp"
#include "opencv2/core/cuda/vec_math.hpp"
#include "opencv2/core/cuda/functional.hpp"
#include "opencv2/opencv_modules.hpp"
@ -183,7 +184,7 @@ namespace cv { namespace gpu { namespace cudev
const int ind = ::atomicAdd(r_sizes + n, 1);
if (ind < maxSize)
r_table(n, ind) = p - templCenter;
r_table(n, ind) = saturate_cast<short2>(p - templCenter);
}
void buildRTable_gpu(const unsigned int* coordList, const float* thetaList, int pointsCount,
@ -227,7 +228,7 @@ namespace cv { namespace gpu { namespace cudev
for (int j = 0; j < r_row_size; ++j)
{
short2 c = p - r_row[j];
short2 c = saturate_cast<short2>(p - r_row[j]);
c.x = __float2int_rn(c.x * idp);
c.y = __float2int_rn(c.y * idp);

View File

@ -51,7 +51,7 @@ static void convertAndResize(const GpuMat& src, GpuMat& gray, GpuMat& resized, d
{
if (src.channels() == 3)
{
gpu::cvtColor( src, gray, COLOR_BGR2GRAY );
cv::gpu::cvtColor( src, gray, COLOR_BGR2GRAY );
}
else
{
@ -62,7 +62,7 @@ static void convertAndResize(const GpuMat& src, GpuMat& gray, GpuMat& resized, d
if (scale != 1)
{
gpu::resize(gray, resized, sz);
cv::gpu::resize(gray, resized, sz);
}
else
{