fixed compilation
This commit is contained in:
parent
59edad5a00
commit
39a25115e0
@ -48,6 +48,7 @@
|
|||||||
#include "opencv2/core/cuda/common.hpp"
|
#include "opencv2/core/cuda/common.hpp"
|
||||||
#include "opencv2/core/cuda/emulation.hpp"
|
#include "opencv2/core/cuda/emulation.hpp"
|
||||||
#include "opencv2/core/cuda/vec_math.hpp"
|
#include "opencv2/core/cuda/vec_math.hpp"
|
||||||
|
#include "opencv2/core/cuda/functional.hpp"
|
||||||
|
|
||||||
#include "opencv2/opencv_modules.hpp"
|
#include "opencv2/opencv_modules.hpp"
|
||||||
|
|
||||||
@ -183,7 +184,7 @@ namespace cv { namespace gpu { namespace cudev
|
|||||||
|
|
||||||
const int ind = ::atomicAdd(r_sizes + n, 1);
|
const int ind = ::atomicAdd(r_sizes + n, 1);
|
||||||
if (ind < maxSize)
|
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,
|
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)
|
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.x = __float2int_rn(c.x * idp);
|
||||||
c.y = __float2int_rn(c.y * idp);
|
c.y = __float2int_rn(c.y * idp);
|
||||||
|
@ -51,7 +51,7 @@ static void convertAndResize(const GpuMat& src, GpuMat& gray, GpuMat& resized, d
|
|||||||
{
|
{
|
||||||
if (src.channels() == 3)
|
if (src.channels() == 3)
|
||||||
{
|
{
|
||||||
gpu::cvtColor( src, gray, COLOR_BGR2GRAY );
|
cv::gpu::cvtColor( src, gray, COLOR_BGR2GRAY );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -62,7 +62,7 @@ static void convertAndResize(const GpuMat& src, GpuMat& gray, GpuMat& resized, d
|
|||||||
|
|
||||||
if (scale != 1)
|
if (scale != 1)
|
||||||
{
|
{
|
||||||
gpu::resize(gray, resized, sz);
|
cv::gpu::resize(gray, resized, sz);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user