cv::resize fails on 16bit-short arrays (Bug #244)


Added by hype blade almost 15 years ago. Updated almost 15 years ago.


Status:Done Start date:
Priority:Blocker Due date:
Assignee:- % Done:

0%

Category:core
Target version:-
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

Description

Hi there,
some time ago I added a bug report for the cv::remap function that seemed not to work with 16bit short arrays. It seems, that this is also the case for the cv::resize-function.

See this code:

cv::Mat_<short> img(120,160);
img.setTo(cv::Scalar(1));

cv::Mat reImg;
cv::resize(img,reImg,cv::Size(320,240),0,0,cv::INTER_CUBIC);

This code fails when using the OpenCV2.0-release as well as the actual svn trunk!

Regards
Matthias


Associated revisions

Revision 0d00109f
Added by Andrey Kamaev about 12 years ago

Merge pull request #244 from asmorkalov:manager_nonarm_fix

Revision 00456832
Added by Vadim Pisarevsky about 10 years ago

Merge pull request #244 from mshabunin:shape-test

History

Updated by hype blade almost 15 years ago

Me again,
I just found out, that only signed short arrays aren't handled correctly. If you pass a unsigned short array to the resize function everything works out just fine. Hope you can fix this fast!

cv::Mat_<unsigned short> img(120,160);
img.setTo(cv::Scalar(1));

cv::Mat reImg;
cv::resize(img,reImg,cv::Size(320,240),0,0,cv::INTER_CUBIC);

This code works like charm...

THX

Updated by anonymous - almost 15 years ago

fixed in r2959

  • Status changed from Open to Done
  • (deleted custom field) set to fixed

Also available in: Atom PDF