cv::resize fails on 16bit-short arrays (Bug #244)
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
Merge pull request #244 from asmorkalov:manager_nonarm_fix
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