GPU resize became same as CPU implementation

This commit is contained in:
Marina Kolpakova
2012-07-02 08:08:02 +00:00
parent 60b73e7471
commit e6f7e4d83e
3 changed files with 25 additions and 3 deletions

View File

@@ -64,7 +64,7 @@ namespace cv { namespace gpu { namespace device
__device__ __forceinline__ elem_type operator ()(float y, float x) const
{
return src(__float2int_rn(y), __float2int_rn(x));
return src(__float2int_rz(y), __float2int_rz(x));
}
const Ptr2D src;