fixed bug in gpu::pyrDown

This commit is contained in:
Vladislav Vinogradov
2012-03-07 13:14:50 +00:00
parent 0e27c772aa
commit 02f226a981
2 changed files with 7 additions and 18 deletions

View File

@@ -75,7 +75,7 @@ namespace cv { namespace gpu { namespace device
if (threadIdx.x < 2)
{
const int left_x = x - 2 + threadIdx.x;
const int left_x = x - 2;
sum = VecTraits<value_type>::all(0);
@@ -90,7 +90,7 @@ namespace cv { namespace gpu { namespace device
if (threadIdx.x > 253)
{
const int right_x = x + threadIdx.x + 2;
const int right_x = x + 2;
sum = VecTraits<value_type>::all(0);