mirror of
https://github.com/opencv/opencv.git
synced 2026-09-29 04:09:43 +03:00
resize area are fixed for scales that aren't divide 128
This commit is contained in:
1 parent
0f01d8df1c
commit
db08656a38
3 files changed
+30
-22
No files matched your search
@@ -95,6 +95,7 @@ void cv::gpu::resize(const GpuMat& src, GpuMat& dst, GpuMat& buffer, Size dsize,
|
||||
CV_Assert( (fx < 1.0) && (fy < 1.0));
|
||||
CV_Assert(!(dsize == Size()) || (fx > 0 && fy > 0));
|
||||
CV_Assert(src.cols >= 128 && src.rows >= 128);
|
||||
CV_Assert((fx - 128.0) <= 0 && (fy - 128.0) <= 0);
|
||||
|
||||
if (dsize == Size())
|
||||
dsize = Size(saturate_cast<int>(src.cols * fx), saturate_cast<int>(src.rows * fy));
|
||||
|
||||
Reference in new issue
Block a user