Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ocl_resize: use resizeLN integer path for 16U #21199

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion modules/imgproc/src/resize.cpp
Expand Up @@ -3320,7 +3320,8 @@ static bool ocl_resize( InputArray _src, OutputArray _dst, Size dsize,
char buf[2][32];

// integer path is slower because of CPU part, so it's disabled
if (depth == CV_8U && ((void)0, 0))
// except in case of 16U depth, where other path gives invalid results
if (depth == CV_16U)
{
AutoBuffer<uchar> _buffer((dsize.width + dsize.height)*(sizeof(int) + sizeof(short)*2));
int* xofs = (int*)_buffer.data(), * yofs = xofs + dsize.width;
Expand Down