SURF descriptors creation crashes in stitching module. (Bug #1693)
Description
r7504 brought big changes in features2d.
I try to add nonfree module reference to stitching module to use SURF.
But code crashes in opencv\modules\stitching\src\surf.cpp Line 875 _descriptors.create(.....).
Because _descriptors is a vector<float> defined in opencv\modules\stitching\src\match.cpp Line 354.
Associated revisions
Fixed bug #1693. Also corrected default parameters for stitching.
Merge pull request #1693 from ilya-lavrenov:ocl_adaptiveBilateralFilter
History
Updated by p x almost 13 years ago
I change the code like this in match.cpp, and it works:Mat descriptors;
(*surf)(gray_image, Mat(), features.keypoints, descriptors);
features.descriptors = descriptors.reshape(1, (int)features.keypoints.size());
Updated by p x almost 13 years ago
And I add SURF back to stitching module, the performance is very poor, only few of my 50 pictures can be stitched together.
Please test it.
Thank you.
Updated by Alexey Spizhevoy almost 13 years ago
Hi,
I fixed that bug. Thanks. You had poor performance due to recent changes which made some of the default stitching parameters incorrect. Fixed that also.
- Status changed from Open to Done
Updated by Andrey Kamaev almost 13 years ago
- Target version set to 2.4.0