gpu::resize fails with CV_8UC4 format (Bug #2388)


Added by Haralds Ulmanis over 12 years ago. Updated over 12 years ago.


Status:Done Start date:2012-09-26
Priority:Normal Due date:
Assignee:Vladislav Vinogradov % Done:

0%

Category:gpu (cuda)
Target version:2.4.3
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

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

Revision 8d07e92b
Added by Vladislav Vinogradov over 12 years ago

disabled NPP resize for 8uc4+Cubic (Bug #2388)

Revision 3845b96f
Added by Andrey Pavlenko about 11 years ago

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

Also available in: Atom PDF