gpu::resize fails with CV_8UC4 format (Bug #2388)
Description
I have not tested with other data types. Here is code:
GpuMat dst; Size s = Size(x, y); if (gpu) { gpu::resize(src, dst, s, 0, 0, INTER_CUBIC); } else { Mat m = Mat(src); Mat m2; resize(m, m2, s, 0, 0, INTER_CUBIC); dst = GpuMat(m2); }
Resulting image have alpha applied at all image (i guess ~50%). If i do with cpu method image is ok.
Associated revisions
disabled NPP resize for 8uc4+Cubic (Bug #2388)
Merge pull request #2388 from alalek:coverity_bug_fix
History
Updated by Kirill Kornyakov over 12 years ago
- Description changed from I have not tested with other data types. Here is code: GpuMat dst; Size s =... to I have not tested with other data types. Here is code: <pre> GpuMat ds... More
Updated by Vladislav Vinogradov over 12 years ago
- Assignee changed from Anatoly Baksheev to Vladislav Vinogradov
Updated by Vladislav Vinogradov over 12 years ago
Thanks for report.
It was a bug in NPP implementation for 8uc4 images with CUBIC interpolation.
I disabled this implementation, now OpenCV's implementation is used for 8uc4 and INTER_CUBIC.
- Status changed from Open to Done
- Target version set to 2.4.3