merged GPU resize became same as CPU implementation

This commit is contained in:
Marina Kolpakova
2012-07-03 16:16:24 +00:00
parent 13735decf3
commit cdbda45125
3 changed files with 10 additions and 9 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);
}
};