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

@@ -54,7 +54,7 @@ template <typename T> struct NearestInterpolator
{
static T getValue(const cv::Mat& src, float y, float x, int c, int border_type, cv::Scalar borderVal = cv::Scalar())
{
return readVal<T>(src, cvRound(y), cvRound(x), c, border_type, borderVal);
return readVal<T>(src, int(y), int(x), c, border_type, borderVal);
}
};